mirror of
https://github.com/openai/codex.git
synced 2026-11-26 23:40:43 +00:00
100
This commit is contained in:
@@ -17,6 +17,7 @@ pub enum ApprovalModeCliArg {
|
||||
/// Only asks for approval if a command fails to execute, in which case it
|
||||
/// will escalate to the user to ask for un-sandboxed execution.
|
||||
OnFailure,
|
||||
// common/src/approval_mode_cli_arg.rs
|
||||
|
||||
/// The model decides when to ask the user for approval.
|
||||
OnRequest,
|
||||
|
||||
@@ -21,6 +21,7 @@ pub struct ApprovalPreset {
|
||||
/// Keep this UI-agnostic so it can be reused by both TUI and MCP server.
|
||||
pub fn builtin_approval_presets() -> Vec<ApprovalPreset> {
|
||||
vec![
|
||||
// common/src/approval_presets.rs
|
||||
ApprovalPreset {
|
||||
id: "read-only",
|
||||
label: "Read Only",
|
||||
|
||||
Reference in New Issue
Block a user