openai/codex · error · io::Error

filesystem path `{path}` does not support nested entries

Error message

filesystem path `{path}` does not support nested entries

What it means

Error "filesystem path `{path}` does not support nested entries" thrown in openai/codex.

Source

Thrown at codex-rs/core/src/config/permissions.rs:625

    subpath: &str,
    startup_warnings: &mut Vec<String>,
) -> io::Result<FileSystemPath> {
    if subpath == "." {
        return compile_filesystem_path(path, startup_warnings);
    }

    if let Some(special) = parse_special_path(path) {
        let subpath = parse_relative_subpath(subpath)?
            .to_string_lossy()
            .into_owned();
        let special = match special {
            FileSystemSpecialPath::ProjectRoots { .. } => Ok(FileSystemPath::Special {
                value: FileSystemSpecialPath::project_roots(Some(subpath)),
            }),
            FileSystemSpecialPath::Unknown { path, .. } => Ok(FileSystemPath::Special {
                value: FileSystemSpecialPath::unknown(path, Some(subpath)),
            }),
            _ => Err(io::Error::new(
                io::ErrorKind::InvalidInput,
                format!("filesystem path `{path}` does not support nested entries"),
            )),
        }?;
        if let FileSystemPath::Special { value } = &special {
            maybe_push_unknown_special_path_warning(value, startup_warnings);
        }
        return Ok(special);
    }

    let subpath = parse_relative_subpath(subpath)?;
    let base = parse_absolute_path(path)?;
    let path = AbsolutePathBuf::resolve_path_against_base(&subpath, base.as_path());
    Ok(path.into())
}

fn compile_scoped_filesystem_pattern(
    path: &str,

View on GitHub (pinned to 339751715c)

Solutions

  1. Use a single filesystem path entry for `{path}` without nested entries.

When it happens

Trigger: Thrown at codex-rs/core/src/config/permissions.rs:625 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of openai/codex@339751715c (2026-08-25). Data as JSON: /api/errors/7db5fe60747f3645. Report an issue: GitHub.