openai/codex · error · anyhow::Error
path must be absolute: {}
Error message
path must be absolute: {} What it means
Error "path must be absolute: {}" thrown in openai/codex.
Source
Thrown at codex-rs/tui/src/windows_sandbox.rs:102
)
}) {
"codex.windows_sandbox.elevated_setup_canceled"
} else {
"codex.windows_sandbox.elevated_setup_failure"
}
}
#[cfg(target_os = "windows")]
pub(crate) fn grant_read_root_non_elevated(
permission_profile: &PermissionProfile,
workspace_roots: &[AbsolutePathBuf],
command_cwd: &Path,
env_map: &HashMap<String, String>,
codex_home: &Path,
read_root: &Path,
) -> anyhow::Result<PathBuf> {
if !read_root.is_absolute() {
anyhow::bail!("path must be absolute: {}", read_root.display());
}
if !read_root.exists() {
anyhow::bail!("path does not exist: {}", read_root.display());
}
if !read_root.is_dir() {
anyhow::bail!("path must be a directory: {}", read_root.display());
}
let canonical_root = dunce::canonicalize(read_root)?;
codex_windows_sandbox::run_setup_refresh_with_extra_read_roots(
permission_profile,
workspace_roots,
command_cwd,
env_map,
codex_home,
vec![canonical_root.clone()],
/*proxy_enforced*/ false,
)?;View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/tui/src/windows_sandbox.rs:102 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/a1b1bc9c82f6d18c.
Report an issue: GitHub.