Skip to main content

Module transcript

Module transcript 

Source
Expand description

Block-aware transcript renderer.

Goal-144 replaces the single-line StyledMessage::to_line() ladder with one render function per TranscriptBlock variant. A block produces 1-or-more Lines; the chat panel concatenates the results separated by a blank line.

Functionsยง

render_block
Render a single block. Exposed for unit tests.
render_blocks
Convert the entire transcript into a flat Vec<Line> with one blank line between adjacent blocks. Folded ToolResult blocks honour the expanded flag.