Lightweight coding agent that runs in your terminal
Rust
Remove Turndiff and Apply patch from the render (#1868)
aibrahim-oai31dcae67dbb9
diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rsindex 94bd2f121b..7751404f7d 100644--- a/codex-rs/tui/src/chatwidget.rs+++ b/codex-rs/tui/src/chatwidget.rs@@ -492,11 +492,13 @@ impl ChatWidget<'_> {EventMsg::ShutdownComplete => {self.app_event_tx.send(AppEvent::ExitRequest);}- event => {- let text = format!("{event:?}");- self.add_to_history(HistoryCell::new_background_event(text.clone()));- self.update_latest_log(text);+ EventMsg::BackgroundEvent(event) => {+ let message = event.message;+ self.add_to_history(HistoryCell::new_background_event(message.clone()));+ self.update_latest_log(message);}+ // TODO: Think of how are we going to render these events.+ EventMsg::PatchApplyEnd(_) | EventMsg::TurnDiff(_) => {}}}