tui: show queued messages during response stream (#5540)

This fixes an issue where messages sent during the final response stream
would seem to disappear, because the "queued messages" UI wasn't shown
during streaming.
This commit is contained in:
Jeremy Rose
2025-10-28 09:59:19 -07:00
committed by GitHub
parent 9b33ce3409
commit 36eb071998
18 changed files with 626 additions and 153 deletions

View File

@@ -127,11 +127,7 @@ impl HistoryCell for UserHistoryCell {
let style = user_message_style();
let wrapped = word_wrap_lines(
&self
.message
.lines()
.map(|l| Line::from(l).style(style))
.collect::<Vec<_>>(),
self.message.lines().map(|l| Line::from(l).style(style)),
// Wrap algorithm matches textarea.rs.
RtOptions::new(usize::from(wrap_width))
.wrap_algorithm(textwrap::WrapAlgorithm::FirstFit),