Expose sandbox bypass in Rust API - #2372
Open
ellismg wants to merge 1 commit into
Open
Conversation
Teach the Rust code generator about the runtime's allowBypass host capability until the pinned CLI schema includes it, then verify camelCase serialization and omission when unset. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Exposes the runtime’s optional sandbox-bypass capability through the Rust SDK.
Changes:
- Augments the API schema during Rust code generation.
- Regenerates
SandboxConfigwith optional camelCase serialization. - Tests enabled and omitted serialization behavior.
Show a summary per file
| File | Description |
|---|---|
scripts/codegen/utils.ts |
Adds the temporary schema augmentation. |
scripts/codegen/rust.ts |
Applies augmentation during Rust generation. |
rust/src/generated/api_types.rs |
Adds allow_bypass to SandboxConfig. |
rust/tests/api_types_test.rs |
Verifies serialization and omission. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 3/4 changed files
- Comments generated: 0
- Review effort level: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SandboxConfig.allowBypasshost capability until the pinned CLI schema includes itSandboxConfigwith idiomaticallow_bypass: Option<bool>and camelCase serde outputSome(true)and omission ofNonePaired with github/github-app#12088.
Validation
cargo test --test api_types_test sandbox_allow_bypass_serializes_as_optional_camel_case -- --exactcargo +nightly-2026-04-14 fmt --checkcargo clippy --all-features --all-targets -- -D warningscargo test --all-features(608 passed; 10 concurrent E2E proxy startup timeouts; sampled failures passed serially)