fix: approval issue (#5525)

This commit is contained in:
jif-oai authored and GitHub committed 2025-10-23 11:13:53 +01:00
1 parent 8e291a1706
commit 892eaff46d
3 files changed
+12 -2

No files matched your search

+5
View File
@@ -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,