one_line

Function one_line 

Source
pub fn one_line(text: impl AsRef<str>) -> String
Expand 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.