pub fn one_line(text: impl AsRef<str>) -> StringExpand description
2026-09-26: Collapse a message onto one line (whitespace runs become one space) and bound it to 300 characters, the last an ellipsis.
Log lines land in a fixed-height pane; a model reply or a traceback pasted in raw scrolls everything else off the screen.