{"record":{"id":"d9661adf65c0dbf1","repo":"openai/codex","slug":"configured-value-for-field-name-is-disallowed","errorCode":null,"errorMessage":"configured value for `{field_name}` is disallowed by requirements ({err}); fallback to a requirement-compliant value also failed ({fallback_err})","messagePattern":"configured value for `(.+?)` is disallowed by requirements \\((.+?)\\); fallback to a requirement-compliant value also failed \\((.+?)\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/mod.rs","lineNumber":2142,"sourceCode":") -> std::io::Result<bool>\nwhere\n    T: Clone + std::fmt::Debug + Send + Sync,\n{\n    if let Err(err) = constrained_value.set(configured_value) {\n        let fallback_value = constrained_value.get().clone();\n        tracing::warn!(\n            error = %err,\n            ?fallback_value,\n            requirement_source = ?constrained_value.source,\n            \"configured value is disallowed by requirements; falling back to required value for {field_name}\"\n        );\n        let message = format!(\n            \"Configured value for `{field_name}` is disallowed by requirements; falling back to required value {fallback_value:?}. Details: {err}\"\n        );\n        startup_warnings.push(message);\n\n        constrained_value.set(fallback_value).map_err(|fallback_err| {\n            std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                format!(\n                    \"configured value for `{field_name}` is disallowed by requirements ({err}); fallback to a requirement-compliant value also failed ({fallback_err})\"\n                ),\n            )\n        })?;\n        return Ok(true);\n    }\n\n    Ok(false)\n}\n\npub async fn load_global_mcp_servers(\n    codex_home: &Path,\n) -> std::io::Result<BTreeMap<String, McpServerConfig>> {\n    // In general, Config::load_with_cli_overrides() should be used to load the\n    // full config with requirements.toml applied, but in this case, we need\n    // access to the raw TOML in order to warn the user about deprecated fields.","sourceCodeStart":2124,"sourceCodeEnd":2160,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/mod.rs#L2124-L2160","documentation":"Error \"configured value for `{field_name}` is disallowed by requirements ({err}); fallback to a requirement-compliant value also failed ({fallback_err})\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/mod.rs:2142 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set `{field_name}` to a requirement-compliant value; check the governing requirements."],"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"}