What Changed
Sandbox SDK 1.0 puts start and stop decisions in your Durable Object. A workspace can choose its image and size when it starts, and your app decides when to stop it. That gives a product with per-user workspaces a place to handle idle time and recovery alongside its existing session state.
Treat container state, files, and the public preview as separate migration concerns. A running command and its workspace files have different recovery needs. File snapshots are in public beta, so test restoring a representative workspace and reopening its preview before depending on either behavior.
Release Highlights
- The 1.0 model lets your application use its own Durable Object to coordinate sandbox lifecycle.
- Apps built around 0.x need to revisit how they create and reconnect to sandboxes. Treat preview access and backup or recovery as explicit migration checks.
- A deploy leaves running sandboxes up. Your Durable Object can expose authenticated previews on hostnames you choose.
What It Unlocks
You can put workspace ownership, start-up, and recovery decisions where your app already coordinates session state. That matters for products that keep execution around between requests.
Who Should Try It
Teams on Sandbox SDK 0.x that use preview URLs, tunnels, backups, or long-running processes.
When to Hold Off
If you depend on a 0.x helper and do not yet have a replacement, map that dependency before moving users. A successful shell command does not prove the whole workspace can recover.
What to Check First
- Inventory sandbox IDs, how preview URLs are issued, and what is persisted across restarts.
- Migrate one disposable workspace. Run a long command, reconnect from a second request, and verify recovery after the sandbox stops.