Skip to content

Support Windows sandboxing in the exec server - #34423

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6719ccbe87ad0d5a57af56503e3f23f894c60a71
Jul 20, 2026
Merged

Support Windows sandboxing in the exec server#34423
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/6719ccbe87ad0d5a57af56503e3f23f894c60a71

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 20, 2026

Copy link
Copy Markdown

Support Windows sandboxing in the exec server

Why

Sandboxed process launch through the exec server was unsupported on Windows.

What changed

  • Add a shared native process launcher that selects the Windows sandbox session backend when required and otherwise launches PTY or pipe-based processes.
  • Pass Windows permission, workspace-root, proxy, filesystem-override, and desktop settings through exec-server process preparation.
  • Preserve piped stdin and inherited file descriptors across the shared launch path.

Testing

  • Verify that a remote Windows sandbox process accepts stdin while blocking a write under a read-only policy.
  • Enable workspace-root sandbox tests on native Windows while continuing to skip environments that cannot emulate Windows sandbox semantics.

## Why

Sandboxed process launch through the exec server was unsupported on Windows.

## What changed

- Add a shared native process launcher that selects the Windows sandbox session backend when required and otherwise launches PTY or pipe-based processes.
- Pass Windows permission, workspace-root, proxy, filesystem-override, and desktop settings through exec-server process preparation.
- Preserve piped stdin and inherited file descriptors across the shared launch path.

## Testing

- Verify that a remote Windows sandbox process accepts stdin while blocking a write under a read-only policy.
- Enable workspace-root sandbox tests on native Windows while continuing to skip environments that cannot emulate Windows sandbox semantics.

GitOrigin-RevId: 6719ccbe87ad0d5a57af56503e3f23f894c60a71
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/6719ccbe87ad0d5a57af56503e3f23f894c60a71 branch from 7fa42c6 to 35c2278 Compare July 20, 2026 22:35
@copyberry
copyberry Bot merged commit 35c2278 into main Jul 20, 2026
18 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/6719ccbe87ad0d5a57af56503e3f23f894c60a71 branch July 20, 2026 22:36
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 20, 2026
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.

6 participants