{"record":{"id":"3fb73949096f26ad","repo":"openai/codex","slug":"field-label-cannot-contain-duplicates","errorCode":null,"errorMessage":"{field_label} cannot contain duplicates","messagePattern":"(.+?) cannot contain duplicates","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/agent_roles.rs","lineNumber":454,"sourceCode":"            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()) {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                format!(\"{field_label} cannot contain duplicates\"),\n            ));\n        }\n\n        if !normalized_nickname\n            .chars()\n            .all(|c| c.is_ascii_alphanumeric() || matches!(c, ' ' | '-' | '_'))\n        {\n            return Err(std::io::Error::new(\n                std::io::ErrorKind::InvalidInput,\n                format!(\n                    \"{field_label} may only contain ASCII letters, digits, spaces, hyphens, and underscores\"\n                ),\n            ));\n        }\n\n        normalized_candidates.push(normalized_nickname.to_owned());","sourceCodeStart":436,"sourceCodeEnd":472,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/agent_roles.rs#L436-L472","documentation":"Error \"{field_label} cannot contain duplicates\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/agent_roles.rs:454 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Remove the duplicate names from {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"}