mirror of
https://github.com/openai/codex.git
synced 2026-05-03 02:46:39 +00:00
permissions: store only constrained permission profiles (#19735)
This commit is contained in:
@@ -1110,8 +1110,9 @@ async fn handle_container_exec_autoapprove_from_config_records_tool_decision() {
|
||||
let TestCodex { codex, .. } = test_codex()
|
||||
.with_config(|config| {
|
||||
config.permissions.approval_policy = Constrained::allow_any(AskForApproval::OnRequest);
|
||||
config.permissions.sandbox_policy =
|
||||
Constrained::allow_any(SandboxPolicy::DangerFullAccess);
|
||||
config
|
||||
.set_legacy_sandbox_policy(SandboxPolicy::DangerFullAccess)
|
||||
.expect("set sandbox policy");
|
||||
})
|
||||
.build(&server)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user