Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

Register the Guardian V2 feature flag (#35049)

Won Parkbb24b67d3309
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.json
index a499adc0a9..4f8b8ff392 100644
--- a/codex-rs/core/config.schema.json
+++ b/codex-rs/core/config.schema.json
@@ -539,6 +539,9 @@
"guardian_approval": {
"type": "boolean"
},
+ "guardianv2": {
+ "type": "boolean"
+ },
"hooks": {
"type": "boolean"
},
@@ -5060,6 +5063,9 @@
"guardian_approval": {
"type": "boolean"
},
+ "guardianv2": {
+ "type": "boolean"
+ },
"hooks": {
"type": "boolean"
},
diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rs
index f7360e1340..e705d337c7 100644
--- a/codex-rs/features/src/lib.rs
+++ b/codex-rs/features/src/lib.rs
@@ -225,6 +225,8 @@ pub enum Feature {
DefaultModeRequestUserInput,
/// Enable automatic review for approval prompts.
GuardianApproval,
+ /// Enable Guardian V2 automatic approval reviews.
+ GuardianV2,
/// Enable persisted thread goals and automatic goal continuation.
Goals,
/// Add current context-window metadata to model-visible context.
@@ -1276,6 +1278,12 @@ pub const FEATURES: &[FeatureSpec] = &[
stage: Stage::Stable,
default_enabled: true,
},
+ FeatureSpec {
+ id: Feature::GuardianV2,
+ key: "guardianv2",
+ stage: Stage::UnderDevelopment,
+ default_enabled: false,
+ },
FeatureSpec {
id: Feature::Goals,
key: "goals",