Files
hermes-agent/hermes_cli
kshitijk4poor 95f20517c2 fix(codex): key the catalog cache on token state too, and drop the inner digest
An expired stored token makes _codex_catalog serve the static fallback (no Astra). Under
the principal-only key that fallback outlived the token refresh for the whole cache TTL —
before this stack the auth.json rewrite busted it. The identity now has an "expired" state
so the refresh to a live token for the same principal is a cache miss, as it was.

The helper also hashed the principal itself; _credential_fingerprint blake2b-hashes the
joined parts one frame up (they already carry raw API-key env values), so the second digest
bought nothing. It returns the principal (or the opaque token) directly, and the empty-token
case is one early return.
2026-09-22 20:44:30 +05:30
..
…
…
…
…
2026-09-21 13:28:28 -07:00
…
…
…
…
…