Support remote code-mode hosts in app-server - #35098
Merged
copyberry[bot] merged 1 commit intoJul 24, 2026
Merged
Conversation
## 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
Bot
force-pushed
the
copyberry/codex-internal-to-codex-oss/715e82d4d9db1e7e2f91b754a777dcab504e2ae4
branch
from
July 24, 2026 04:38
2f02ade to
f61b51d
Compare
copyberry
Bot
deleted the
copyberry/codex-internal-to-codex-oss/715e82d4d9db1e7e2f91b754a777dcab504e2ae4
branch
July 24, 2026 04:39
92645417d9e5c763259dbebc306e3e
temporarily deployed
to
issue-triage
July 24, 2026 05:47 — with
GitHub Actions
Inactive
92645417d9e5c763259dbebc306e3e
temporarily deployed
to
issue-triage
July 24, 2026 05:47 — with
GitHub Actions
Inactive
92645417d9e5c763259dbebc306e3e
temporarily deployed
to
issue-triage
July 24, 2026 05:47 — with
GitHub Actions
Inactive
92645417d9e5c763259dbebc306e3e
temporarily deployed
to
issue-triage
July 24, 2026 05:48 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support remote code-mode hosts in app-server
What changed
--code-mode-host ws://...andwss://...support tocodex app-server, gated by thecode_mode_hostfeature. When omitted, app-server continues to start a local host.Testing