Add exec-server forwarding mode (#39249)

## What changed

- Add `codex exec-server forward --connect ws://HOST:PORT` to register an
  existing WebSocket exec-server as a remote environment.
- Open a separate destination WebSocket for each authenticated Noise relay
  stream and forward complete payloads unchanged in both directions.
- Preserve large messages through WebSocket fragmentation and coordinate
  disconnects, close acknowledgements, and pending output delivery.

## Testing

- Cover CLI validation, opaque payload forwarding, disconnect handling, and
  destination close behavior.
- Verify commands and large file transfers through the complete relay and
  forwarding path.

GitOrigin-RevId: 6e2dccff05b9e3571865611f4d432b0e2b4cdbac
This commit is contained in:
pakrym-oai authored and copyberry committed 2026-08-18 18:15:21 +00:00
1 parent 8193c56a59
commit 77e6889601
11 files changed
+722 -36

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
pub(crate) mod executor_stream;
mod harness;
mod message_framing;
pub(crate) mod message_framing;
mod ordered_ciphertext;
pub(crate) mod stream_handler;