Files
codex/codex-rs/core/tests/suite
Kenny Yi 1985925638 Refresh the model catalog from Responses WebSocket handshakes (#63533)
## 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
2026-11-24 04:08:59 +00:00
..
…