e2b@2.52.0
E2B 2.52.0 introduces client-side caps on sandbox fork counts (max 20), aligns .dockerignore and file ignore behaviors directly with Docker rules, adds an HTTP version pin option, and expands control-plane request retry logic.
原始内容为英文;当前页面提供中文导航与来源说明,具体事实请以原文为准。
为什么值得关注
E2B release 2.52.0 brings several minor and patch improvements across its CLI, Python, and JavaScript SDKs. First, Sandbox.fork now enforces a count between 1 and 20 client-side before calling the API. Second, template file copying behavior now adheres strictly to Docker semantics regarding .dockerignore and fileIgnorePatterns : directory matching excludes all sub-items, ! re-inclusion is supported, brace expansion is no longer supported in JS (treated literally), and symlink handling in Python copies the link itself rather than directory contents. Files hashes have been updated, which will trigger a rebuild of affected copy steps on the next build. Third, an httpVersion option ( 1.1 or 2 , default 2 ) is introduced in SDK clients and via E2B HTTP VERSION . Finally, the control-plane client now automatically retries on 502/503 errors and connection failures (refused, DNS, dropped connections) using exponential backoff with jitter, explicitly excluding non-idempotent POST operations like sandbox creation or fork.
可执行摘要
E2B version 2.52.0 enforces a client-side cap (1–20) on sandbox fork counts, standardizes file ignore handling across JS and Python to match Docker semantics (disabling brace expansion in JS and excluding directory matches), adds httpVersion configuration (HTTP/1.1 vs HTTP/2), and adds automatic retries for 502, 503, and connection failures on idempotent control-plane requests.
- Agent 实用度
- 77/100
- 可信度
- 96%
- 机器格式
- JSON + Markdown
开发者应核对什么
- Verify fork invocations specify a count between 1 and 20; counts above 20 will now be rejected before the API call.
- Update JS fileIgnorePatterns that used brace expansions like /.{env,pem} to explicit separate patterns (e.g., /.env , /.pem ).
- Expect a one-time rebuild of template copy() steps due to updated file hashing logic.
- Optional: Configure httpVersion: '1.1' or set E2B HTTP VERSION=1.1 if pinning to HTTP/1.1 is required for proxy or networking compatibility.