# NousResearch/hermes-agent · ACP session wedge fix via finally block

## Open now

- Nothing open on GitHub.

These items address a bug where an exception during ACP's post-turn tail phase could leave the session permanently wedged by not releasing the is_running flag. The fix ensures the turn release happens inside a finally block so failures cannot block subsequent prompts.

## 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 #116784. Verify it addresses your case.
- **Recommended:** read PR #116784 (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-116784`. 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

- #115588: \[Bug\]: ACP _finish_turn still releases is_running outside try/finally — any tail exception wedges the session (follow-up to #64471 / #114912)

## Prior & competing PRs

- **#116784: fix(acp): a failed post-turn tail no longer wedges the session; the next prompt runs (#115588, salvage #115593)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `acp_adapter/server.py`, `tests/acp_adapter/test_finish_turn_finally.py`, `tests/acp_adapter/test_server.py`
- **#115593: fix(acp): release the turn in a finally so mid-tail failure cannot wedge the session**. closed without merge
  - maintainer direction: category `merged_via`; implication `superseded`; refs `8d3c8f409b3e`, `#116784`, `#115588`, `#115593`

## Fix status

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