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.

Retry sandbox start up to 10 times

Move sandbox.start() into the retry loop so start is
attempted up to 10 times. Add a console.log to report each attempt.

+3 -2
+3 -2
apps/cf-sandbox/src/index.ts
··· 261 261 } 262 262 263 263 if (record.status === "RUNNING") { 264 + console.log(`Sandbox ${record.id} is already running`); 264 265 return c.json({}); 265 266 } 266 267 ··· 302 303 return c.json({ error: "Sandbox provider not supported" }, 400); 303 304 } 304 305 305 - await sandbox.start(); 306 - 307 306 for (let i = 0; i < 10; i++) { 308 307 try { 308 + console.log(`Attempting to start sandbox (try ${i + 1}/10)`); 309 + await sandbox.start(); 309 310 await sandbox.sh`echo ready`; 310 311 break; 311 312 } catch {