Skip to content

Codex sandbox fails to start on Windows mapped drive workspace #19599

Open

Description

@ericvanduser8-lgtm

What version of the IDE extension are you using?

7.711.473

What subscription do you have?

Plus

Which IDE are you using?

vscode

What platform is your computer?

Environment: - Windows - Workspace path: L:\cs-web - Also related UNC path: \video1\node\cs-web - Shell: PowerShell - Sandbox mode: workspace-write Observed: Normal shell_command calls fail before command execution with errors: - windows sandbox: CreateProcessWithLogonW failed: 267 - windows sandbox: setup refresh failed with status exit code: 1 Examples: - Get-Content -LiteralPath .\context\README.md with workdir L:\cs-web fails - Get-ChildItem from C:\Users\eric also failed once with setup refresh error Workaround: Escalated PowerShell commands from C:\Users\eric using explicit L:\cs-web paths work. Expected: Sandboxed commands should initialize and read workspace files normally, especially after the project path is trusted in Codex config.

What issue are you seeing?

Codex sandbox fails to start on Windows mapped drive workspace

Environment:

  • Windows
  • Workspace path: L:\cs-web
  • Also related UNC path: \video1\node\cs-web
  • Shell: PowerShell
  • Sandbox mode: workspace-write

Observed:
Normal shell_command calls fail before command execution with errors:

  • windows sandbox: CreateProcessWithLogonW failed: 267
  • windows sandbox: setup refresh failed with status exit code: 1

Examples:

  • Get-Content -LiteralPath .\context\README.md with workdir L:\cs-web fails
  • Get-ChildItem from C:\Users\eric also failed once with setup refresh error

Workaround:
Escalated PowerShell commands from C:\Users\eric using explicit L:\cs-web paths work.

Expected:
Sandboxed commands should initialize and read workspace files normally, especially after the project path is trusted in Codex config.

What steps can reproduce the bug?

always

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    extension
    on Apr 25, 2026
  2. added
    bug
    windows-os
    sandbox
    on Apr 25, 2026
  3. ericvanduser8-lgtm commented on Apr 25, 2026

    @ericvanduser8-lgtm
    Author

    always requires about 3 permission click to allow Codex to read anything, very annoying

  4. github-actions commented on Apr 25, 2026

    @github-actions
    Contributor
  5. albertc71 commented on Apr 25, 2026

    @albertc71

    Curious if you experience the same thing in Codex app. Or this is unique to the Codex plugin in VS Code?

  6. pke commented on Aug 13, 2026

    @pke

    Curious if you experience the same thing in Codex app. Or this is unique to the Codex plugin in VS Code?

    Thats for the codex Windows 11 app from the appstore too!

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

    bugextensionsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions