Skip to content

Support remote code-mode hosts in app-server - #35098

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/715e82d4d9db1e7e2f91b754a777dcab504e2ae4
Jul 24, 2026
Merged

Support remote code-mode hosts in app-server#35098
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/715e82d4d9db1e7e2f91b754a777dcab504e2ae4

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 24, 2026

Copy link
Copy Markdown

Support remote code-mode hosts in app-server

What changed

  • Add --code-mode-host ws://... and wss://... support to codex app-server, gated by the code_mode_host feature. When omitted, app-server continues to start a local host.
  • Share one remote WebSocket connection across the process's threads, using the configured HTTP client's proxy and TLS policy and preserving the existing framed host protocol.
  • Reject invalid host URLs, bound WebSocket frame sizes, close connections cleanly, and return an error when a connection exceeds 1,024 pending delegate calls without disconnecting it.

Testing

  • Cover CLI validation, WebSocket protocol execution and shutdown, connection sharing across app-server threads, and delegate-call capacity recovery.

## What changed

- Add `--code-mode-host ws://...` and `wss://...` support to `codex app-server`, gated by the `code_mode_host` feature. When omitted, app-server continues to start a local host.
- Share one remote WebSocket connection across the process's threads, using the configured HTTP client's proxy and TLS policy and preserving the existing framed host protocol.
- Reject invalid host URLs, bound WebSocket frame sizes, close connections cleanly, and return an error when a connection exceeds 1,024 pending delegate calls without disconnecting it.

## Testing

- Cover CLI validation, WebSocket protocol execution and shutdown, connection sharing across app-server threads, and delegate-call capacity recovery.

GitOrigin-RevId: 715e82d4d9db1e7e2f91b754a777dcab504e2ae4
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/715e82d4d9db1e7e2f91b754a777dcab504e2ae4 branch from 2f02ade to f61b51d Compare July 24, 2026 04:38
@copyberry
copyberry Bot merged commit f61b51d into main Jul 24, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/715e82d4d9db1e7e2f91b754a777dcab504e2ae4 branch July 24, 2026 04:39
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 24, 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