fix(tui): drop control bytes and non-SGR escapes before rendering
A tool's output reached the terminal unfiltered, so a `\r`, an `ESC[2J` or an `ESC[5A` inside a result moved the cursor and rewrote or erased committed scrollback rows. - sanitize() keeps SGR — the TUI's own styling and any color a tool emits — and drops every other escape sequence and control byte. - it runs before the text is measured, so a row's width is its visible width, and at both display boundaries: renderRows (content lines, committed and in flight) and push (composed rows: call lines and terminal states). ux-walk-20260924 finding 1.
xonecas2026-09-25
89e140b2a9b996f495160fa30710ce6fd1999ace
parent 7841cb1