Files
hermes-agent/tests/agent
teknium1 428056e7b9 fix(auth): Claude Code dead refresh token is reported once; CLAUDE_CONFIG_DIR honoured; no 'claude setup-token' hints
Review follow-up on the sibling refresher path (_refresh_oauth_token), which
the PR title already claimed but only the pool path delivered:

- A refresh token the endpoint rejected terminally (invalid_grant etc.) is
  fingerprinted in a process-local set; later attempts skip the POST and log
  at DEBUG instead of replaying the dead token and re-firing the WARNING on
  every resolve. A rotated token (user re-logs into Claude Code) has a new
  fingerprint and is tried normally.
- claude_code_credentials_path() honours CLAUDE_CONFIG_DIR (blank = unset,
  same rule as hermes_cli.foreign_sessions), so the opt-out the PR body
  documents actually exists and matches the Claude CLI's own relocation.
- The three remaining 're-run claude setup-token' hints inside the refresher
  now say 'hermes auth add anthropic' like the rest of the PR; setup-token
  does not repair the Claude Code file anyway.
2026-09-17 09:02:26 -07:00
..