|
| 1 | +--- |
| 2 | +title: Changelog |
| 3 | +description: "The latest updates and improvements to E2B." |
| 4 | +--- |
| 5 | + |
| 6 | +<Update label="2026-03-30" description="Week of March 24" tags={["Feature", "Update", "Fix"]}> |
| 7 | +## Sandbox lifecycle configuration |
| 8 | + |
| 9 | +You can now configure sandbox lifecycle behavior directly when creating a sandbox. The new `lifecycle` option lets you control what happens when a sandbox times out — either `kill` (default) or `pause` — and whether the sandbox should automatically resume on incoming traffic. |
| 10 | + |
| 11 | +This replaces the previous beta pause API with a cleaner, more flexible approach. Learn more in the [AutoResume docs](/docs/sandbox/auto-resume). |
| 12 | + |
| 13 | +## CLI: `sandbox info` command |
| 14 | + |
| 15 | +The CLI now includes a `sandbox info` command that displays detailed information about a sandbox, including its state, template, CPU/memory configuration, network rules, and lifecycle settings. Supports both human-readable and JSON output. |
| 16 | + |
| 17 | +```bash |
| 18 | +e2b sandbox info <sandboxID> |
| 19 | +e2b sandbox info <sandboxID> --format json |
| 20 | +``` |
| 21 | + |
| 22 | +## CLI: `sandbox pause` and `sandbox resume` commands |
| 23 | + |
| 24 | +You can now pause and resume sandboxes directly from the CLI: |
| 25 | + |
| 26 | +```bash |
| 27 | +e2b sandbox pause <sandboxID> |
| 28 | +e2b sandbox resume <sandboxID> |
| 29 | +``` |
| 30 | + |
| 31 | +See the [CLI reference](/docs/cli) for details. |
| 32 | + |
| 33 | +## Expanded sandbox info API |
| 34 | + |
| 35 | +The SDK `getInfo()` / `get_info()` methods now return additional fields: `lifecycle` configuration, `network` rules, and `allowInternetAccess`. This gives you full visibility into a sandbox's configuration without needing to track it separately. |
| 36 | + |
| 37 | +## Template tags API |
| 38 | + |
| 39 | +A new `getTags()` / `get_tags()` method lets you list all tags for a template, returning each tag's name, associated build ID, and creation timestamp. Useful for managing versioned deployments. See the [tags docs](/docs/template/tags). |
| 40 | + |
| 41 | +## `fixMissing` option for template `aptInstall` |
| 42 | + |
| 43 | +The template builder's `aptInstall()` / `apt_install()` method now accepts a `fixMissing` / `fix_missing` option, which passes `--fix-missing` to `apt-get install`. This helps resolve broken package states during template builds. |
| 44 | + |
| 45 | +--- |
| 46 | + |
| 47 | +### Updates |
| 48 | + |
| 49 | +- **Improved auto-resume reliability** — Auto-resume now correctly handles sandboxes that are mid-transition (pausing or snapshotting), preventing transient 502 errors when traffic arrives during state changes. |
| 50 | +- **Better error types in SDKs** — The SDKs now distinguish between "sandbox not found" and "file not found" errors with dedicated `SandboxNotFound` and `FileNotFound` error types, making it easier to handle each case in your code. |
| 51 | +- **Connection config propagation fix** — Instance-level connection config (API key, domain, headers) is now correctly forwarded to all SDK methods including `pause` and `connect`. |
| 52 | + |
| 53 | +### Bug fixes |
| 54 | + |
| 55 | +- **Dotfiles included in template uploads** — Template file uploads now correctly include dotfiles (e.g., `.env`, `.gitignore`) that were previously skipped. |
| 56 | +- **CLI `sandbox list` pagination** — Fixed an issue where `sandbox list` could fetch all sandboxes regardless of the specified limit. The command now defaults to 1,000 results and respects the `--limit` flag. |
| 57 | +- **CLI `sandbox logs` timeout** — Fixed a bug where `sandbox logs` without `--follow` could hang due to unnecessary status polling. |
| 58 | +- **CLI error handling** — The CLI no longer crashes when the API returns non-standard HTTP status codes. |
| 59 | +- **Python SDK stream timeout** — Improved timeout handling for streaming requests to prevent hanging connections. |
| 60 | +</Update> |
0 commit comments