mirror of
https://github.com/openai/codex.git
synced 2026-04-29 08:56:38 +00:00
feat(core) SandboxPolicy::Custom
This commit is contained in:
@@ -321,6 +321,14 @@ impl DeveloperInstructions {
|
||||
let roots = sandbox_policy.get_writable_roots_with_cwd(cwd);
|
||||
(SandboxMode::WorkspaceWrite, Some(roots))
|
||||
}
|
||||
SandboxPolicy::Custom { .. } => {
|
||||
let roots = sandbox_policy.get_writable_roots_with_cwd(cwd);
|
||||
if roots.is_empty() {
|
||||
(SandboxMode::ReadOnly, None)
|
||||
} else {
|
||||
(SandboxMode::WorkspaceWrite, Some(roots))
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
DeveloperInstructions::from_permissions_with_network(
|
||||
|
||||
Reference in New Issue
Block a user