Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix(feature) UnderDevelopment feature must be off (#11242)

Dylan Hurdd65f09b913fc
diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs
index 976cad0f94..5b0b78d0bd 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
+ );
+ }
+ }
+ }
+}