Skip to content

fix(tui): remove ?1003h mouse tracking to prevent escape sequence leak#88

Merged
cc-claws merged 1 commit into
mainfrom
fix/mouse-escape-sequence-leak
Jun 27, 2026
Merged

fix(tui): remove ?1003h mouse tracking to prevent escape sequence leak#88
cc-claws merged 1 commit into
mainfrom
fix/mouse-escape-sequence-leak

Conversation

@cc-claws

Copy link
Copy Markdown
Owner

Fixes #87

?1003h (any-event tracking) sends SGR mouse events on every pixel movement. During agent rendering pauses, the ConPTY input buffer overflows, causing raw VT bytes to leak as Key(Char) events into the textarea.

The TUI never handles hover (MouseEventKind::Move), so ?1003h is entirely unused. ?1000h (click/scroll) + ?1002h (drag) cover all used events.

Changes:

  • Remove ?1003h from ENABLE_MOUSE_TRACKING_SEQUENCE
  • Remove ?1003l from DISABLE_MOUSE_TRACKING_SEQUENCE
  • Update tests to match
  • Add issue spec: spec/issues/2026-06-27-mouse-escape-sequence-leaks-into-input.md

…k into input

?1003h (any-event tracking) sends SGR mouse events on every pixel movement.
During agent rendering pauses, the ConPTY input buffer overflows, causing
raw VT bytes to leak as Key(Char) events into the textarea.

The TUI never handles MouseEventKind::Move (hover), so ?1003h is unused.
?1000h (click/release/scroll) + ?1002h (drag) cover all used events.

Co-Authored-By: mimo-v2.5-pro <XiaomiMiMo@cc-code>
@cc-claws cc-claws merged commit 113f611 into main Jun 27, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: mouse escape sequence leaks into textarea on ConPTY

1 participant