Skip to content

Resolve outbound proxy routes explicitly - #34435

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3b7cf170dcfe639eec53c3c1514f92bfcf13e7e9
Jul 21, 2026
Merged

Resolve outbound proxy routes explicitly#34435
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/3b7cf170dcfe639eec53c3c1514f92bfcf13e7e9

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 21, 2026

Copy link
Copy Markdown

Resolve outbound proxy routes explicitly

Why

System proxy discovery can block, and delegating fallback to each transport can repeat discovery or apply inconsistent environment proxy behavior.

What changed

  • Resolve unavailable system proxy decisions to an explicit environment proxy or direct route, including NO_PROXY settings and WebSocket-specific fallbacks.
  • Add asynchronous system proxy resolution that uses cached decisions first and serializes blocking platform lookups on Windows and macOS.
  • Preserve NO_PROXY handling for WebSocket connections, including HTTP and HTTPS proxies, and hash proxy cache keys on every platform.

Testing

  • Add coverage for explicit environment fallback, cached asynchronous resolution, and proxied or bypassed WebSocket connections.
## Why

System proxy discovery can block, and delegating fallback to each transport can repeat discovery or apply inconsistent environment proxy behavior.

## What changed

- Resolve unavailable system proxy decisions to an explicit environment proxy or direct route, including `NO_PROXY` settings and WebSocket-specific fallbacks.
- Add asynchronous system proxy resolution that uses cached decisions first and serializes blocking platform lookups on Windows and macOS.
- Preserve `NO_PROXY` handling for WebSocket connections, including HTTP and HTTPS proxies, and hash proxy cache keys on every platform.

## Testing

- Add coverage for explicit environment fallback, cached asynchronous resolution, and proxied or bypassed WebSocket connections.

GitOrigin-RevId: 3b7cf170dcfe639eec53c3c1514f92bfcf13e7e9
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/3b7cf170dcfe639eec53c3c1514f92bfcf13e7e9 branch from 7b5c867 to c9ef7ef Compare July 21, 2026 00:33
@copyberry
copyberry Bot merged commit c9ef7ef into main Jul 21, 2026
29 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/3b7cf170dcfe639eec53c3c1514f92bfcf13e7e9 branch July 21, 2026 00:34
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 21, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

1 participant