Add an AbsolutePathBuf conversion for FileSystemPath (#38460)

## What changed

Implement `From<AbsolutePathBuf>` for `FileSystemPath` and use the conversion
when constructing concrete filesystem permission paths.

GitOrigin-RevId: 244bcbd0c3f76cd87cc1240458fcac6c9ef0a8e3
This commit is contained in:
iceweasel-oai authored and copyberry committed 2026-08-14 00:18:29 +00:00
1 parent 9341b38310
commit 18bbb585e7
10 files changed
+118 -161

No files matched your search

+1 -1
View File
@@ -2535,7 +2535,7 @@ fn apply_managed_filesystem_constraints(
continue;
};
codex_protocol::permissions::FileSystemSandboxEntry {
path: codex_protocol::permissions::FileSystemPath::Path { path },
path: path.into(),
access: codex_protocol::permissions::FileSystemAccessMode::Deny,
missing_path_behavior: None,
}
+2 -2
View File
@@ -599,7 +599,7 @@ fn compile_filesystem_path(
}
let path = parse_absolute_path(path)?;
Ok(FileSystemPath::Path { path })
Ok(path.into())
}
fn compile_scoped_filesystem_path(
@@ -636,7 +636,7 @@ fn compile_scoped_filesystem_path(
let subpath = parse_relative_subpath(subpath)?;
let base = parse_absolute_path(path)?;
let path = AbsolutePathBuf::resolve_path_against_base(&subpath, base.as_path());
Ok(FileSystemPath::Path { path })
Ok(path.into())
}
fn compile_scoped_filesystem_pattern(