mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why Remote configuration reads need a bounded wait without disrupting valid in-flight work on connections that cannot reconnect. ## What changed - Add `read_environment_config_with_timeout` to `ExecServerClient` and `Environment`, bounding RPC sending and receiving after connection establishment. Local reads retain their existing behavior. - Return a typed `ExecServerError::RpcTimedOut` and classify it as retryable for read-only preparation. - Share timeout handling with environment-info requests. Close the timed-out transport and request recovery only when a reconnect strategy exists; otherwise, keep the connection open. ## Testing Add a regression test verifying that a timed-out configuration read preserves an in-flight stdio read and allows subsequent reads on the same connection, including after a late response. GitOrigin-RevId: 6785d5846f4c3b07a6e7c505e359238609c3a6b6