Files
codex/codex-rs/models-manager
aakash-oai 1640c74f1f Count remote model catalog ETag hint outcomes (#65110)
## What changed

Record one increment of `codex.remote_models.etag_hint` per comparison
when metrics are enabled. Set `result` to `match` or `mismatch` when the
current endpoint identity has a cached ETag, and to `no_baseline` when
there is no comparable cached ETag. Count the outcome even if the
subsequent refresh fails or authentication prevents a fetch.

## Testing

Add an in-memory metrics test that checks the exact counts and verifies
that a matching hint skips the fetch and an equal ETag from another
endpoint identity counts as `no_baseline`.

GitOrigin-RevId: 9570f415d43cf19bac8f4d82960466c86e883f73
2026-12-01 23:40:13 +00:00
..