There's a weird rendering issue with transcript mode: Tab chars bleed through when scrolling up/down. e.g. `nl -ba ...` adds tab chars to each line, which make scrolling look glitchy in transcript mode. Before: https://github.com/user-attachments/assets/631ee7fc-6083-4d35-aaf0-a0b08e734470 After: https://github.com/user-attachments/assets/bbba6111-4bfc-4862-8357-0f51aa2a21ac
oai-codex-ansi-escape
Small helper functions that wrap functionality from https://crates.io/crates/ansi-to-tui:
pub fn ansi_escape_line(s: &str) -> Line<'static>
pub fn ansi_escape<'a>(s: &'a str) -> Text<'a>
Advantages:
ansi_to_tui::IntoTextis not in scope for the entire TUI crate- we
panic!()and log ifIntoTextreturns anErrand log it so that the caller does not have to deal with it