Files
YeonGyu-Kim ff61f704b0 fix: strip terminal probe escape sequences from tmux pane capture and reply input
Terminal probe replies (DA, CPR, OSC color queries) from delegated pane
startup were leaking into the main OpenCode chat input as garbled text.

Root cause: captureTmuxPane() returned raw tmux capture-pane output
containing ANSI CSI/OSC/DCS escape sequences, and sanitizeReplyInput()
only stripped basic control characters (x00-x1f) but not escape sequences.

Fix:
- Add stripTerminalProbes() to tmux.ts that strips CSI, OSC, DCS, and
  bare ESC sequences while preserving normal text
- Apply stripTerminalProbes() to captureTmuxPane() output before returning
- Add ANSI/OSC/DCS stripping to sanitizeReplyInput() as defense-in-depth

11 new test cases covering DA, CPR, OSC, SGR, DCS, mixed sequences,
and the exact bug report pattern.

Closes #2887
2026-04-02 19:25:55 +09:00
..