hermes-agent/ui-tui/src
Vesper (on behalf of Director) 1c8ce33d51 fix(tui): proactive mouse disable on ConPTY + /mouse toggle command
On Windows WSL2, ConPTY implicitly enables mouse event injection when
the alternate screen buffer (DEC 1049) is entered, causing raw escape
sequences to appear in the transcript as ghost characters.

Fix (two parts):
1. ConPTY fix: send DISABLE_MOUSE_TRACKING immediately after entering
   alt screen when mouse tracking is off (AlternateScreen.tsx)
2. Runtime toggle: add /mouse [on|off|toggle] slash command with config
   persistence (display.tui_mouse) so users can manage this at runtime

The env var HERMES_TUI_DISABLE_MOUSE continues to work as the initial
default, but can now be overridden via /mouse and persisted to config.

Closes: upstream ConPTY mouse injection issue
Credits: OutThisLife / PR #13716 for the toggle concept
2026-04-24 20:32:12 -07:00
..
__tests__ fix(tui): render tool trail before anchored inline diffs 2026-04-24 15:07:02 -05:00
app fix(tui): proactive mouse disable on ConPTY + /mouse toggle command 2026-04-24 20:32:12 -07:00
components fix(tui): render tool trail before anchored inline diffs 2026-04-24 15:07:02 -05:00
config chore(tui): /clean pass — inline one-off locals, tighten ConfirmPrompt 2026-04-19 07:55:38 -05:00
content fix(tui): input wrap width mismatch — last letter no longer flickers 2026-04-22 15:27:54 -05:00
domain feat(tui): stream thinking + tools expanded by default 2026-04-24 02:53:44 -05:00
hooks fix(tui): address PR #13231 review comments 2026-04-20 19:09:09 -05:00
lib fix(tui): route Ctrl+B to voice toggle, not composer input 2026-04-23 16:18:15 -07:00
protocol refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
types fix(tui): improve macOS paste and shortcut parity 2026-04-21 08:00:00 -07:00
app.tsx fix(tui): proactive mouse disable on ConPTY + /mouse toggle command 2026-04-24 20:32:12 -07:00
banner.ts refactor(tui): /clean pass across ui-tui — 49 files, −217 LOC 2026-04-16 22:32:53 -05:00
entry.tsx fix(tui): drop main-screen banner flash, widen alt-screen clear on entry 2026-04-22 15:27:54 -05:00
gatewayClient.ts fix(tui): address PR #13231 review comments 2026-04-20 19:09:09 -05:00
gatewayTypes.ts fix(tui): proactive mouse disable on ConPTY + /mouse toggle command 2026-04-24 20:32:12 -07:00
theme.ts feat(tui): subagent spawn observability overlay 2026-04-22 10:38:17 -05:00
types.ts fix(tui): gate messageLine on content-bearing sections, not all sections 2026-04-24 03:01:06 -05:00