protocol: keep special path subpaths opaque

This commit is contained in:
Adam Perry
2026-07-10 01:52:00 +00:00
parent a9f12e9f15
commit 4e29c8c733
7 changed files with 43 additions and 31 deletions
+1 -1
View File
@@ -410,7 +410,7 @@ fn create_filesystem_args(
// rules should keep their normal bwrap behavior, which can mask
// the first missing component to prevent creation under writable
// roots.
let project_subpath = subpath.as_path();
let project_subpath = Path::new(subpath);
if project_subpath != Path::new(".git")
&& project_subpath != Path::new(".agents")
&& project_subpath != Path::new(".codex")