mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## 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