# NousResearch/hermes-agent · TUI resume history session kills prior session bug

## Open now

- 1 issue, 1 PR open on GitHub.
- #121121: TUI: resuming a history session calls closeSession(previousSid), killing running subagents in the previous session
- PR #121127: fix(tui): keep prior session running when resuming

A bug where resuming a history session in the TUI incorrectly calls closeSession on the previous session ID, terminating any running subagents in that session. Multiple fix attempts address keeping the prior session alive during resume.

## TL;DR

- 5 member(s): 1 open issue(s), 0 closed issue(s), 1 open PR(s), 0 merged PR(s), 3 PR(s) closed without merging.
- No fix has been merged to main; one or more PRs were attempted (see below).
- **Recommended:** review the prior/competing PR(s) below. A fix was attempted but not merged; your case may extend or revive that work.

## 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.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.

## Open related issues

- #121121: TUI: resuming a history session calls closeSession(previousSid), killing running subagents in the previous session

## Prior & competing PRs

- **#121126: fix(tui): keep prior session running when resuming**. closed without merge
  - maintainer direction: category `silent_close`; implication `active`
- **#121127: fix(tui): keep prior session running when resuming**. open
  - maintainer direction: category `stale_abandoned`; implication `active`; refs `1cb26bf248e150f715ce8a487fdef2a2bef6b541`
  - files: `ui-tui/src/__tests__/canonicalDetachClose.test.tsx`, `ui-tui/src/__tests__/resumeEpochRenderer.test.tsx`, `ui-tui/src/__tests__/useSessionLifecycleStoredSid.test.ts`, `ui-tui/src/app/useSessionLifecycle.ts`
- **#121134: fix(tui): resume history session keeps previous session alive**. closed without merge
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `d1915029e3d46`, `#121127`
- **#121873: fix(tui): resume history session keeps previous session alive**. closed without merge
  - maintainer direction: category `uncategorized`; implication `needs_llm`; refs `8be7fd8f5b19`

## Fix status

- No merged fix on record.
- Subsystem: `agent`
