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.

Add error handling and fallback for Deno provider

+9 -4
+9 -4
apps/sandbox/src/providers/mod.ts
··· 60 60 return import("./daytona/mod.ts").then((module) => 61 61 new module.default().get(id), 62 62 ); 63 - case "deno": 64 - return import("./deno/mod.ts").then((module) => 65 - new module.default().get(id), 66 - ); 63 + case "deno": { 64 + const module = await import("./deno/mod.ts"); 65 + try { 66 + return await new module.default().get(id); 67 + } catch (err) { 68 + console.error(`Error getting Deno sandbox with ID ${id}:`, err); 69 + return createSandbox("deno", { id }); 70 + } 71 + } 67 72 case "vercel": 68 73 return import("./vercel/mod.ts").then((module) => 69 74 new module.default().get(id),