Skip to content

Commit 6217b16

Browse files
FisherXZclaude
andcommitted
spec: add envVars to ConnectSandbox request model
Extends POST /sandboxes/{sandboxID}/connect to accept optional environment variables. Field is optional, wire name envVars matches create-time sandbox env convention. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8d83482 commit 6217b16

4 files changed

Lines changed: 23 additions & 1 deletion

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'e2b': minor
3+
'@e2b/python-sdk': minor
4+
---
5+
6+
Add support for passing environment variables when reconnecting to a sandbox via `Sandbox.connect()`.

packages/js-sdk/src/api/schema.gen.ts

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/python-sdk/e2b/api/client/models/connect_sandbox.py

Lines changed: 12 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spec/openapi.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,9 @@ components:
660660
type: integer
661661
format: int32
662662
minimum: 0
663+
envVars:
664+
$ref: '#/components/schemas/EnvVars'
665+
description: Environment variables to set in the sandbox on reconnect. Merged into the sandbox environment and applied to processes started after resume.
663666

664667
TeamMetric:
665668
description: Team metric with timestamp

0 commit comments

Comments
 (0)