From d5a2148deb836400c1af1292d0fa7cc7d86f19d4 Mon Sep 17 00:00:00 2001 From: aibrahim-oai Date: Fri, 18 Jul 2025 12:08:25 -0700 Subject: [PATCH] Fix ctrl+c interrupt while streaming (#1617) Interrupting while streaming now causes is broken because we aren't clearing the delta buffer. --- codex-rs/tui/src/chatwidget.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 7c825acd..c22bbf97 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -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