openai/codex · error · anyhow::Error
Restricted read-only access requires the elevated Windows sa
Error message
Restricted read-only access requires the elevated Windows sandbox backend
What it means
Error "Restricted read-only access requires the elevated Windows sandbox backend" thrown in openai/codex.
Source
Thrown at codex-rs/windows-sandbox-rs/src/lib.rs:546
.collect::<Vec<_>>();
let common = prepare_legacy_spawn_context(
permission_profile,
workspace_roots,
codex_home,
cwd,
&mut env_map,
&command,
SpawnPrepOptions {
inherit_path: false,
add_git_safe_directory: false,
},
)?;
let permissions = common.permissions;
let current_dir = common.current_dir;
let logs_base_dir = common.logs_base_dir.as_deref();
let uses_write_capabilities = common.uses_write_capabilities;
if !permissions.has_full_disk_read_access() {
anyhow::bail!(
"Restricted read-only access requires the elevated Windows sandbox backend"
);
}
// WRITE_RESTRICTED tokens consult restricting SIDs only for writes, so this
// backend cannot make capability-SID deny-read ACLs authoritative.
if !additional_deny_read_paths.is_empty() {
anyhow::bail!("deny-read overrides require the elevated Windows sandbox backend");
}
let capability_roots =
legacy_session_capability_roots(&permissions, ¤t_dir, &env_map, codex_home);
let security = prepare_legacy_session_security(
uses_write_capabilities,
codex_home,
cwd,
capability_roots,
)?;
allow_null_device_for_workspace_write(uses_write_capabilities);
apply_legacy_session_acl_rules(View on GitHub (pinned to 339751715c)
When it happens
Trigger: Thrown at codex-rs/windows-sandbox-rs/src/lib.rs:546 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/9ced43553d388eb4.
Report an issue: GitHub.