# NousResearch/hermes-agent · Orphan session fix for stream interrupt recovery

## Open now

- Nothing open on GitHub.

A bug caused network error recovery during streaming to create phantom sessions with source='unknown' instead of resuming within the original session. These members address keeping stream-interrupt recovery inside the original session on Desktop and TUI clients.

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

- #111999: \[Bug\]: Phantom-Sessions (source=unknown) - Network-Error-Recovery creates orphan session records instead of continuing in the original session

## Prior & competing PRs

- **#112311: fix(sessions): stream-interrupt recovery stays in the original session, no source='unknown' phantoms on Desktop/TUI (#111999, salvage #112045)**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `agent/codex_runtime.py`, `agent/turn_usage.py`, `hermes_state.py`, `hermes_state_sessions.py`, `hermes_state_usage.py`, `tests/agent/test_token_guard_session_source.py`, `tests/tui_gateway/test_bot_live_owner_delivery.py`, `tests/tui_gateway/test_stream_interrupt_recovery_orphan.py`, `tui_gateway/prompt_turn.py`, `tui_gateway/session_reaper.py`, `website/docs/user-guide/configuration.md`
- **#112045: fix(sessions): keep a stream-interrupt recovery inside the original session (no source='unknown', assistant-first orphans)**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#112311`

## Fix status

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