Repository navigation
Conversation
…connection config
|
We require contributors to sign our Contributor License Agreement, and we don't have @DZH166 on file. You can sign our CLA at https://e2b.dev/docs/cla . Once you've signed, post a comment here that says '@cla-bot check' |
🦋 Changeset detectedLatest commit: be604fd The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 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 |
Codex Review Summary: ✅ CompletedThis 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.
TASTE.md review: complies — checked T-1/T-2 (JS + sync/async Python parity; the shared VolumeConnectionConfig now matches the JS volume client, which spreads caller headers last), T-49/T-51 (config resolution, no post-construction mutation), and T-52 (no added client-side validation); 0 violations.
There was a problem hiding this comment.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
Summary
VolumeConnectionConfigoverwrote theUser-Agentheader unconditionally, so a caller-suppliedUser-Agentwas silently discarded:Every other connection path in the SDKs keeps an explicit value: the main Python
ConnectionConfig._apply_user_agentdocuments "an explicitly provided value always wins", and the JS SDK's volume client spreadsconfig.headerslast, so an explicitUser-Agentwins there too. The Python volume config was the odd one out.The fix is one line: fill the SDK default with
setdefault, so it only applies when the caller did not send aUser-Agent.Callers that don't send one are unaffected: the default
e2b-python-sdk/<version>is still set.Validation
test_volume_user_agent_explicit_value_is_preservedfails (assert 'e2b-python-sdk/2.64.0' == 'my-agent/1.2').tests/test_volume_connection_config.pypasses (15 tests), plustests/test_volume_client.py,tests/test_connection_config.py,tests/test_env_var_parsing.py(88 passed total).ruff checkandruff format --check(pinned 0.11.13) pass on both touched files.git diff --checkclean.AI assistance
This fix was prepared by an automated agent (Claude Code, running as DZH166's contribution-preparation workflow) and reviewed before submission.