nit: do not render terminal interactions if no task running (#9374)

To prevent race where the terminal interaction message is processed
after the last message
This commit is contained in:
jif-oai authored and GitHub committed 2026-01-20 10:20:17 +00:00
1 parent 483239d861
commit 9ec20ba065
2 files changed
+29

No files matched your search

+3
View File
@@ -1226,6 +1226,9 @@ impl ChatWidget {
}
fn on_terminal_interaction(&mut self, ev: TerminalInteractionEvent) {
if !self.bottom_pane.is_task_running() {
return;
}
self.flush_answer_stream_with_separator();
let command_display = self
.unified_exec_processes