# NousResearch/hermes-agent · Agent redirect restart cap miscounts retries

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #128004: fix(agent): separate redirect restarts from provider retries

A bug where long interactive turns are incorrectly terminated because the redirect-restart counter shares or conflates its limit with the provider API retry count. The accompanying fixes separate redirect restarts from provider retries and reset the counter relative to the last response.

## TL;DR

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

- #128000: \[Bug\]: long interactive turns end as loop_error ("Hermes got stuck in a loop") — the redirect-restart cap reuses agent.api_max_retries, so mid-turn user messages kill the turn

## Prior & competing PRs

- **#130528: Effectful tool calls refuse cut-short compression markers, and mid-turn corrections no longer end long turns (#128000, salvage #127613, #128682)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/compression_marker.py`, `agent/conversation_loop.py`, `agent/tool_dispatch_helpers.py`, `agent/turn_iteration_prep.py`, `tests/agent/test_tool_call_guardrail_runtime.py`, `tests/agent/test_turn_iteration_prep.py`
- **#128004: fix(agent): separate redirect restarts from provider retries**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `agent/agent_init.py`, `agent/conversation_loop.py`, `agent/turn_iteration_prep.py`, `tests/agent/test_restart_counter_isolation.py`, `tests/agent/test_truncated_tool_call_boost.py`, `tests/agent/test_turn_iteration_prep.py`, `website/docs/user-guide/configuration.md`
- **#128682: fix(agent): count restarts since the last response toward the redirect cap**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `d486ba0c42`, `#130528`

## Fix status

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