# NousResearch/hermes-agent · TUI session close leaks session-persistent kernels

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #105214: fix(tui): reap session-persistent kernels when a TUI-owned session ends

A bug where closing a TUI-owned session fails to reap session-persistent execute_code kernels, leaving them running until the next execute_code call. Two related fix attempts address this cleanup behavior.

## TL;DR

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

- #105213: \[Bug\]: Desktop/TUI session close leaks session-persistent execute_code kernels until the next execute_code in the process

## Prior & competing PRs

- **#122263: fix(tui): reap session kernels when a TUI-owned session ends**. merged to main · fix tier `verified`
  - maintainer direction: category `merged`
  - files: `tests/tui_gateway/test_session_finalize_reaps_kernels.py`, `tui_gateway/session_lifecycle.py`
- **#105214: fix(tui): reap session-persistent kernels when a TUI-owned session ends**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/tui_gateway/test_session_finalize_reaps_kernels.py`, `tui_gateway/session_lifecycle.py`

## Fix status

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