{"record":{"id":"356187142116d8f5","repo":"openai/codex","slug":"field-label-must-contain-at-least-one-name","errorCode":null,"errorMessage":"{field_label} must contain at least one name","messagePattern":"(.+?) must contain at least one name","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/agent_roles.rs","lineNumber":435,"sourceCode":"            std::io::ErrorKind::InvalidInput,\n            format!(\n                \"agents.{role_name}.config_file must point to a file: {}\",\n                config_file.as_path().display()\n            ),\n        ))\n    }\n}\n\nfn normalize_agent_role_nickname_candidates(\n    field_label: &str,\n    nickname_candidates: Option<&[String]>,\n) -> std::io::Result<Option<Vec<String>>> {\n    let Some(nickname_candidates) = nickname_candidates else {\n        return Ok(None);\n    };\n\n    if nickname_candidates.is_empty() {\n        return Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{field_label} must contain at least one name\"),\n        ));\n    }\n\n    let mut normalized_candidates = Vec::with_capacity(nickname_candidates.len());\n    let mut seen_candidates = BTreeSet::new();\n\n    for nickname in nickname_candidates {\n        let normalized_nickname = nickname.trim();\n        if normalized_nickname.is_empty() {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                format!(\"{field_label} cannot contain blank names\"),\n            ));\n        }\n\n        if !seen_candidates.insert(normalized_nickname.to_owned()) {","sourceCodeStart":417,"sourceCodeEnd":453,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/agent_roles.rs#L417-L453","documentation":"Error \"{field_label} must contain at least one name\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/agent_roles.rs:435 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add at least one name to {field_label}."],"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"}