mirror of
https://github.com/openai/codex.git
synced 2026-10-24 18:18:41 +00:00
permissions: make legacy profile conversion cwd-free
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user