diff --git a/codex-rs/windows-sandbox-rs/src/setup_orchestrator.rs b/codex-rs/windows-sandbox-rs/src/setup_orchestrator.rs index 8ac0157a6..a008fc721 100644 --- a/codex-rs/windows-sandbox-rs/src/setup_orchestrator.rs +++ b/codex-rs/windows-sandbox-rs/src/setup_orchestrator.rs @@ -195,6 +195,11 @@ fn canonical_existing(paths: &[PathBuf]) -> Vec { pub(crate) fn gather_read_roots(command_cwd: &Path, policy: &SandboxPolicy) -> Vec { let mut roots: Vec = Vec::new(); + if let Ok(exe) = std::env::current_exe() { + if let Some(dir) = exe.parent() { + roots.push(dir.to_path_buf()); + } + } for p in [ PathBuf::from(r"C:\Windows"), PathBuf::from(r"C:\Program Files"),