Fix ctrl+c interrupt while streaming (#1617)

Interrupting while streaming now causes is broken because we aren't
clearing the delta buffer.
This commit is contained in:
aibrahim-oai
2025-07-18 12:08:25 -07:00
committed by GitHub
parent cc874c9205
commit d5a2148deb

View File

@@ -464,6 +464,8 @@ impl ChatWidget<'_> {
if self.bottom_pane.is_task_running() {
self.bottom_pane.clear_ctrl_c_quit_hint();
self.submit_op(Op::Interrupt);
self.answer_buffer.clear();
self.reasoning_buffer.clear();
false
} else if self.bottom_pane.ctrl_c_quit_hint_visible() {
true