mirror of
https://github.com/openai/codex.git
synced 2026-10-21 18:51:31 +00:00
## What changed - Add `grpc+stdio://` as a host transport and the disabled-by-default `code_mode_host_grpc` feature flag to select it. - Share a lazy HTTP/2 channel and host process across code-mode sessions while keeping session state isolated. - Use HTTP/2 keepalives to detect unresponsive hosts, kill and reap disconnected children, and spawn a fresh host on reconnect. Exit the host when its stdio connection closes. ## Testing Add coverage for shared-host session isolation, host exit on stdin EOF, and recovery after an unresponsive host is reaped. Exercise nested tool calls with both legacy stdio and gRPC stdio, asserting that the feature flag selects the expected transport. GitOrigin-RevId: 31389d8540de236b8e0571d3c24e29e117b75c4a