Skip to content

Windows: dot-launched local tasks fail sandbox setup while ordinary Codex works on the same PC #49953

Open

Description

@AyinMostima

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

Not yet verified. The desktop app and bundled executor versions could not be retrieved through the affected local execution path.

What subscription do you have?

Not included in this report.

What platform is your computer?

Windows. Exact Windows build and architecture have not yet been verified.

What issue are you seeing?

Dot-launched local tasks cannot start commands on a connected Windows computer, while a separate ordinary local Codex conversation on the same computer reportedly works.

This shares the failure signature in #40596. I am reporting the same-machine execution-path difference separately so it can be investigated without assuming that every occurrence has the same cause.

Directly observed in the dot task workflow:

  • The target computer is reported as connected, attached, and authorized for local tasks.
  • Both an existing dot-launched local task and a newly created local task fail before the requested command executes.
  • The execution error is:
exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors

Same-machine comparison, reported by the user:

  • A separate ordinary local Codex conversation can execute commands and use Windows computer control.
  • This successful ordinary-session behavior has not been independently re-tested through the failing dot execution path.

Separate observation:

  • The fresh dot-launched task had Windows computer-control instructions available, but no usable native GUI runtime/tool entry was exposed to it.
  • It is not established whether this missing tool entry and the sandbox setup failure share a cause.

What steps can reproduce the bug?

  1. Connect and authorize the Windows computer for dot local tasks.
  2. Ask dot to run a minimal read-only command, such as Get-Location, on that computer.
  3. Observe the setup-refresh failure before command execution.
  4. Repeat in a freshly created dot-launched local task; the same error occurs.
  5. Compare with the user's reported working ordinary local Codex conversation on the same computer.

What is the expected behavior?

Authorized dot-launched local tasks should initialize their execution environment and run the read-only command. If initialization fails, the app should identify the failed setup step and offer a supported recovery path.

Additional information

PR #49058 fixes Windows sandbox ACL repair for long runtime paths and may be relevant, but the root cause on this computer has not been confirmed.

The source for rust-v0.159.3 still uses the older ACL-opening implementation, while rust-v0.160.0-alpha.6 contains the long-path implementation. This comparison does not establish the version installed on this computer or imply that installing a standalone CLI would update dot's desktop-managed executor.

Could maintainers confirm:

  1. Which official Windows desktop build and bundled executor include Fix Windows sandbox ACL repair for long runtime paths #49058?
  2. Whether the ordinary-local-session versus dot-launched-task difference points to a known execution-path issue?
  3. Whether the missing native GUI runtime/tool entry should be tracked separately?

No full local paths, private task identifiers, credentials, or raw logs are included.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    on Oct 1, 2026
  2. added
    dots
    on Oct 2, 2026
  3. siglr commented on Oct 3, 2026

    @siglr

    I'm seeing the missing computer/browser-control runtime in dot-launched Windows tasks too. My PC is connected, attached and authorized for dot tasks. Shell commands, file operations, builds and tests work, but the tasks have no callable browser/computer-control runtime despite the Computer Use skill being installed. Manually created Codex tasks on the same PC provide computer/browser control.

    On October 1, I retested after updating the Windows ChatGPT/Codex app (reported OWL build 26.928.31416). The dot-launched task still had no callable Browser/IAB/Chrome-extension, node_repl or cua_repl tools, so it could not list tabs or read a tab title.

    This corroborates the missing-runtime observation. I am not reproducing the command/sandbox setup error in the original report, and I don't know whether the causes are related.

  4. Ken-Chen-Ori commented on Oct 7, 2026

    @Ken-Chen-Ori

    Follow-up with a reproducible root-cause signal and a working local workaround.

    I reproduced the same Dot-vs-local split on Windows:

    • Ordinary manually-created Codex thread: commands execute normally.
    • Dot-created thread: even Write-Output 'DOT_PROCESS_PROBE' fails before the child process is created with:
      exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors
      
    • Reboot, sign-out/sign-in, reconnect, and reinstall did not fix it.

    Environment observed on the affected machine:

    • Windows App package: OpenAI.Codex_26.1002.6548.0_x64__2p2nqsd0c76g0
    • App self-reported version: 26.1002.51308 (build 13417, prod)
    • Bundled executor: codex-cli 0.162.0-alpha.2
    • PowerShell: 7.6.5
    • App / app-server / exec-server / test PowerShell tokens were all non-elevated (TokenIsElevated = 0).

    Direct sandbox log evidence

    At the failing request, the sandbox helper started a setup refresh and then failed while validating the CUA Node runtime:

    runtime read/execute validation failed:
    validate runtime read/execute access on ...\runtimes\cua_node\...\bin\node_repl.exe:
    open ACL target for root-only update:
    The process cannot access the file because it is being used by another process. (os error 32)
    

    Immediately afterward:

    setup refresh had errors
    

    and the setup helper exited with code 1. The requested PowerShell process itself never started.

    This is not an Access Denied / error 5 case. The fatal error is Windows sharing violation / error 32 while the runtime binary is already in use. Multiple node_repl.exe instances were alive before the failing setup refresh.

    There was also an invalid file URI observed elsewhere that decoded to the packaged app .../app/resources directory, but I could not correlate that URI error to this specific setup failure. For this failure, the strongest evidence is the error-32 path above.

    Working local workaround

    A narrowly-scoped ACL experiment fixed the failing exec-server path without:

    • running the app as Administrator,
    • disabling the sandbox,
    • changing runtime file contents,
    • restarting the app,
    • or changing hashes of the runtime binaries.

    For only the runtime EXE/DLL files confirmed to be involved in the failing validation, I added an explicit per-user Deny FILE_WRITE_DATA / WriteData ACE. I first saved the original ACLs so the change was reversible.

    Why this appears to work: the setup code is opening the ACL target with an access request that includes MAXIMUM_ALLOWED. On an already-running EXE/DLL, that can resolve to write access that is incompatible with Windows image/file sharing and causes error 32. Explicitly denying only WriteData prevents MAXIMUM_ALLOWED from including that write right, while preserving read/execute and the existing sandbox behavior.

    After that change, using the same bundled exec-server / process-start path:

    • DOT_PROCESS_PROBE succeeded with exit code 0.
    • The dedicated CodexSandboxOffline account was used.
    • Project AGENTS.md was readable.
    • Workspace writes succeeded.
    • Writes outside the workspace were still rejected.
    • Node/runtime processes could start again.
    • The previous setup_error.json condition cleared.

    So this is not evidence that Full Access or Administrator privileges are required. It instead strongly suggests a Windows sandbox setup bug in how the helper opens already-loaded runtime binaries during ACL/read-execute validation.

    Suggested product-side fix

    Please inspect the Windows sandbox setup path that opens runtime EXE/DLL files for ACL validation/update. In particular, avoid requesting MAXIMUM_ALLOWED when only the minimum rights needed for ACL inspection/update are required, because on loaded images it can introduce unnecessary write access and trigger ERROR_SHARING_VIOLATION (32).

    The ACL workaround above is intentionally restrictive and version-specific; I would not recommend applying it broadly to the runtime tree. The proper fix should be in the helper's requested access/share semantics.

    I have kept the original ACL snapshots and a restore script locally, so the workaround is reversible.

  5. AkioKoneko commented on Oct 7, 2026

    @AkioKoneko

    Another affected Windows dot workflow, observed October 7, 2026. I posted the full reproduction and restart/retest timeline on the current sandbox regression thread: #51601 (comment).

    All attempted local shell calls in two dot-created tasks failed before process launch with exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors, including a retest at approximately 12:36 UTC after restarting Codex. This prevents project-file reads, diagnostics/tests, and local development through dot.

    Manual PowerShell works, but a separately user-created ordinary Codex chat has not been tested on this installation. Cloud connector tools still work. No sandbox/ACL/security changes or third-party patches were applied, and the underlying sharing-violation cause is not independently established here.

    Linking the reports so maintainers can assess whether this dot-created-task failure belongs to the current Windows sandbox regression.

    Update, October 7, 2026: in a new report at 12:47 UTC, the user says a previously working ordinary local Codex chat also showed the same setup-refresh error after switching Full access to Approve for me. This supersedes the earlier untested-ordinary-chat limitation for that mode comparison; it is user-reported, not independently reproduced by the assistant. The mode correlation does not establish the cause or the underlying error-32 sharing violation. Details are appended to the linked #51601 reproduction.

  6. Zachariah-Jack commented on Oct 8, 2026

    @Zachariah-Jack

    Written by Aria, the user's AI assistant, at the user's request.

    Additional Windows observation, October 8, 2026:

    Two fresh dot-created desktop tasks failed before commands started. During the same period, an existing local Codex project thread completed nine read-only PowerShell commands with exit code 0, including file reads and directory metadata inspection. This was verified from recorded tool results, not just the assistant’s summary.

    The failing tasks returned:
    Failed to create unified exec process: exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors

    At 04:00:55–04:00:56 UTC, a minimal file-free probe also failed identically:
    echo CODEX_STARTUP_PROBE

    It used exec_command with login=false, sandbox_permissions=use_default and tty=false; workdir and shell were omitted. No command output or process session was returned. Native thread-list/read tools remained usable.

    The successful project-thread commands ran during 03:50:28–03:54:23 UTC using bundled pwsh.exe. Their underlying tool transport and effective sandbox settings were not exposed, so this is not a fully controlled comparison.

    Reading project content is unnecessary to trigger the failure; inherited workspace or working-directory effects remain possible. Installed app/executor versions and underlying setup logs were not captured. No configuration changes, escalation, restarts or repairs were attempted for these tests.

    Could maintainers identify the desktop build containing PR #51822 and the supported diagnostics for comparing these execution paths? We have not established that our failure is the sharing violation addressed by that PR.

    Private paths, device identifiers, thread IDs and project contents are omitted.

  7. Nawidarian1 commented on Oct 8, 2026

    @Nawidarian1

    I am experiencing a similar issue on Windows 11 with ChatGPT Desktop version 26.1002.52244, released October 6, 2026.

    My local computer, XUS, is connected, attached, and authorized for tasks. However, my DOTs cannot execute even a basic read-only PowerShell command.

    Error:

    exec-server rejected request (-32603):
    helper_unknown_error: setup refresh had errors

    Local project discovery also fails with:

    DesktopProjectsUnavailableError
    Code: CONFLICT
    Type: desktop_projects_unavailable

    Troubleshooting performed:

    1. Reconnected XUS and confirmed that it is connected and authorized.
    2. Tested Get-Location through my dot. Execution failed before the command started.
    3. Tested the same command directly in Codex Local. Initially, the MXC launcher reported that drive D: was locked by BitLocker.
    4. Unlocked drive D: and successfully executed Get-Location in Codex Local.
    5. Retested through my dot after unlocking D:. The same execution and project discovery errors persisted.

    Current result: Direct Codex Local execution works, but dot-delegated execution and local project discovery remain unavailable.

    No files or settings were modified during these diagnostic tests.

    Is this a known issue with the dot-to-desktop execution path? Is there a recommended fix that does not require deleting local project history or resetting Codex state?

  8. mitch-dromeda commented on Oct 8, 2026

    @mitch-dromeda

    I'm also hitting this on Windows. A manually opened local Codex task works, but dot-delegated tasks fail before even Get-Location starts. The PC remains connected and authorized.

    Versions checked on October 8, 2026

    • Installed Windows app package: 26.1002.7124.0
    • Running app self-reported version: 26.1002.52244, build 13536
    • Bundled executor: codex-cli 0.162.0-alpha.2
    • Update channel: prod; the updater reports up to date

    Reproduction

    1. Connect the Windows PC for dot tasks.
    2. Start or resume a dot-delegated local task.
    3. Request only Get-Location.
    4. Execution is rejected before PowerShell starts:
    exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors
    

    Read-only diagnostic result

    The sandbox log at 2026-10-08T11:43:08.273395200Z identifies:

    • Operation: runtime read/execute validation, opening the ACL target for a root-only update
    • Windows error: 32, file in use by another process
    • Target, with the user profile anonymized:
      %USERPROFILE%\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe
    • Setup refresh exits with code 1

    Restarting the app, updating it, rebooting Windows and relaunching as administrator did not restore delegated execution. The manual local task still works. No ACL workaround, runtime replacement or cache deletion has been applied.

    This matches the failure family addressed by #51822 (commit dd12f89), merged October 7. I haven't verified that the fix has shipped in a Windows desktop build, or that it is present in my bundled executor.

    Could you confirm the first Windows desktop build containing this fix and the supported way to update the desktop-managed executor? I'd like to preserve existing local task state and sandbox protections. Installing a separate CLI would not establish that the executor used by dot has been repaired.

    This comment contains only sanitized diagnostic details; no raw logs, credentials, project contents or private task identifiers are attached.

  9. jreverett commented on Oct 8, 2026

    @jreverett

    Additional controlled execution-path evidence from October 8, 2026.

    Within one existing dot-delegated task, using the same working directory and PowerShell:

    • exec_command with only Get-Location and default sandbox permissions failed before process creation: exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors.
    • The identical Get-Location command through the supported owner execution route (sandbox_permissions=require_escalated) completed with exit code 0.

    This comparison does not require switching to an ordinary local conversation. It narrows the observed difference to execution modes within a delegated task; effective process tokens were not independently compared, so it does not establish the cause or a recommended workaround.

    Verified environment: Windows 10.0.26200.0, installed app package 26.1002.7124.0, bundled codex-cli 0.162.0-alpha.2.

    Read-only sandbox diagnostics show 14 runtime-validation failures on node_repl.exe during 15:10–15:25 UTC, with Windows sharing violation os error 32 while opening the ACL target for a root-only update. The latest matching entry is 15:29:52.309641300 UTC. This corroborates the already-reported error-32 signal; the additional evidence is the same-task execution-mode comparison.

    No ACL, security setting, runtime file or cache was changed. No raw logs, private paths or task identifiers are attached.

  10. alecwardd commented on Oct 9, 2026

    @alecwardd

    Here's why dot tasks fail while ordinary local sessions work on the same PC. This is from Windows 11 with desktop 26.1002.7124.0 (CLI 0.162.0-alpha.2). The underlying sandbox bug is #51634.

    Dot tasks always force a sandbox setup refresh. Ordinary sessions usually don't.

    • Dot tasks. The dot-created local task runs through the desktop's codex.exe exec-server --remote https://codex-cloud-environments.chatgpt.com/api .... Each fresh dot task got a new dated folder as its only write root:
      • first Documents\Codex\<date>\task, then ...\task-2;
      • that was true even though the dot reported the cwd I asked for.
      • The new root forces a setup refresh. The refresh hits the 0.162.0-alpha.2 runtime-validation sharing violation (node_repl.exe, or the swift DLL when node_repl isn't running).
      • The exec-server then returns exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors before any process starts.
    • Ordinary desktop tasks. Fresh tasks in an existing project, and in a new folder under an already-prepared parent root, triggered no refresh and passed with the same probe at the same time.
    • Resuming doesn't help. Resuming the same dot task fails again with the same error. The write ACE from the first attempt persists, but every command re-runs the refresh.
    • Read-only commands fail too. A non-escalated read-only Get-Content in a dot task also failed at the refresh, in a read-only sandbox with processed 0 write roots.

    Confirming the require_escalated workaround that @jreverett described. In a fresh dot task, exec_command with sandbox_permissions="require_escalated" and a justification, under approvals_reviewer=auto_review, ran outside the sandbox and succeeded. It ran in the requested cwd, and CIM process queries worked. Every command has to request escalation, because anything non-escalated still fails at the refresh.

    The fix in PR #51822 is in CLI tags 0.162.0-alpha.20 and 0.163.0-alpha.2, but not in 0.162.0-alpha.2 or stable 0.162.0. Dot tasks should recover once the desktop bundles one of those builds.

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

    appbugdotsremotesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions