Skip to content

Windows MXC sandbox: Access denied on Google Drive for desktop streaming G: drive #59163

Open

Description

@hghsugiyama-svg

What version of the Codex App are you using (From “About Codex” dialog)?

0.166.0-alpha.5.1

What subscription do you have?

Plus

What platform is your computer?

Windows Professional 26H2 build 26340.9843 x64

What issue are you seeing?

Environment

  • Codex Desktop bundled CLI 0.166.0-alpha.5.1
  • Windows Professional 26H2 build 26340.9843 x64
  • Google Drive for desktop streaming virtual drive G:
  • config.toml [windows] sandbox = 'elevated' but observed MXC selection

Reproduction

Using desktop-bundled executable (refer to it as codex):

  1. codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK → MXC_OK, exit 0.
  2. codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c "dir G:\" → Japanese 'アクセスが拒否されました。' (Access is denied), exit 1.

Original Markdown file can be opened in normal Explorer but failed read in Desktop session.

Log

Path: %USERPROFILE%\.codex\.sandbox\sandbox.2026-11-03.log

Key entries:

  • [2026-11-03 18:38:48.390 codex.exe] MXC availability: true
  • [2026-11-03 18:38:48.400 codex.exe] Windows sandbox selection: mxc
  • [2026-11-03 18:38:48.924 codex.exe] MXC availability: true
  • [2026-11-03 18:38:48.925 codex.exe] Windows sandbox selection: mxc

Log timestamp timezone has no explicit offset; correlated as JST, not direct session ID. Entire daily log was inspected and consists of MXC availability/selection entries including occasional disabled selection, no numerical Windows error code.

Full 42-line log NOT attached because only screenshot available and privacy review of raw file not possible.

No elevated comparison because setup may change Windows host state.

Expected vs Actual

  • Expected: documented compatibility or actionable denial diagnostics
  • Actual: MXC starts but cannot enumerate G:

Root Cause

UNKNOWN: MXC/third-party virtual filesystem boundary vs token/ACL. Do not claim proven incompatibility.

No changes to ACL, Windows sandbox config, firewall, original file. Avoid any personal names, full paths, session IDs, sensitive data, tokens, screenshots, or secrets.

What steps can reproduce the bug?

Environment

  • Codex Desktop bundled CLI 0.166.0-alpha.5.1
  • Windows Professional 26H2 build 26340.9843 x64
  • Google Drive for desktop streaming virtual drive G:
  • config.toml [windows] sandbox = 'elevated' but observed MXC selection

Reproduction

Using desktop-bundled executable (refer to it as codex):

  1. codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c echo MXC_OK → MXC_OK, exit 0.
  2. codex -c windows.sandbox=mxc sandbox --include-managed-config --permission-profile :workspace -- cmd.exe /d /c "dir G:\" → Japanese 'アクセスが拒否されました。' (Access is denied), exit 1.

Original Markdown file can be opened in normal Explorer but failed read in Desktop session.

Log

Path: %USERPROFILE%\.codex\.sandbox\sandbox.2026-11-03.log

Key entries:

  • [2026-11-03 18:38:48.390 codex.exe] MXC availability: true
  • [2026-11-03 18:38:48.400 codex.exe] Windows sandbox selection: mxc
  • [2026-11-03 18:38:48.924 codex.exe] MXC availability: true
  • [2026-11-03 18:38:48.925 codex.exe] Windows sandbox selection: mxc

Log timestamp timezone has no explicit offset; correlated as JST, not direct session ID. Entire daily log was inspected and consists of MXC availability/selection entries including occasional disabled selection, no numerical Windows error code.

Full 42-line log NOT attached because only screenshot available and privacy review of raw file not possible.

No elevated comparison because setup may change Windows host state.

Expected vs Actual

  • Expected: documented compatibility or actionable denial diagnostics
  • Actual: MXC starts but cannot enumerate G:

Root Cause

UNKNOWN: MXC/third-party virtual filesystem boundary vs token/ACL. Do not claim proven incompatibility.

No changes to ACL, Windows sandbox config, firewall, original file.

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    app
    on Nov 3, 2026
  2. added
    bug
    windows-os
    sandbox
    on Nov 3, 2026
  3. u1112245-a11y commented on Nov 17, 2026

    @u1112245-a11y

    Additional report (Windows Codex Desktop, 2026-11-17; distinct session; no root cause asserted):

    • Active session permission profile: workspace-write; the Google Drive for desktop streaming G: project is registered in the workspace.
    • Windows configuration says [windows] sandbox = "elevated", while two recent sandbox selection log entries say MXC availability: true and Windows sandbox selection: mxc. The logs are not directly correlated to the failing command.
    • A read-only attempt to retrieve the full bytes of a Python source file in the mounted project using PowerShell/.NET ended with UnauthorizedAccessException. Full source bytes and current SHA-256 were not obtained; no source modification occurred.
    • Legacy sandbox has an old setup marker, but there is also a later helper_unknown_error / read ACL run had errors record. Legacy sandbox current health and G: compatibility are therefore unverified.
    • There is a global sandbox_mode = "danger-full-access" configuration value, while the effective session remained workspace-write. No restart or switching was attempted because a future session's effective permissions have not been verified.
    • No ACL changes, privilege elevation, sandbox switching, or host file modifications were performed.

    This matches the symptoms of this issue, but does not prove the same underlying cause. Could maintainers clarify (1) whether MXC has a known limitation with streamed Google Drive G: volumes, (2) whether there is a supported fix or supported read-only authorization path under workspace-write, and (3) how to select a verified safe legacy sandbox without triggering initialization or a broader permission profile?

    No personal file paths, file contents, credentials, logs, or trading data are included.

  4. Prospex-Agro commented on Nov 23, 2026

    @Prospex-Agro

    I reproduced a similar issue in ChatGPT Desktop 26.1117.4957.0 on Windows 11 26H2 (build 26300.10075), with Google Drive for desktop streaming to E:. In a new ChatGPT Work chat, the composer showed Full access, but PowerShell returned 0x80070005 when reading an existing file or creating a temporary file. A new chat in the linked local Codex project successfully read, wrote, and deleted a test file on the same drive.

    Is Full access in Work expected to allow PowerShell access to streamed Google Drive volumes?

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

    appbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions