mirror of
https://github.com/openai/codex.git
synced 2026-11-24 23:20:47 +00:00
## Why The model catalog can stay stale when a server advertises a new `x-models-etag` only in the WebSocket handshake. ## What changed Save the handshake ETag through warmup and emit it as a `ResponseEvent::ModelsEtag` at the start of the first generation on each connection. Emit it once so reusing the connection cannot replay an old ETag after response metadata advertises a newer one. ## Testing Add regression tests for ETag delivery with and without warmup, across connection reuse and reconnects, and for a single catalog refresh when the handshake is the only source of the ETag. GitOrigin-RevId: f8fcaae4aaa0f245f01435b665cecb105c261852