diff --git a/codex-rs/core/src/features.rs b/codex-rs/core/src/features.rs index 2fbf81403..005fb4c87 100644 --- a/codex-rs/core/src/features.rs +++ b/codex-rs/core/src/features.rs @@ -688,6 +688,21 @@ mod tests { } } + #[test] + fn default_enabled_features_are_stable() { + for spec in FEATURES { + if spec.default_enabled { + assert_eq!( + spec.stage, + Stage::Stable, + "feature `{}` is enabled by default but is not stable ({:?})", + spec.key, + spec.stage + ); + } + } + } + #[cfg(target_os = "linux")] #[test] fn use_linux_sandbox_bwrap_is_experimental_on_linux() {