Lightweight coding agent that runs in your terminal
Rust
Fix ctrl+c interrupt while streaming (#1617)
aibrahim-oaid5a2148deb83
diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rsindex 7c825acd41..c22bbf9704 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