{"record":{"id":"bb8728e58824473a","repo":"openai/codex","slug":"glob-scan-max-depth-must-be-at-least-1","errorCode":null,"errorMessage":"glob_scan_max_depth must be at least 1","messagePattern":"glob_scan_max_depth must be at least 1","errorType":"validation","errorClass":"io::Error","httpStatus":null,"severity":"error","filePath":"codex-rs/core/src/config/permissions.rs","lineNumber":747,"sourceCode":"                    patterns.push(path.clone());\n                }\n            }\n            FilesystemPermissionToml::Access(_) => {}\n            FilesystemPermissionToml::Scoped(scoped_entries) => {\n                for (subpath, access) in scoped_entries {\n                    if *access == FileSystemAccessMode::Deny && subpath.contains(\"**\") {\n                        patterns.push(format!(\"{path}/{subpath}\"));\n                    }\n                }\n            }\n        }\n    }\n    patterns\n}\n\nfn validate_glob_scan_max_depth(max_depth: Option<usize>) -> io::Result<Option<usize>> {\n    match max_depth {\n        Some(0) => Err(io::Error::new(\n            io::ErrorKind::InvalidInput,\n            \"glob_scan_max_depth must be at least 1\",\n        )),\n        _ => Ok(max_depth),\n    }\n}\n\nfn contains_glob_chars(path: &str) -> bool {\n    contains_glob_chars_for_platform(path, cfg!(windows))\n}\n\nfn contains_glob_chars_for_platform(path: &str, is_windows: bool) -> bool {\n    let normalized_windows_path = if is_windows {\n        normalize_windows_device_path(path)\n    } else {\n        None\n    };\n    let path = normalized_windows_path.as_deref().unwrap_or(path);","sourceCodeStart":729,"sourceCodeEnd":765,"githubUrl":"https://github.com/openai/codex/blob/339751715c64496cb86246bfb3935f40e309dd3d/codex-rs/core/src/config/permissions.rs#L729-L765","documentation":"Error \"glob_scan_max_depth must be at least 1\" thrown in openai/codex.","triggerScenarios":"Thrown at codex-rs/core/src/config/permissions.rs:747 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set glob_scan_max_depth to at least 1."],"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"}