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.

Create sandbox if fetching by ID fails

+6 -4
+6 -4
apps/modal-sandbox/src/providers/modal/index.ts
··· 168 168 tokenId: options?.modalTokenId || env.MODAL_TOKEN_ID!, 169 169 tokenSecret: options?.modalTokenSecret || env.MODAL_TOKEN_SECRET!, 170 170 }); 171 - consola.log("Getting Modal sandbox with ID:", id); 172 - const sandbox = await modal.sandboxes.fromId(id); 173 - consola.log("Got Modal sandbox with ID:", id, sandbox); 174 - return new ModalSandbox(sandbox); 171 + try { 172 + const sandbox = await modal.sandboxes.fromId(id); 173 + return new ModalSandbox(sandbox); 174 + } catch { 175 + return this.create(options!); 176 + } 175 177 } 176 178 } 177 179