# NousResearch/hermes-agent · Agent turn stalls and compression retry fixes

## Open now

- Nothing open on GitHub.

These items address scenarios where agent turns become permanently stuck or 'ghost' due to stalled streams or errors in context compression, and introduce retry and recovery logic to handle such hangs. A reported case involves a DeepSeek 500k-token session where stalled stream waits hit a 600s ceiling, leaving interrupted turns and later messages unable to start a new turn.

## TL;DR

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

- #78981: Session permanently dies after repeated context-compression hangs (DeepSeek 500k-token session): stalled stream waits 600s ceiling, interrupted turn never recovers, later messages never start a turn

## Prior & competing PRs

- **#96634: fix(compression): retry a stalled summary on the fallback chain (#78981)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `agent/context_compressor.py`, `agent/conversation_compression.py`, `contributors/emails/[redacted:email]`, `contributors/emails/[redacted:email]`, `run_agent.py`, `tests/agent/test_compression_stall_fallback_78981.py`, `website/docs/user-guide/configuration.md`
- **#97695: fix(agent): count only substantive auxiliary progress (#96667 salvage)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/auxiliary_client.py`, `tests/agent/test_aux_progress_streaming.py`
- **#80122: fix(agent): handle auxiliary stream stalls and prevent turn ghosting **. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `#97695`, `#96634`

## Fix status

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