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:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user