pub fn display_tail(msgs: &[SharedMessage], max_items: usize) -> DisplayTailExpand description
The last max_items display items (0 = unbounded). Walks from the back
and stops once the cap is met; the head is only counted (no allocation),
so a 20 MB history costs O(tail) allocations + one O(n) scan.