Skip to content

Windows sandbox setup fails on Google Drive write root (SetSecurityInfo 87); existing chat retains root after project change #51612

Open

Description

@Imysea

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

  1. Start a desktop project/chat with a writable folder under G:\<Google Drive folder>\<Unicode workspace>.
  2. Attempt shell execution or connect the browser automation tool to an already-open in-app browser tab.
  3. Observe sandbox setup failure before the operation runs.
  4. Change the project's folders to a local directory under C:\Users\<user>\Documents\<local workspace> and remove the G: project folders.
  5. Completely exit and relaunch the app, then continue the existing chat.
  6. 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_escalated shell 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

  1. added
    bug
    app
    windows-os
    sandbox
    session
    on Oct 7, 2026
  2. aaristondo-naider commented on Nov 16, 2026

    @aaristondo-naider

    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

    • Desktop package OpenAI.Codex: 26.1111.2228.0; AppX status Ok.
    • Bundled CLI: 0.169.0-alpha.11.1 (from that installed package).
    • Windows build: 26300.9974; DisplayVersion 26H2.
    • Google Drive for desktop: 134.0.1.0.
    • Saved Windows sandbox setting: elevated. prefer_mxc is not explicitly set.

    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

    1. Attach a Google Drive for desktop G:<project> folder as an authorized writable workspace in the desktop chat.
    2. Attempt an ordinary shell operation or initialize the Chrome/browser control tool.
    3. Both fail before the requested operation begins.
      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

    • The normal user can access the G: workspace. An approved execution route read and hashed 804 project files, so this is not general document unavailability.
    • The user ran a fresh local-C:-only chat and reported ordinary temporary-file create/read/delete and Chrome tab reading succeeded.
    • Merely choosing C: as command cwd in the affected chat did not avoid its G: setup failure.

    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

    • Ordinary execution, not an escalated route, reads an existing G: workspace file.
    • It creates, reads, changes and removes a unique disposable file inside that workspace.
    • Browser/Chrome tools initialize with G: attached.
    • Other filesystem and network restrictions remain effective.
    • No unrelated document changes or shared-folder relocation is required.

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appbugsandboxsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions