Repository navigation
Description
Summary
Windows sandbox initialization fails when a Codex desktop chat has a writable workspace on a Google Drive for desktop G: path. Both shell and in-app browser automation fail before their actual operations begin. Removing the G: folders from the project's folder list and restarting the desktop app did not clear the failing path from the existing chat's sandbox setup.
Environment
- Windows, PowerShell, Codex desktop app
- Bundled command-runner version observed in sandbox logs: 0.160.1 (desktop app version not collected)
[windows] sandbox = "elevated"- Google Drive for desktop mounted as G:, with a Unicode workspace path
- Observed on 2026-10-07, approximately 16:45–16:58 KST (UTC+09:00)
- Personal usernames, business folder names, account information and document contents omitted
Steps observed
- Start a desktop project/chat with a writable folder under
G:\<Google Drive folder>\<Unicode workspace>. - Attempt shell execution or connect the browser automation tool to an already-open in-app browser tab.
- Observe sandbox setup failure before the operation runs.
- Change the project's folders to a local directory under
C:\Users\<user>\Documents\<local workspace>and remove the G: project folders. - Completely exit and relaunch the app, then continue the existing chat.
- Project-list tool reports the project's path as C:, but the sandbox setup log still tries to grant a write ACE on the previous G: workspace and fails.
Errors
Shell:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors
Browser automation runtime:
node_repl kernel exited unexpectedly
windows sandbox failed: helper_unknown_error: setup refresh had errors
Sanitized sandbox log excerpt:
[2026-10-07T07:58:20.021997400+00:00] granting write ACE to G:\<Google Drive folder>\<Unicode workspace> for sandbox group and capability SID
[2026-10-07T07:58:20.032892400+00:00] write ACE grant failed on G:\<Google Drive folder>\<Unicode workspace>: SetSecurityInfo failed: 87
setup refresh: processed 3 write roots (read roots delegated); errors=["write ACE failed on G:\\<Google Drive folder>\\<Unicode workspace>: SetSecurityInfo failed: 87"]
setup refresh completed with errors
setup error: setup refresh had errors
Additional diagnostics
- Explicitly setting shell working directory to C: did not reliably resolve the error. A simple Get-Location check succeeded once for both C: and G:, but subsequent file listing and browser runtime startup failed again. This intermittency is not understood.
- An approved
require_escalatedshell execution successfully listed the G: source folder and wrote a Markdown handoff note to C:. This confirms the original user context can access the files; it does not establish sandbox access. - No sandbox configuration, Windows ACLs, helper executables or protected folders were modified as a workaround.
- A fresh C:-based chat was created as a possible recovery path, but its recovery status was not verified when this report was submitted.
Expected behavior
A virtual-drive permission setup failure should produce an actionable error identifying the unsupported root instead of disabling unrelated file/browser tools with helper_unknown_error. After changing project folders, existing chats should either refresh their sandbox roots or clearly explain that the original chat workspace is retained and provide a supported migration/recovery action.
Impact / investigation request
Ordinary monthly document preparation and browser workflow inspection are blocked despite the documents and browser page remaining accessible in the desktop UI. Please investigate Google Drive write-root ACL compatibility and whether retaining the former G: workspace in an existing chat after project changes is intended behavior or a stale-root bug.
Activity
aaristondo-naider commentedon Nov 16, 2026
Google Drive G: direct workspace access fails during Windows sandbox ACL provisioning
Date: 2026-11-16
Goal
Restore ordinary sandboxed file access and browser-tool startup in a Codex desktop chat whose authorized workspace is on the Google Drive virtual G: drive. A local workspace or connector-based workflow is not the requested resolution.
Observed versions
New filesystem capability measurement
A read-only GetVolumeInformationW query on G:\ returned:
file system: FAT32
lpFileSystemFlags: 0x106
FILE_PERSISTENT_ACLS (0x00000008): absent
Therefore this virtual volume reports that it does not preserve/enforce persistent Windows ACLs. No volume serial, account information or private names are included here.
Original reproduction
Sanitized observed setup error:
granting write ACE to G:<project> for sandbox group and capability SID
write ACE grant failed ... SetSecurityInfo failed: 87
setup refresh had errors
helper_unknown_error
The installed-version source also queues workspace grants through ensure_allow_write_aces in setup_provisioning.rs.
Controls
One-command diagnostic probes; saved config unchanged
A. windows.sandbox=mxc, workspace profile: fixed echo marker succeeded, exit 0.
B. Explicit G: workspace, mxc, absolute G:<project><existing-text-file>: access denied, exit 1. File read failed before any temporary file was created. This did not establish direct G: support.
C. One-command unelevated override: failed before its payload with 'registered Core process has no package identity', exit 1. This is a separate nested-launch failure and does NOT establish whether unelevated works on G: in the desktop app. Related issue #60633.
Requested repair / maintainer guidance
Please provide a supported fix or fixed desktop build for authorized Google Drive virtual-drive workspaces. The solution should preserve the configured filesystem/network boundaries and task binding while handling a provider that advertises no FILE_PERSISTENT_ACLS. Silently ignoring failed security grants or disabling the sandbox is not the requested fix.
If this filesystem is unsupported by design, please confirm that explicitly and explain whether direct support is planned.
Acceptance checks for a repair
References
#51612
#59163
#60633
https://github.com/openai/codex/blob/rust-v0.169.0-alpha.11.1/codex-rs/windows-sandbox-rs/src/setup_provisioning.rs
https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getvolumeinformationw
Privacy and diagnostic scope
This text contains measured software versions, sanitized errors and a filesystem feature flag. It contains no private project path, file contents, usernames, account IDs, tokens, browser URLs, volume serials or raw logs. No configuration, service registration, security flag or runtime binary was changed during these probes. No repair has yet been verified.