From 2521f9b981e04b0aa97cd4b9c6ae5ab4751472b3 Mon Sep 17 00:00:00 2001 From: Daniel Edrisian Date: Wed, 17 Sep 2025 11:18:13 -0700 Subject: [PATCH] rms --- codex-rs/tui/src/chatwidget.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index 0c7f186fdd..c1d2351b81 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -406,9 +406,9 @@ impl ChatWidget { fn on_web_search_end(&mut self, ev: WebSearchEndEvent) { self.flush_answer_stream_with_separator(); - let query = ev.query; self.add_to_history(history_cell::new_web_search_call(format!( - "Searched: {query}" + "Searched: {}", + ev.query ))); } @@ -999,8 +999,8 @@ impl ChatWidget { fn flush_active_exec_cell(&mut self) { if let Some(active) = self.active_exec_cell.take() { - let cell: Box = Box::new(active); - self.app_event_tx.send(AppEvent::InsertHistoryCell(cell)); + self.app_event_tx + .send(AppEvent::InsertHistoryCell(Box::new(active))); } }