mirror of
https://github.com/openai/codex.git
synced 2026-09-14 11:57:03 +00:00
add back comment
This commit is contained in:
@@ -112,7 +112,11 @@ pub(crate) trait Approvable<Req> {
|
||||
}
|
||||
matches!(policy, AskForApproval::Never)
|
||||
}
|
||||
|
||||
/// Decide whether an initial user approval should be requested or forbidden before the
|
||||
/// first attempt. Defaults to the orchestrator's behavior (pre‑refactor):
|
||||
/// - Never, OnFailure: do not ask
|
||||
/// - OnRequest: ask unless sandbox policy is DangerFullAccess
|
||||
/// - UnlessTrusted: always ask
|
||||
fn approval_requirement(
|
||||
&self,
|
||||
_req: &Req,
|
||||
|
||||
Reference in New Issue
Block a user