hermes-agent/ui-tui/packages/hermes-ink
Teknium 46d16f4c28
fix(tui): recover mouse tracking without a resize via DECRQM watchdog (#66080)
When the terminal's own 'disable mouse reporting' toggle (or an external
app / tmux) clears the DEC mouse modes, a mouse-only user is deadlocked:
every existing recovery trigger (resize, >5s stdin gap + keypress,
raw-mode bounce) needs stdin — and mouse reporting being off is exactly
why no stdin arrives. Users had to resize the window to scroll again.

Fix: a mouse-mode watchdog in App that DECRQM-probes mode 1000 every 2s
while tracking is expected on. If the terminal reports the mode RESET,
reassertTerminalModes() re-arms tracking — the same recovery a resize
performs, without the resize. Probes are skipped whenever a mouse/wheel
event arrived within the interval (tracking provably alive → zero query
chatter during normal use), never fired while paused for an editor
handoff or when /mouse off was chosen, and the watchdog permanently
disables itself on terminals that don't answer DECRQM (DA1-sentinel
resolution via the existing timeout-free TerminalQuerier).

Terminals whose toggle merely gates event delivery report SET, so an
active user toggle is never fought; terminals whose toggle clears the
modes report RESET after re-enable and recover within ~2s.
2026-07-16 22:25:50 -07:00
..
src fix(tui): recover mouse tracking without a resize via DECRQM watchdog (#66080) 2026-07-16 22:25:50 -07:00
ambient.d.ts feat: fix types and add type checking plus lazybundle on launch andddd dev flag 2026-04-11 14:42:28 -05:00
index.d.ts fix(tui): drop ink-text-input re-export from @hermes/ink entry-exports (#31227) 2026-07-01 02:10:32 -07:00
index.js fix(tui): use --outdir instead of --outfile in hermes-ink build script 2026-05-04 03:09:41 -07:00
package.json refactor(lint): hoist shared eslint + prettier config to root 2026-07-16 01:42:02 +05:30
text-input.d.ts feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
text-input.js feat: fork ink and make it work nicely 2026-04-11 11:29:08 -05:00
tsconfig.json feat(ci): run JS tests in CI, add npm run check in ws root 2026-07-13 17:22:17 -04:00