mirror of
https://github.com/openai/codex.git
synced 2026-11-22 15:15:18 +00:00
chore(core) rm AskForApproval::OnFailure (#28418)
## Summary Deletes the OnFailure variant of the `AskForApproval` enum. This option has been deprecated since #11631. ## Testing - [x] Tests pass
This commit is contained in:
1 parent
e476fc16ce
commit
2cf2a6a844
56 files changed
+75
-479
No files matched your search
@@ -18,8 +18,6 @@ const APPROVAL_POLICY_NEVER: &str =
|
||||
include_str!("../templates/permissions/approval_policy/never.md");
|
||||
const APPROVAL_POLICY_UNLESS_TRUSTED: &str =
|
||||
include_str!("../templates/permissions/approval_policy/unless_trusted.md");
|
||||
const APPROVAL_POLICY_ON_FAILURE: &str =
|
||||
include_str!("../templates/permissions/approval_policy/on_failure.md");
|
||||
const APPROVAL_POLICY_ON_REQUEST_RULE: &str =
|
||||
include_str!("../templates/permissions/approval_policy/on_request.md");
|
||||
const APPROVAL_POLICY_ON_REQUEST_AUTO_REVIEW: &str =
|
||||
@@ -231,7 +229,6 @@ fn approval_text(
|
||||
AskForApproval::UnlessTrusted => {
|
||||
with_request_permissions_tool(APPROVAL_POLICY_UNLESS_TRUSTED)
|
||||
}
|
||||
AskForApproval::OnFailure => with_request_permissions_tool(APPROVAL_POLICY_ON_FAILURE),
|
||||
AskForApproval::OnRequest => on_request_instructions(),
|
||||
AskForApproval::Granular(granular_config) => granular_instructions(
|
||||
granular_config,
|
||||
|
||||
Reference in new issue
Block a user