Cap sandbox fork count at 20 - #1909
Conversation
e2b sandbox fork --count max now 20. bigger number die before api call. Co-authored-by: Jakub Dobry <dobrac@users.noreply.github.com>
🦋 Changeset detectedLatest commit: 5d65424 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
TASTE.md review: complies. The change is limited to the CLI, and I found no violations of T-47 (named constant), T-52 (client-side validation), T-63 (error message names the --count option), or any rule on the SDK surface (SDKs untouched, backend still validates).
Package ArtifactsBuilt from fedeb5f. Download artifacts from this workflow run. JS SDK ( npm install ./e2b-2.51.1-cursor-fork-max-20-4c8e.0.tgzCLI ( npm install ./e2b-cli-2.20.1-cursor-fork-max-20-4c8e.0.tgzCode Interpreter JS SDK ( npm install ./e2b-code-interpreter-2.8.1-cursor-fork-max-20-4c8e.0.tgzDesktop JS SDK ( npm install ./e2b-desktop-2.4.1-cursor-fork-max-20-4c8e.0.tgzPython SDK ( pip install ./e2b-2.51.0+cursor.fork.max.20.4c8e-py3-none-any.whlCode Interpreter Python SDK ( pip install ./e2b_code_interpreter-2.10.0+cursor.fork.max.20.4c8e-py3-none-any.whlDesktop Python SDK ( pip install ./e2b_desktop-2.6.0+cursor.fork.max.20.4c8e-py3-none-any.whl |
js and python sandbox fork reject count outside 1-20 before api call. skip count still omit field. Co-authored-by: Jakub Dobry <dobrac@users.noreply.github.com>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 52c2ef7edb
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
changeset now minor for cli, js sdk, and python sdk. tests also reject count -1 in one shot. Co-authored-by: Jakub Dobry <dobrac@users.noreply.github.com>
Fork count max now 20 in the CLI and both SDKs. Count outside 1–20 die before the API call. Leave count off and the API default still apply.
This is a minor bump for
@e2b/cli,e2b, and@e2b/python-sdk. Counts 21–100 used to reach the API. They now throw on the client.The OpenAPI spec still says maximum 100. That spec lives in e2b-dev/runtime, so this PR does not edit it. The client cap is the limit this change ships.
Linear: https://linear.app/e2b/issue/SDK-382/cap-sandbox-fork-count-at-20
Usage