# NousResearch/hermes-agent · Fix credential lookup order for Hermes pool priority

## Open now

- Nothing open on GitHub.

These items address a bug where the Claude Code login was being borrowed before the Hermes credential pool during token resolution, causing unintended logouts on refresh. The fixes adjust credential precedence so owned grants and the Hermes pool are consulted first, keeping auxiliary refresh source-bound.

## TL;DR

- 3 member(s): 0 open issue(s), 1 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 #104901. Verify it addresses your case.
- **Recommended:** read PR #104901 (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: `resolved` · deciding PR(s): `pr-104901`. 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.

## Closed / duplicate issues

- #104622: \[Bug\]: resolve_anthropic_token() borrows the Claude Code login before the Hermes credential pool, logging Claude Code out on every refresh

## Prior & competing PRs

- **#104901: fix: owned Anthropic grants win and auxiliary refresh stays source-bound**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/anthropic_credentials.py`, `agent/auxiliary_client.py`, `tests/agent/test_anthropic_adapter.py`, `tests/agent/test_anthropic_owned_routing.py`, `tests/agent/test_anthropic_spent_rotation_verdict.py`, `tests/agent/test_auxiliary_client.py`, `website/docs/integrations/providers.md`
- **#104624: fix(auth): consult the Hermes credential pool before borrowing the Claude Code login**. closed without merge
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `bdf45abd7c`, `#104622`, `#104901`, `#101555`

## Fix status

- Merged to main in PR #104901 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-07`.
