the universal sandbox runtime for agents and humans. pocketenv.io
sandbox openclaw agent claude-code vercel-sandbox deno-sandbox cloudflare-sandbox atproto sprites daytona
7
fork

Configure Feed

Select the types of activity you want to include in your feed.

Require Cloudflare provider and empty sandboxId

Restrict update to rows where sandboxId is null and provider is
'cloudflare' to avoid updating already-started or non-Cloudflare
sandboxes.

+8 -4
+8 -4
apps/cf-sandbox/src/index.ts
··· 262 262 .update(sandboxes) 263 263 .set({ sandboxId }) 264 264 .where( 265 - or( 266 - eq(sandboxes.id, c.req.param("sandboxId")), 267 - eq(sandboxes.sandboxId, c.req.param("sandboxId")), 268 - eq(sandboxes.name, c.req.param("sandboxId")), 265 + and( 266 + or( 267 + eq(sandboxes.id, c.req.param("sandboxId")), 268 + eq(sandboxes.sandboxId, c.req.param("sandboxId")), 269 + eq(sandboxes.name, c.req.param("sandboxId")), 270 + ), 271 + isNull(sandboxes.sandboxId), 272 + eq(sandboxes.provider, "cloudflare"), 269 273 ), 270 274 ) 271 275 .returning()