pub fn read_tail(path: &Path, cap: u64) -> Result<String>Expand description
The last cap bytes of a transcript, lossily decoded. Recent lines carry
the strongest “what is this session doing now” signal, and a bounded
read keeps a multi-hundred-MB transcript off the hot path. The first
line of the window is usually cut and fails to parse; callers skip it.