permissions: make legacy profile conversion cwd-free

This commit is contained in:
Michael Bolin
2026-04-24 11:55:31 -07:00
parent b68366718b
commit 095bb44f40
29 changed files with 275 additions and 140 deletions
-1
View File
@@ -430,7 +430,6 @@ fn session_configured_from_thread_response_uses_review_policy_from_response() {
permission_profile: Some(
codex_protocol::models::PermissionProfile::from_legacy_sandbox_policy(
&codex_protocol::protocol::SandboxPolicy::new_workspace_write_policy(),
&test_path_buf("/tmp"),
)
.into(),
),
+1 -1
View File
@@ -44,7 +44,7 @@ async fn spawn_command_under_sandbox(
arg0: None,
},
sandbox_policy,
&FileSystemSandboxPolicy::from_legacy_sandbox_policy(sandbox_policy, sandbox_cwd),
&FileSystemSandboxPolicy::from_legacy_sandbox_policy_for_cwd(sandbox_policy, sandbox_cwd),
NetworkSandboxPolicy::from(sandbox_policy),
sandbox_cwd,
&codex_linux_sandbox_exe,