# NousResearch/hermes-agent · Fallback provider session and billing cooldown fixes

## Open now

- 1 issue, 2 PRs open on GitHub.
- #126818: Fallback provider does not revert to primary after primary is refunded mid-session
- PR #119652: fix(agent,hermes_cli): re-probe a lone rate-limited credential and consolidate pool/fallback cooldown fixes
- PR #126857: fix(fallback): unpin the session from the fallback once the primary is funded again (#126818)

These items address two related bugs in fallback provider logic: billing cooldowns being armed from the wrong source, and sessions not returning to the primary provider after it is refunded.

## TL;DR

- 4 member(s): 1 open issue(s), 0 closed issue(s), 2 open PR(s), 0 merged PR(s), 1 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.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.

## Open related issues

- #126818: Fallback provider does not revert to primary after primary is refunded mid-session

## Prior & competing PRs

- **#119652: fix(agent,hermes_cli): re-probe a lone rate-limited credential and consolidate pool/fallback cooldown fixes**. open
  - maintainer direction: category `volume_quota`; implication `active`; refs `aa6ab6e637`, `456242f971`, `456242f971`, `#1`, `#4`
  - files: `agent/agent_init.py`, `agent/agent_runtime_helpers.py`, `agent/agent_runtime_pool.py`, `agent/anthropic_credentials.py`, `agent/auxiliary_client.py`, `agent/auxiliary_model_scope.py`, `agent/auxiliary_plugin_oauth.py`, `agent/auxiliary_unavailable.py`, `agent/chat_completion_helpers.py`, `agent/chat_completion_helpers_pool.py`, `agent/credential_pool.py`, `agent/credential_pool_admin.py`, `agent/credential_pool_cooldowns.py`, `agent/credential_pool_model_cooldowns.py`, `agent/error_surface.py`, `agent/fallback_cooldown.py`, `agent/turn_recovery.py`, `hermes_cli/auth.py`, `hermes_cli/auth_codex.py`, `hermes_cli/auth_commands.py` (+34 more)
- **#126857: fix(fallback): unpin the session from the fallback once the primary is funded again (#126818)**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `c7b262c77c`, `9c268aebd32c7b9cd02e3d38da2baa0205a6000e`, `9cf7960f274ea2bdfe672d64d26389e9954dfeb6`, `9c268aebd32c7b9cd02e3d38da2baa0205a6000e`
  - files: `agent/agent_runtime_helpers.py`, `agent/chat_completion_helpers.py`, `agent/credential_pool.py`, `agent/fallback_cooldown.py`, `tests/agent/test_billing_recovery.py`
- **#127257: fix(fallback): arm billing cooldowns from the retry ladder, not provider reset_at (#126818)**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
