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:
parent
cc874c9205
commit
d5a2148deb
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue