Skip to content

Even simple read-only commands fail inside the sandbox. #28878

Open

Description

@YangYoungho

Platform: Windows
Codex Desktop / Codex app
Sandbox mode: workspace-write
Shell: PowerShell
Workspace path: D:\Project\P2

Symptom:
Even simple read-only commands fail inside the sandbox.

Example command:
Get-Content -Raw

Error:
windows sandbox: runner error: CreateProcessAsUserW failed: 1312

Observed behavior:
The command fails before normal PowerShell execution.

Workaround:
Running the same command with require_escalated succeeds.

Expected behavior:
Read-only commands inside the workspace, or allowed read paths, should execute in the sandbox without escalation.

Persistence:
The issue continues after restarting Codex / session.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Jun 18, 2026
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