# NousResearch/hermes-agent · TUI session close blocking response path

## Open now

- 0 issues, 1 PR open on GitHub.
- PR #25027: fix(tui): finalize closed sessions in background

These issues and fixes concern a bug where closing a TUI session (e.g. via /clear) blocks on finalization, potentially causing previous context to reload. The fixes detach session close finalization to run in the background.

## TL;DR

- 4 member(s): 0 open issue(s), 1 closed issue(s), 1 open PR(s), 0 merged PR(s), 2 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.50`: 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

- #23642: \[Bug\]: TUI /clear blocks on session finalization and appears to reload previous context

## Prior & competing PRs

- **#23646: fix(tui): detach session.close finalization from response path (#23642)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `implemented_elsewhere`; implication `superseded`; refs `#45687`, `#23642`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#45687: fix(tui): detach session.close finalization from response path (#23642)**. closed without merge · fix tier `suggested`
  - maintainer direction: category `superseded_by_pr`; implication `superseded`; refs `#25027`, `#23642`
  - _suggested-tier fix detail withheld; re-request with `?tier=all` to include it._
- **#25027: fix(tui): finalize closed sessions in background**. open
  - maintainer direction: category `uncategorized`; implication `needs_llm`
  - files: `tests/test_tui_gateway_server.py`, `tui_gateway/server.py`

## Fix status

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