pub(crate) fn tidy_rows(rows: &[String]) -> Vec<String>
The terminal’s rows as the agent gets them: trailing blank rows dropped, the bottom MAX_ROWS kept.
MAX_ROWS