This commit is contained in:
Daniel Edrisian
2025-08-31 14:12:00 -07:00
parent 66ab8fb43d
commit f564f0518a
2 changed files with 4 additions and 6 deletions

View File

@@ -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 {

View File

@@ -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;