Lightweight coding agent that runs in your terminal
Rust
Add computer_use feature requirement key (#19071)
Leo Shimonaka7730fb3ab8d7
diff --git a/codex-rs/core/config.schema.json b/codex-rs/core/config.schema.jsonindex 64aa3e5f12..1223b45a62 100644--- a/codex-rs/core/config.schema.json+++ b/codex-rs/core/config.schema.json@@ -378,6 +378,9 @@"collaboration_modes": {"type": "boolean"},+ "computer_use": {+ "type": "boolean"+ },"connectors": {"type": "boolean"},@@ -2532,6 +2535,9 @@"collaboration_modes": {"type": "boolean"},+ "computer_use": {+ "type": "boolean"+ },"connectors": {"type": "boolean"},diff --git a/codex-rs/features/src/lib.rs b/codex-rs/features/src/lib.rsindex b9eb71a8e9..527cef36f8 100644--- a/codex-rs/features/src/lib.rs+++ b/codex-rs/features/src/lib.rs@@ -164,6 +164,10 @@ pub enum Feature {////// Requirements-only gate: this should be set from requirements, not user config.BrowserUse,+ /// Allow Codex Computer Use.+ ///+ /// Requirements-only gate: this should be set from requirements, not user config.+ ComputerUse,/// Temporary internal-only flag for PS-backed remote plugin catalog development.RemotePlugin,/// Show the startup prompt for migrating external agent config into Codex.@@ -868,6 +872,12 @@ pub const FEATURES: &[FeatureSpec] = &[stage: Stage::Stable,default_enabled: true,},+ FeatureSpec {+ id: Feature::ComputerUse,+ key: "computer_use",+ stage: Stage::Stable,+ default_enabled: true,+ },FeatureSpec {id: Feature::RemotePlugin,key: "remote_plugin",diff --git a/codex-rs/features/src/tests.rs b/codex-rs/features/src/tests.rsindex f5704dd713..08c16590a1 100644--- a/codex-rs/features/src/tests.rs+++ b/codex-rs/features/src/tests.rs@@ -153,6 +153,10 @@ fn browser_controls_are_stable_and_enabled_by_default() {assert_eq!(Feature::BrowserUse.stage(), Stage::Stable);assert_eq!(Feature::BrowserUse.default_enabled(), true);assert_eq!(feature_for_key("browser_use"), Some(Feature::BrowserUse));++ assert_eq!(Feature::ComputerUse.stage(), Stage::Stable);+ assert_eq!(Feature::ComputerUse.default_enabled(), true);+ assert_eq!(feature_for_key("computer_use"), Some(Feature::ComputerUse));}#[test]