mirror of
https://github.com/openai/codex.git
synced 2026-10-20 17:38:45 +00:00
## Why Repeated prewarm calls still prepared instructions, tools, and a prompt even when an existing WebSocket connection was already warm. ## What changed Check for a previous request and a connection that is not known to be closed before startup prewarm preparation. Reuse this readiness check in `prewarm_websocket`, and record `ready` or `needs_prewarm` in the `codex.startup_prewarm.websocket_check` counter before preparation can fail. ## Testing Extend the WebSocket resume test to verify that repeated prewarm calls skip instruction loading on a healthy connection, while a closed connection triggers preparation again. GitOrigin-RevId: 6a1b361b36b4e7f16fb283e48a8ce4d4fb996ceb