From d65f09b913fc1805d6efcc8f49663db432a54a15 Mon Sep 17 00:00:00 2001 From: Dylan Hurd Date: Mon, 9 Feb 2026 15:14:15 -0800 Subject: [PATCH] fix(feature) UnderDevelopment feature must be off (#11242) ## Summary 1. Bump RemoteModels to Stable 2. Assert that all UnderDevelopment features are off by default ## Testing - [x] Added unit test --- codex-rs/core/src/features.rs | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs index 976cad0f9..5b0b78d0b 100644 --- a/codex-rs/core/src/features.rs +++ b/codex-rs/core/src/features.rs @@ -498,7 +498,7 @@ pub const FEATURES: &[FeatureSpec] = &[ FeatureSpec { id: Feature::RemoteModels, key: "remote_models", - stage: Stage::UnderDevelopment, + stage: Stage::Stable, default_enabled: true, }, FeatureSpec { @@ -633,3 +633,23 @@ pub fn maybe_push_unstable_features_warning( msg: EventMsg::Warning(WarningEvent { message }), }); } + +#[cfg(test)] +mod tests { + use super::*; + + use pretty_assertions::assert_eq; + + #[test] + fn under_development_features_are_disabled_by_default() { + for spec in FEATURES { + if matches!(spec.stage, Stage::UnderDevelopment) { + assert_eq!( + spec.default_enabled, false, + "feature `{}` is under development and must be disabled by default", + spec.key + ); + } + } + } +}