mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Deferred remote environments previously waited for provisioning to succeed before looking up the executor and starting the Noise handshake. Starting that work while provisioning is pending can shorten the wait for a usable exec-server session. ## What changed When a deferred Noise environment is selected, start executor lookup and the handshake with a bounded retry window. After provisioning succeeds, refresh the connection bundle and reuse the early connection if it is still live and matches the current environment, executor registration, and public key. Otherwise, establish a fresh connection. Exec-server session initialization still waits for provisioning success, and a provisioning failure cancels the early connection. ## Testing Cover early connection reuse, fallback when the executor changes or the socket closes, and cancellation on provisioning failure. Verify that malformed handshake replies surface as protocol errors and that connection resets remain retryable. GitOrigin-RevId: 658135338672f0c02c33d9203299b05ba15d1fc2