mirror of
https://github.com/openai/codex.git
synced 2026-11-19 22:30:42 +00:00
## Why Proxy settings are bound to the command's execution environment. Preparing them again at launch can overwrite the settings already bound to the command, including credentials prepared for its shell. ## What changed Have `SandboxManager` prepare the proxy environment and sandbox network context together when the caller hasn't supplied a prepared route. Pass the prepared environment through to the child and use the prepared context for sandbox policy, including macOS Seatbelt's proxy ports and Unix socket rules. ## Testing Add regression coverage for preserving shell-specific credentials and environment-bound proxy settings, reporting proxy setup errors for the requested environment, and deriving Seatbelt rules from the prepared route. GitOrigin-RevId: 7a9b5822d8d53f6c93e6318a19222bf06abf0da0