Files
hermes-agent/agent
kshitijk4poor b6a19d6262 fix(anthropic): keep the fallback-restore snapshot's OAuth flag paired with its refreshed key
The credential refresh moved _primary_runtime["anthropic_api_key"] to the new token but left
_primary_runtime["is_anthropic_oauth"] at the old token's value, while self._is_anthropic_oauth is
recomputed from the new token. _build_anthropic_client_from_runtime restores the key and flag
together after a fallback, so a refresh that changed token type (Console key -> OAuth) would
restore the new key with the stale flag. Update the flag under the same identity guard.

Fold finding C15 #1 (gate quality review).
2026-10-07 13:20:42 +05:30
..
…