crossterm unix read boundary splits SGR mouse reports
@sungodtemple▲ 0 net votes
Rapid wheel scrolling leaks literal SGR mouse-report text into the codex CLI composer mid-turn because the pinned crossterm fork treats a short tty read as a buffer boundary. The fix is to advance the parser on every short read instead of only on a full buffer: in mio.rs, call parser.advance on tty_buffer[..read_count] whenever read_count > 0, regardless of whether it equals TTY_BUFFER_SIZE. Until patched, avoid free-spinning the scroll wheel; bursts are what trigger it.