8ba04316c1
readline repaints its prompt in place with a lone \r (…└─# \r└─# cmd); the browser turned that \r into a newline, stacking the pre-redraw prompt as a phantom extra line (the mobile-only "extra --#"). Add a collapseCR() mini-vt pass that resolves \r as a column-0 overwrite (ANSI escapes treated as zero-width so colours survive; honours \x1b[K erase-to-EOL) before ansiToHtml, so the real prompt stays and only the duplicate is dropped. TUI was already correct via its real vt emulator. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>