mirror of
https://github.com/openai/codex.git
synced 2026-11-21 07:09:23 +00:00
fix: approval issue (#5525)
This commit is contained in:
1 parent
8e291a1706
commit
892eaff46d
3 files changed
+12
-2
No files matched your search
@@ -121,6 +121,11 @@ pub(crate) trait Approvable<Req> {
|
||||
}
|
||||
}
|
||||
|
||||
/// Decide we can request an approval for no-sandbox execution.
|
||||
fn wants_no_sandbox_approval(&self, policy: AskForApproval) -> bool {
|
||||
!matches!(policy, AskForApproval::Never | AskForApproval::OnRequest)
|
||||
}
|
||||
|
||||
fn start_approval_async<'a>(
|
||||
&'a mut self,
|
||||
req: &'a Req,
|
||||
|
||||
Reference in new issue
Block a user