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 + ); + } + } + } +}