# NousResearch/hermes-agent · Capping auth refresh loops to enable fallback

## Open now

- Nothing open on GitHub.

These issues and PRs address a scenario where repeated credential refresh attempts on persistent 401/403 errors loop indefinitely, preventing fallback providers from activating. The work involves adding a cap on consecutive refresh attempts for the same credential entry so the fallback path can be reached.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 0 open PR(s), 1 merged PR(s), 2 PR(s) closed without merging.
- A fix was merged to main in PR #53919. Verify it addresses your case.
- **Recommended:** read PR #53919 (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-53919`. 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.50`: 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

- #26080: Credential pool refresh loop prevents fallback activation on persistent 401s

## Prior & competing PRs

- **#26093: fix(auth): cap consecutive credential refresh attempts to prevent infinite 401 loop**. closed without merge · fix tier `suggested`
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#53919: fix(agent): cap same-entry credential refreshes so fallback can activate (#26080)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/agent_runtime_helpers.py`, `agent/conversation_loop.py`, `tests/run_agent/test_run_agent.py`
- **#26092: fix(agent): stop auth refresh loops from blocking fallback**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#53919`

## Fix status

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