# NousResearch/hermes-agent · Anthropic OAuth token rotation and refresh handling

## Open now

- 1 issue, 0 PRs open on GitHub.
- #92606: Anthropic OAuth (hermes_pkce/dashboard_pkce): stale credential file overwrites rotated token and two pool rows share one single-use refresh token -> 401 revoked -> empty pool

These items concern a bug where stale credential files overwrite rotated tokens and shared refresh logic incorrectly consumes single-use tokens, leading to 401 errors and empty pools. The work addresses keeping OAuth sessions valid through token rotation.

## TL;DR

- 3 member(s): 1 open issue(s), 0 closed issue(s), 0 open PR(s), 1 merged PR(s), 1 PR(s) closed without merging.
- A fix was merged to main in PR #98245. Verify it addresses your case.
- **Recommended:** read PR #98245 (and any competing PRs below) before filing. Confirm the merged change covers your symptom.

## Maintainer resolution verdict

- Internal-tracker verdict over this cluster's issue members: `unresolved`. This is distinct from the fix status above. Weigh it yourself.

## How this cluster was grouped

- Link evidence (`STRUCTURAL_SPANNING`): every member is connected by structural evidence: shared changed files, or a closing/superseded reference.
- Pairwise link density `0.67`: the share of member pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36. `1.00` means every pair is linked.

## Open related issues

- #92606: Anthropic OAuth (hermes_pkce/dashboard_pkce): stale credential file overwrites rotated token and two pool rows share one single-use refresh token -> 401 revoked -> empty pool

## Prior & competing PRs

- **#98245: Anthropic OAuth: shared-credential refreshes stop burning single-use tokens; dashboard PKCE removed (salvage #87891)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_adapter.py`, `agent/anthropic_credentials.py`, `agent/anthropic_endpoints.py`, `agent/anthropic_message_convert.py`, `agent/auxiliary_client.py`, `agent/credential_persistence.py`, `agent/credential_pool.py`, `hermes_cli/auth.py`, `hermes_cli/web_server.py`, `tests/agent/test_anthropic_adapter.py`, `tests/agent/test_anthropic_borrowed_row_authority.py`, `tests/agent/test_anthropic_credential_persist_failure.py`, `tests/agent/test_anthropic_keychain.py`, `tests/agent/test_anthropic_oauth_stress.py`, `tests/agent/test_anthropic_spent_rotation_verdict.py`, `tests/agent/test_anthropic_token_scope_isolation.py`, `tests/agent/test_auxiliary_client.py`, `tests/agent/test_credential_pool.py`, `tests/agent/test_credential_pool_anthropic_refresh_race.py`, `tests/agent/test_credential_pool_oat_authtype.py` (+9 more)
- **#92619: fix(auth): keep Anthropic OAuth sessions valid after token rotation**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `b4403a942a55`, `#98245`, `#87891`

## Fix status

- Merged to main in PR #98245 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-08-30`.
- Subsystem: `agent`
