mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
feat: add --dangerously-bypass-approvals-and-sandbox
This commit is contained in:
@@ -120,7 +120,7 @@ pub enum AskForApproval {
|
||||
/// Everything else will ask the user to approve.
|
||||
#[default]
|
||||
#[serde(rename = "untrusted")]
|
||||
UnlessAllowListed,
|
||||
UnlessTrusted,
|
||||
|
||||
/// *All* commands are auto‑approved, but they are expected to run inside a
|
||||
/// sandbox where network access is disabled and writes are confined to a
|
||||
@@ -231,12 +231,6 @@ impl SandboxPolicy {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TODO(mbolin): This conflates sandbox policy and approval policy and
|
||||
// should go away.
|
||||
pub fn is_unrestricted(&self) -> bool {
|
||||
matches!(self, SandboxPolicy::DangerFullAccess)
|
||||
}
|
||||
}
|
||||
|
||||
/// User input
|
||||
|
||||
Reference in New Issue
Block a user