diff --git a/codex-rs/tui/src/bottom_pane/mod.rs b/codex-rs/tui/src/bottom_pane/mod.rs index 711afd4e20..dd5d4de670 100644 --- a/codex-rs/tui/src/bottom_pane/mod.rs +++ b/codex-rs/tui/src/bottom_pane/mod.rs @@ -391,12 +391,11 @@ impl BottomPane { let msg = format!("Approve \"{preview}\"?"); notifications::send_os_notification(&msg); } - ApprovalRequest::ApplyPatch { reason, grant_root, .. } => { + ApprovalRequest::ApplyPatch { + reason, grant_root, .. + } => { let msg = if let Some(root) = grant_root { - format!( - "Approve patch changes? Grant write to {}", - root.display() - ) + format!("Approve patch changes? Grant write to {}", root.display()) } else if let Some(r) = reason { format!("Approve patch changes? {r}") } else { diff --git a/codex-rs/tui/src/chatwidget.rs b/codex-rs/tui/src/chatwidget.rs index de6196b595..f2346616de 100644 --- a/codex-rs/tui/src/chatwidget.rs +++ b/codex-rs/tui/src/chatwidget.rs @@ -3,7 +3,6 @@ use std::collections::VecDeque; use std::path::PathBuf; use std::sync::Arc; -use crate::notifications; use codex_core::config::Config; use codex_core::protocol::AgentMessageDeltaEvent; use codex_core::protocol::AgentMessageEvent;