mirror of
https://github.com/openai/codex.git
synced 2026-04-24 14:45:27 +00:00
Merge branch 'dev/zhao/execpolicy2-core-integration' of github.com:openai/codex into dev/zhao/execpolicy2-core-integration
This commit is contained in:
@@ -89,11 +89,11 @@ pub(crate) struct ApprovalCtx<'a> {
|
||||
// Specifies what tool orchestrator should do with a given tool call.
|
||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||
pub(crate) enum ApprovalRequirement {
|
||||
// No approval required for this tool call
|
||||
/// No approval required for this tool call
|
||||
Skip,
|
||||
// Approval required for this tool call
|
||||
/// Approval required for this tool call
|
||||
NeedsApproval { reason: Option<String> },
|
||||
// Execution forbidden for this tool call
|
||||
/// Execution forbidden for this tool call
|
||||
Forbidden { reason: String },
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user