pub fn render_tree(journal: &SessionJournal) -> StringExpand description
Render the journal as a tree, one line per reachable entry.
Indentation grows only where the history forks: an entry with a single child is followed by that child at the same depth, so a long linear session stays flat instead of drawing entry N at depth N. Each fork on the way down still adds one guide column. Several roots (a rewind to before the first message starts a new one) are drawn as siblings. The walk uses an explicit stack, so no session length can exhaust the thread’s stack.