{"record":{"id":"ee7f9c4505184570","repo":"openai/codex","slug":"field-label-cannot-be-blank","errorCode":null,"errorMessage":"{field_label} cannot be blank","messagePattern":"(.+?) cannot be blank","errorType":"validation","errorClass":"std::io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/agent_roles.rs","lineNumber":339,"sourceCode":"    let path_uri = PathUri::from_abs_path(path);\n    let contents = fs\n        .read_file_text(&path_uri, ReadFileOptions::default(), /*sandbox*/ None)\n        .await?;\n    let config_base_dir = path.parent().unwrap_or_else(|| path.clone());\n    parse_agent_role_file_contents(\n        &contents,\n        path.as_path(),\n        config_base_dir.as_path(),\n        role_name_hint,\n    )\n}\n\nfn normalize_agent_role_description(\n    field_label: &str,\n    description: Option<&str>,\n) -> std::io::Result<Option<String>> {\n    match description.map(str::trim) {\n        Some(\"\") => Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"{field_label} cannot be blank\"),\n        )),\n        Some(description) => Ok(Some(description.to_string())),\n        None => Ok(None),\n    }\n}\n\nfn validate_required_agent_role_description(\n    role_name: &str,\n    description: Option<&str>,\n) -> std::io::Result<()> {\n    if description.is_some() {\n        Ok(())\n    } else {\n        Err(std::io::Error::new(\n            std::io::ErrorKind::InvalidInput,\n            format!(\"agent role `{role_name}` must define a description\"),","sourceCodeStart":321,"sourceCodeEnd":357,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/agent_roles.rs#L321-L357","documentation":"Error \"{field_label} cannot be blank\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/agent_roles.rs:339 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide a non-blank value for {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"}