{"record":{"id":"a78076b0ff213eb0","repo":"openai/codex","slug":"unknown-feature-flag-feature","errorCode":null,"errorMessage":"Unknown feature flag: {feature}","messagePattern":"Unknown feature flag: (.+?)","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/cli/src/main.rs","lineNumber":1003,"sourceCode":"impl FeatureToggles {\n    fn to_overrides(&self) -> anyhow::Result<Vec<String>> {\n        let mut v = Vec::new();\n        for feature in &self.enable {\n            Self::validate_feature(feature)?;\n            v.push(format!(\"features.{feature}=true\"));\n        }\n        for feature in &self.disable {\n            Self::validate_feature(feature)?;\n            v.push(format!(\"features.{feature}=false\"));\n        }\n        Ok(v)\n    }\n\n    fn validate_feature(feature: &str) -> anyhow::Result<()> {\n        if is_known_feature_key(feature) {\n            Ok(())\n        } else {\n            anyhow::bail!(\"Unknown feature flag: {feature}\")\n        }\n    }\n}\n\n#[derive(Debug, Parser)]\nstruct FeaturesCli {\n    #[command(subcommand)]\n    sub: FeaturesSubcommand,\n}\n\n#[derive(Debug, Parser)]\nenum FeaturesSubcommand {\n    /// List known features with their stage and effective state.\n    List,\n    /// Enable a feature in config.toml.\n    Enable(FeatureSetArgs),\n    /// Disable a feature in config.toml.\n    Disable(FeatureSetArgs),","sourceCodeStart":985,"sourceCodeEnd":1021,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/cli/src/main.rs#L985-L1021","documentation":"Error \"Unknown feature flag: {feature}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/cli/src/main.rs:1003 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"339751715c64496cb86246bfb3935f40e309dd3d","analyzedAt":"2026-08-25T05:35:09.876Z","schemaVersion":2},"datasetVersion":"2026-08-25T06:17:31.827Z"}