pub fn chat_line_count(app: &ReplApp, terminal_width: usize) -> usizeExpand description
Count chat content ROWS for layout sizing.
Why: crate::layout::draw needs to know the rendered content height
before the vertical layout split so the chat pane can use
Constraint::Length(h) instead of Constraint::Min — Min expands to
fill all available space, pinning the input row to the screen bottom even
when the conversation is short.
What: measures build_chat_lines’s post-collapse, pre-pad lines with
[rendered_row_count], so a line the pane will wrap is reserved every row
it actually needs (#8205).
Test: tests::chat_line_count_is_zero_for_empty_chat_without_banner,
tests::chat_line_count_counts_wrapped_rows_not_logical_lines.