mirror of
https://github.com/openai/codex.git
synced 2026-10-16 16:58:46 +00:00
## Why Startup prewarm waited for tool discovery before opening its WebSocket connection. Slow MCP startup therefore delayed connection setup even though the handshake could proceed independently. ## What changed - Run the WebSocket handshake concurrently with tool capture, then send `generate=false` with the discovered tools and finalized request metadata. - Include model and effective service-tier routing hints in preconnect, including the inherited tier for spawned subagents. Omit routing hints for guardian reviewer requests. - Recover authentication failures during preconnect and switch to HTTP fallback on `426 Upgrade Required`. ## Testing Add and extend regression coverage for handshake overlap with delayed MCP discovery, cancellation before warmup, finalized Responses Lite tool metadata, socket reuse and reconnection, service-tier changes and inheritance, and authentication recovery during preconnect. GitOrigin-RevId: ecb53540765df8227e55e79910a13a05260a4c8d