{"record":{"id":"5ea6941c493a71ce","repo":"openai/codex","slug":"invalid-embedded-packaged-defaults-this-is-a-code","errorCode":null,"errorMessage":"invalid embedded packaged defaults; this is a Codex build error: {error}","messagePattern":"invalid embedded packaged defaults; this is a Codex build error: (.+?)","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/config/src/loader/mod.rs","lineNumber":172,"sourceCode":"        })?;\n        let base_dir = file.as_path().parent().ok_or_else(|| {\n            io::Error::new(\n                io::ErrorKind::InvalidData,\n                format!(\n                    \"packaged defaults config file {} has no parent directory\",\n                    file.display()\n                ),\n            )\n        })?;\n        ConfigLayerEntry::new(\n            ConfigLayerSource::PackagedDefaults { file: file.clone() },\n            resolve_relative_paths_in_config_toml(config, base_dir)?,\n        )\n    } else {\n        let file = AbsolutePathBuf::from_absolute_path(std::env::current_exe()?)?;\n        let raw_toml = include_str!(\"../../defaults.toml\");\n        let config = toml::from_str(raw_toml).map_err(|error| {\n            io::Error::new(\n                io::ErrorKind::InvalidData,\n                format!(\"invalid embedded packaged defaults; this is a Codex build error: {error}\"),\n            )\n        })?;\n        ConfigLayerEntry::new_with_raw_toml(\n            ConfigLayerSource::PackagedDefaults { file },\n            config,\n            raw_toml.to_owned(),\n            AbsolutePathBuf::from_absolute_path(codex_home)?,\n        )\n    };\n    let active_user_profile = overrides.user_config_profile.clone();\n    let ignore_managed_requirements = overrides.ignore_managed_requirements;\n    let ignore_user_config = overrides.ignore_user_config;\n    let ignore_project_config = overrides.ignore_project_config;\n    let ignore_user_and_project_exec_policy_rules =\n        overrides.ignore_user_and_project_exec_policy_rules;\n    let mut requirements_layers = Vec::new();","sourceCodeStart":154,"sourceCodeEnd":190,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/config/src/loader/mod.rs#L154-L190","documentation":"Error \"invalid embedded packaged defaults; this is a Codex build error: {error}\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/config/src/loader/mod.rs:172 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Fix the embedded packaged defaults TOML and rebuild Codex; this is a build error, not a user config error."],"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"}