mirror of
https://github.com/openai/codex.git
synced 2026-11-18 22:20:48 +00:00
## Why Cold resumes warm only base instructions, leaving historical file images out of the WebSocket warm-up. ## What changed - Add the disabled-by-default `restored_history_prewarm` feature flag. - Start the WebSocket handshake while history loads, then build the warm-up from restored settings and history when it contains file images. - Retain the socket and normalized-image cache but discard the image warm-up response ID, so generation resends the full current history and subsequent turns continue from the real response. - Keep base warm-up for history without file images and defer image preparation to generation when the handshake falls back to HTTP. ## Testing Add request-history tests and snapshots covering text-only history, interrupted and injected images, resuming with a vision model after image omission, and HTTP fallback without duplicate image resolution. GitOrigin-RevId: 9a828f44ef0952f7335b5a8c0f7844a069f90d80