mirror of
https://github.com/openai/codex.git
synced 2026-11-22 23:00:42 +00:00
## Why Reconnecting for every runtime-authenticated request adds a WebSocket handshake and forces Codex to resend the full input instead of continuing from the previous response. ## What changed Allow requests to reuse an open WebSocket when the request headers, connection key, runtime ID, and parent routing affinity still match. ## Testing Cover reuse within and across turns, including incremental input through `previous_response_id`, and verify that credential replacement and account switches open new connections. Verify that a paused runtime is rejected on reconnect after the server closes its WebSocket. GitOrigin-RevId: cb89b9712f43027482147077a60d5c78fbdfd753