NousResearch/hermes-agent

TUI exit corrupts terminal state for shells/apps

Cluster 19194 · hermes cli. Data as of

3 open items. Fix merged in #19589. Check it covers your case.

The short answer

1open issue
2open PRs
6items grouped
Known?
Yes. 6 related items grouped here, 1 issue already closed.
Fix event
A fix was merged to main in PR #19589. Check it covers your case. No release data is tracked.
Tracker
The maintainers' tracker marks this unresolved. That is separate from the fix event.
Still open
1 issue and 2 PRs.

Multiple bug reports and fix attempts addressing the TUI leaving the terminal in a broken state after quitting, including leaked mouse/focus modes and kitty keyboard protocol sequences that corrupt subsequent shell or ncurses application behavior.

Open issues1

  • Issue#56759[Bug]: TUI leaves terminal in corrupted state after clean /quit — breaks legacy ncurses apps (e.g. nano); survives stty sane and manual escape-sequence resets, requires full reset

Open PRs2

  • PR#56765fix: kitty keyboard protocol corruption after TUI /quit
  • PR#57161fix(tui): reset terminal modes before Ink unmount to prevent kitty keyboard leak (#56759)

Fixes on record

Merged to main. A stamp counts the issues a fix is linked to.

  • #19589 fix(tui): restore terminal modes on all exit paths

    merged to main

    files: ui-tui/src/app/useMainApp.ts

1 PR closed without merging

From the close comments: merged via another change 1

  • #19210 fix(tui): restore terminal modes on all exit paths · merged via another change → #19589
Closed issues · 1
  • Closed#19194[Bug]: hermes leaves fish shell in a broken state after `/quit`
How this cluster was grouped
  • Link evidence (partly structural links): some members are connected by structural evidence (shared changed files, or a closing/superseded reference); the rest are joined by an automated relevance judgement over their text.
  • Members outside that structural core may belong to a different underlying problem.
  • Pairwise link density 0.29: the share of item 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.

Pick up a Lab task

Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.

Open the Lab

At a glance

Subsystem
hermes cli
Merged PRs
#19589
Closed issues
1
Attempts
1 PR closed without merging
Fix link checked
4 May 2026

For your agent

The same facts, typed.