diff --git a/codex-rs/tui/src/bottom_pane/approval_overlay.rs b/codex-rs/tui/src/bottom_pane/approval_overlay.rs index 8a13667ed5..672c19d439 100644 --- a/codex-rs/tui/src/bottom_pane/approval_overlay.rs +++ b/codex-rs/tui/src/bottom_pane/approval_overlay.rs @@ -55,6 +55,7 @@ use codex_protocol::ThreadId; use codex_protocol::request_permissions::PermissionGrantScope; use codex_protocol::request_permissions::RequestPermissionProfile; use codex_utils_absolute_path::AbsolutePathBuf; +use codex_utils_path_uri::LegacyAppPathString; use crossterm::event::KeyCode; use crossterm::event::KeyEvent; use crossterm::event::KeyEventKind; @@ -1028,7 +1029,7 @@ fn special_path_label(value: &FileSystemSpecialPath) -> String { } } -fn path_label(base: &str, subpath: &Option) -> String { +fn path_label(base: &str, subpath: &Option) -> String { match subpath { Some(subpath) => format!("{base}/{subpath}"), None => base.to_string(), @@ -1871,7 +1872,9 @@ mod tests { entries: Some(vec![FileSystemSandboxEntry { path: FileSystemPath::Special { value: FileSystemSpecialPath::ProjectRoots { - subpath: Some(".git".into()), + subpath: Some(LegacyAppPathString::from_path(std::path::Path::new( + ".git", + ))), }, }, access: FileSystemAccessMode::Read,