Skip to content

Route sandbox CLI launches through the shared sandbox manager - #60517

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8b7396d21b2f34122699388f16047329a3f5e5c6
Nov 10, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8b7396d21b2f34122699388f16047329a3f5e5c6

Conversation

@copyberry

@copyberry copyberry Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Route sandbox CLI launches through the shared sandbox manager

What changed

  • Use SandboxManager to prepare codex sandbox commands, including permission profiles, workspace roots, and managed network proxy settings.
  • Return a WrappedSandboxCommand that can produce an execution request or a configured process command, preserving native executable paths and Linux helper argv[0]. Require the session launcher for native Windows token sandboxes.
  • Move macOS inherited-terminal policy handling into the shared manager, retaining Unix socket grants and the terminal input injection denial.
  • Prepare managed network context alongside proxy environment variables and pass it through sandbox transformation.

Testing

  • Extend sandbox network proxy tests to macOS, covering blocked direct loopback access and explicitly allowed requests.
  • Add coverage for Linux helper executable paths and dispatch names, including non-UTF-8 paths.

## What changed

- Use `SandboxManager` to prepare `codex sandbox` commands, including permission profiles, workspace roots, and managed network proxy settings.
- Return a `WrappedSandboxCommand` that can produce an execution request or a configured process command, preserving native executable paths and Linux helper `argv[0]`. Require the session launcher for native Windows token sandboxes.
- Move macOS inherited-terminal policy handling into the shared manager, retaining Unix socket grants and the terminal input injection denial.
- Prepare managed network context alongside proxy environment variables and pass it through sandbox transformation.

## Testing

- Extend sandbox network proxy tests to macOS, covering blocked direct loopback access and explicitly allowed requests.
- Add coverage for Linux helper executable paths and dispatch names, including non-UTF-8 paths.

GitOrigin-RevId: 8b7396d21b2f34122699388f16047329a3f5e5c6
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/8b7396d21b2f34122699388f16047329a3f5e5c6 branch from 35dec87 to d2efdf1 Compare November 10, 2026 04:01
@chatgpt-codex-connector

Copy link
Copy Markdown
Contributor
Codex Review Summary: 🔄 Running

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review 🔄 Running since 2026-11-10T04:01:50.359236Z 35dec87 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@copyberry
copyberry Bot merged commit d2efdf1 into main Nov 10, 2026
9 of 24 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/8b7396d21b2f34122699388f16047329a3f5e5c6 branch November 10, 2026 04:01
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 10, 2026

This branch was previously deployed

1 inactive deployment
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants