pub fn render_transcript_human(record: &TranscriptRecord) -> StringExpand description
Render a TranscriptRecord as a readable turn-by-turn view for
tcode transcript (human mode; --json bypasses this entirely and
pretty-prints the raw result).
Why: a bare JSON dump of the transcript is hard to scan; a human wants
“who said what, with which tools” plus the cost/usage summary.
What: one block per turn (role header, prose if any, tool calls if
any), then a trailing usage/cost summary line. A never-run session (empty
turns) renders a single explanatory line rather than an empty string.
Test: tests::render_transcript_human_lists_turns_and_totals,
tests::render_transcript_human_handles_never_run_session.