openai/codex · error · io::Error
filesystem path is too long
Error message
filesystem path is too long
What it means
Error "filesystem path is too long" thrown in openai/codex.
Source
Thrown at codex-rs/exec-server/src/no_follow/windows.rs:132
b'\\' as u16
} else {
unit
}
}),
);
result.push(0);
Ok(result)
}
fn open_handle(
path: &Path,
desired_access: u32,
create_disposition: u32,
create_options: u32,
) -> io::Result<OwnedHandle> {
let mut path = nt_path(path)?;
let name_length = u16::try_from((path.len() - 1) * size_of::<u16>())
.map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "filesystem path is too long"))?;
let maximum_length = u16::try_from(path.len() * size_of::<u16>())
.map_err(|_| io::Error::new(io::ErrorKind::InvalidInput, "filesystem path is too long"))?;
let object_name = UNICODE_STRING {
Length: name_length,
MaximumLength: maximum_length,
Buffer: path.as_mut_ptr(),
};
let security_quality_of_service = SECURITY_QUALITY_OF_SERVICE {
Length: size_of::<SECURITY_QUALITY_OF_SERVICE>() as u32,
ImpersonationLevel: SecurityIdentification,
ContextTrackingMode: SECURITY_STATIC_TRACKING,
EffectiveOnly: BOOLEAN_TRUE,
};
let object_attributes = ObjectAttributes {
length: size_of::<ObjectAttributes>() as u32,
root_directory: 0,
object_name: &object_name,
attributes: OBJ_CASE_INSENSITIVE as u32 | OBJ_DONT_REPARSE as u32,View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/exec-server/src/no_follow/windows.rs:132 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/496a5222d767ce51.
Report an issue: GitHub.