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.

Handle errors when unmounting volumes

Catch exceptions from Promise.all(unmount) and log them so
sandbox.stop runs even if unmount fails

+5 -1
+5 -1
apps/cf-sandbox/src/index.ts
··· 402 402 .where(eq(sandboxVolumes.sandboxId, c.req.param("sandboxId"))) 403 403 .execute(); 404 404 405 - await Promise.all(volumes.map((volume) => sandbox?.unmount(volume.path))); 405 + try { 406 + await Promise.all(volumes.map((volume) => sandbox?.unmount(volume.path))); 407 + } catch (e) { 408 + console.error(e); 409 + } 406 410 407 411 await sandbox.stop(); 408 412 await c.var.db