pub fn build_chat_lines(
app: &ReplApp,
terminal_width: usize,
) -> Vec<Line<'static>>Expand description
Build the rendered Vec<Line> for the chat pane.
Why: extracted so layout code can compute the chat content height
before the vertical layout split, letting the input row follow content
height instead of being pinned to the screen bottom.
What: replicates the banner + chat entry line-building logic; returns the
post-collapse, pre-pad lines. Width-dependent rendering (banner wrapping,
markdown table column sizing) uses terminal_width.
Test: tests::build_chat_lines_renders_user_and_assistant_entries,
tests::build_chat_lines_renders_fenced_code_block,
tests::build_chat_lines_renders_markdown_table,
tests::build_chat_lines_prepends_banner_when_shown.