{"record":{"id":"e54dbf1dba320fd9","repo":"openai/codex","slug":"field-label-may-only-contain-ascii-letters-digi","errorCode":null,"errorMessage":"{field_label} may only contain ASCII letters, digits, spaces, hyphens, and underscores","messagePattern":"(.+?) may only contain ASCII letters, digits, spaces, hyphens, and underscores","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/agent_roles.rs","lineNumber":464,"sourceCode":"        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());\n    }\n\n    Ok(Some(normalized_candidates))\n}\n\nasync fn discover_agent_roles_in_dir(\n    fs: &dyn ExecutorFileSystem,\n    agents_dir: &AbsolutePathBuf,\n    declared_role_files: &BTreeSet<PathBuf>,\n    startup_warnings: &mut Vec<String>,","sourceCodeStart":446,"sourceCodeEnd":482,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/agent_roles.rs#L446-L482","documentation":"Error \"{field_label} may only contain ASCII letters, digits, spaces, hyphens, and underscores\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/agent_roles.rs:464 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restrict {field_label} entries to ASCII letters, digits, spaces, hyphens, and underscores."],"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"}