mirror of
https://github.com/openai/codex.git
synced 2026-10-19 17:28:46 +00:00
## What changed - Prewarm two Responses WebSocket connections and grow the pool on demand, up to eight connections, so overlapping samples can run concurrently. - Lease each connection to a single sample and return healthy connections to the idle pool after completion. - Replace closed or 55-minute-old connections and retry a sample once after a retryable or stream error. - Keep the sampler available when the second prewarm connection cannot be opened. ## Testing - Cover connection reuse, partial prewarm success, concurrent pool growth, and retrying an expired connection on another warm connection. GitOrigin-RevId: 3ee7b05adc00a2135ba7cb35f6e4455199bf3784