mirror of
https://github.com/openai/codex.git
synced 2026-10-22 08:15:54 +00:00
codex: fix CI failure on PR #31952
This commit is contained in:
@@ -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>) -> String {
|
||||
fn path_label(base: &str, subpath: &Option<LegacyAppPathString>) -> 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,
|
||||
|
||||
Reference in New Issue
Block a user