# NousResearch/hermes-agent · PTY session reaping blocked by attach/socket errors

## Open now

- 0 issues, 2 PRs open on GitHub.
- PR #110861: fix(dashboard): roll back a mid-replay attach drop so idle reaping can reclaim the PTY
- PR #110863: fix(pty): make failed websocket attachments reapable

Several fixes address scenarios where erroring or dropped WebSocket attachments leave PTY sessions permanently marked as attached, preventing idle reaping from reclaiming them. The changes cover socket send errors, mid-replay drops, and commit-ordering issues in the attach lifecycle — including a case where \`PtySession.attach()\` commits attached state before the replay write, leaving the PTY permanently unreapable if a client drops during attach.

## TL;DR

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

- #110849: PtySession.attach() commits attached state before the replay write — a client dropping during attach leaves the PTY permanently unreapable

## Prior & competing PRs

- **#111357: fix(dashboard): dropped terminal viewers no longer pin the PTY as attached forever (#110849, salvage #110859)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `hermes_cli/pty_session.py`, `hermes_cli/web_routers/chat_ws.py`, `tests/hermes_cli/test_pty_session.py`
- **#110859: fix(pty): recover sessions after socket send failures**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#111357`
- **#110861: fix(dashboard): roll back a mid-replay attach drop so idle reaping can reclaim the PTY**. open
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#111357`, `#110849`
  - files: `hermes_cli/pty_session.py`, `tests/hermes_cli/test_pty_session.py`
- **#110863: fix(pty): make failed websocket attachments reapable**. open
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#110849`, `#110859`, `#110861`
  - files: `hermes_cli/pty_session.py`, `tests/hermes_cli/test_pty_session.py`

## Fix status

- Merged to main in PR #111357 (cited above). No release data is tracked. Verify downstream.
- Fix last verified (merged) `2026-09-15`.
- Subsystem: `dashboard`
