Skip to content

Windows: dot-started tasks fail with “setup refresh had errors”, but direct local Codex chats work #51882

Open

Description

@Whanzo

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

26.1002.52244

What subscription do you have?

Pro

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

My dot assistant can no longer execute commands on my connected Windows PC. Both existing tasks and newly created diagnostic tasks fail before even a basic Get-Location command runs.
Exact error:
exec-server rejected request (-32603): helper_unknown_error: setup refresh had errors
The same Get-Location command works when I run it directly in a separate local Codex chat. This is blocking dot-coordinated Blender/Unity work that previously worked.

What steps can reproduce the bug?

Connect the Windows PC to dot. It shows as connected and authorized.

Ask dot to start or resume a task on that PC.

Have the task run Get-Location.

It fails with the setup-refresh error before executing the command.

Run Get-Location directly in a separate local Codex chat. It succeeds.

What is the expected behavior?

Tasks started or resumed through dot should execute commands on the connected, authorized PC, as they did previously. Get-Location should return the current directory without a setup error.

Additional information

  • Platform: Windows
  • App: ChatGPT desktop, “Powered by Codex & OWL”
  • Version: 26.1002.52244
  • Release date shown in the app: October 7, 2026
  • This workflow worked a few days before the recent update
    Already tried:
  • Restarting the PC
  • Closing and reopening the desktop app
  • Disconnecting and reconnecting the PC
  • Installing the latest available desktop update
  • Testing both an existing task and a fresh diagnostic task
  • Changing chat permissions and retesting
    The same error persists. Direct execution in my local “Apex Continue” chat works, while tasks started or resumed through dot fail.
    The October 7 desktop incident is marked resolved, but this still occurs on the version above. I don’t know whether it’s related.

Activity

  1. added
    app
    on Oct 8, 2026
  2. added
    bug
    windows-os
    dots
    tool-calls
    on Oct 8, 2026
  3. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor
  4. moruku36 commented on Oct 8, 2026

    @moruku36

    I’m also seeing the same pre-command setup error in tasks started through dot on a connected Windows PC, reproduced in newly created tasks on October 8, 2026 (JST).

    Reproduction on my setup:

    1. The Windows PC is recognized as connected in dot.
    2. Start a new local execution task on that PC.
    3. Request a basic PowerShell Get-Location command.
    4. Execution fails before the command runs:

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

    Creating fresh tasks and updating Chrome and NVIDIA software did not resolve it. This blocks command-based work on the connected PC.

    I have not yet tested the same command in a standalone local Codex chat, so I cannot confirm the direct-local-versus-dot difference reported above. My exact Windows build and Codex version have not been collected, and I do not yet have a diagnostic log establishing the underlying cause.

    Is there a supported fix or a safe, minimal diagnostic procedure for this setup-refresh failure while keeping the security sandbox enabled?

  5. oartuner commented on Oct 8, 2026

    @oartuner

    I’m seeing the same error on a connected, authorized Windows PC. Retested on October 8, 2026 in both an existing dot task and a newly created task. Even Get-Location fails before execution:

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

    Separately opened local Codex work is still functioning, while dot-started/resumed tasks are blocked. No project files were changed by these failed checks. My exact current app version and Windows build have not been verified for this report.

    Related reports: #51931 and #49953. The October 7 dot thread-creation incident is marked resolved (https://status.openai.com/incidents/01M4BK9J2M83R4SSC71D9FXW45), but I cannot confirm whether it has the same cause.

    Is there a supported fix or a minimal diagnostic procedure for this dot-specific failure that preserves the security sandbox and existing projects?

  6. lst72020825-dev commented on Oct 8, 2026

    @lst72020825-dev

    I am also seeing this error on Windows 10 when my dot starts or resumes a task on my connected PC.

    The PC is reported as connected, attached, and authorized, but commands fail before the shell or requested program starts:

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

    Reproduction and checks:

    1. Connect the Windows PC to dot.
    2. Ask dot to open Windows Calculator.
    3. The delegated task fails with the error above. Explicitly requesting Start-Process calc.exe produces the same initialization failure.
    4. A simple text-output command and an attempted read of the sandbox diagnostic log also fail before execution.
    5. Running calc manually through Windows+R opens Calculator normally.

    The issue has persisted across repeated user-requested tests, PC restarts, reconnecting the computer, and a subsequent Windows update/restart. An in-app bug report has also been submitted.

    I cannot provide the underlying sandbox log yet because the delegated log-read command hits the same initialization error. No specific Windows error code or underlying cause has been confirmed. Please advise on a supported diagnostic path or fix for this pre-command initialization failure.

  7. josephdingpeizhao-star commented on Oct 8, 2026

    @josephdingpeizhao-star

    Windows: dot-created Codex tasks fail to execute local commands due to sandbox initialization error (os error 32)

    Issue summary

    On my Windows PC, ChatGPT dot can successfully connect to the computer, create new local Codex tasks, and deliver instructions. However, these tasks consistently fail when attempting to execute even a basic PowerShell command such as Get-Location.

    The same command executes successfully in a regular local Codex conversation on the same computer.

    The sandbox diagnostic logs indicate a Windows file-sharing violation (os error 32) during runtime read/execute access validation, involving node_repl.exe and, in other attempts, VCRUNTIME140_1.dll.

    This prevents me from using dot to delegate coding tasks to Codex on my local Windows computer.

    Environment

    • Operating system: Windows (exact build not yet collected)
    • Connected computer: JohnDean
    • Application: ChatGPT / Codex desktop
    • Application version: Not yet confirmed
    • Affected functionality: dot-created local Codex tasks
    • Date of latest reproduction: October 8, 2026
    • Sandbox log: %USERPROFILE%\.codex\.sandbox\sandbox.2026-10-08.log

    Steps to reproduce

    1. Connect the Windows computer to ChatGPT dot.
    2. Confirm the computer reports connected, attached=true, and is_authorized_for_tasks=true.
    3. Ask dot to create a completely new local Codex task.
    4. Instruct the task to execute Get-Location using PowerShell.
    5. Observe that Codex receives the instruction and attempts to invoke the local command execution tool.
    6. The tool fails before PowerShell starts.
    7. Open a regular local Codex conversation and execute the same command. It succeeds with exit code 0.

    Actual result

    dot successfully creates the Codex task and delivers the instruction, but local command execution fails with:

    exec_command failed: CreateProcess {
      message: "Rejected(
        Failed to create unified exec process:
        exec-server rejected request (-32603):
        helper_unknown_error:
        setup refresh had errors
      )"
    }
    

    PowerShell never starts, Get-Location produces no output, and no command exit code is returned.

    The latest failed test was reported at approximately October 8, 2026, 21:12:11 (UTC+8). This is a post-failure timestamp, not the exact execution failure timestamp.

    Sandbox log findings

    A read-only investigation found the following critical error:

    runtime read/execute validation failed:
    validate runtime read/execute access on
    %LOCALAPPDATA%\OpenAI\Codex\runtimes\
    cua_node\3dd31cfff853001c\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)
    

    Other failed initialization attempts encountered the same sharing violation involving:

    bin\node_modules\@oai\sky\bin\
    windows\swift\x64\VCRUNTIME140_1.dll
    

    The sandbox setup helper subsequently exited with status 1, reporting setup refresh had errors.

    Relevant observations:

    • The sandbox log contains a matching failure around 20:52:04 on October 8, 2026.
    • The log does not contain the dot task ID, so an exact task-to-log correlation has not been established.
    • The affected runtime files exist.
    • The CodexSandboxUsers group already has read/execute permissions on the examined files.
    • The process holding the conflicting file handle at the exact moment of failure has not been identified.
    • The available evidence points to a file-sharing violation during runtime validation, rather than a confirmed missing-permission or path-length problem.

    Troubleshooting already performed

    • Confirmed that ordinary Codex conversations can execute local PowerShell commands successfully.
    • Created multiple fresh dot-delegated Codex tasks instead of reusing failed sessions.
    • Closed and restarted the Codex desktop client.
    • Repeated the minimal Get-Location test after restarting.
    • Examined sandbox logs and checked affected runtime files and permissions without modifying them.

    The issue persists.

    No runtime files, caches, Windows permissions, application settings, or project files were changed during troubleshooting.

    Expected behavior

    When dot creates a Codex task on a connected and authorized Windows computer, the task should initialize its local execution environment and successfully execute commands such as Get-Location.

    Runtime validation should not fail because a bundled runtime executable or DLL is already in use.

    Request

    Could the Codex team investigate whether the Windows sandbox runtime validation logic is attempting to open active runtime files using an incompatible access or file-sharing mode?

    Please confirm whether this is a known regression and whether there is an official fix, fixed release, or safe workaround.

    I would prefer a supported solution that preserves existing Codex conversations, local configuration, and project files.

    Related issues

  8. RAMBULLS commented on Oct 9, 2026

    @RAMBULLS

    Additional verified diagnostics for this same connected-task versus direct-local failure, collected October 8, 2026:

    • Desktop About version 26.1002.52244, build 13536 prod; installed Store package OpenAI.Codex 26.1002.7124.0. Windows 11 Home 10.0.26300. Bundled command runner reports 0.162.0-alpha.2.
    • Connected/delegated commands previously failed before PowerShell with helper_unknown_error: setup refresh had errors. The latest retained sandbox failure is 2026-10-08T22:58:47Z, while opening the ACL for %LOCALAPPDATA%/OpenAI/Codex/runtimes/cua_node/3dd31cfff853001c/bin/node_repl.exe, error 32. This log does not itself establish exact task correlation.
    • Read-only Win32 open probes against the active executable: READ_CONTROL succeeds; READ_CONTROL | WRITE_DAC succeeds; MAXIMUM_ALLOWED fails with ERROR_SHARING_VIOLATION (32). All probe handles were closed; no ACL was written. Restart Manager returns multiple users of the runtime file, so no unique conflicting handle owner has been established.
    • PR Avoid sharing violations when repairing Windows runtime ACLs #51822, commit dd12f89, addresses this access-mask difference. Source for the installed version tag lacks the change, and old/new binary diagnostic marker checks agree with the old implementation. This is strong evidence, not a desktop build provenance attestation.
    • A separately initiated local task successfully ran a harmless PowerShell command and read authorized files in its verified existing native Project. That local-origin success does not prove the connected/delegated route is repaired. Restart already failed to fix the delegated route.
    • The latest information-only updater check was unavailable: this Store installation may require a download to check eligibility. I cannot confirm that a fixed desktop package is currently offered.

    Please identify the first supported Windows desktop package containing #51822, or provide a supported recovery procedure that preserves the sandbox, existing projects and personal files. No ACL relaxation, unrelated CLI beta, runtime binary replacement or repeated restart was applied. A separate cloud task admission fault is being kept separate from this runtime failure.

  9. moruku36 commented on Oct 9, 2026

    @moruku36

    Thanks @RAMBULLS and @josephdingpeizhao-star for the detailed diagnostics. #51822 looks relevant to the sharing-violation reports. I haven’t confirmed error 32 on my own machine, so I can only confirm the pre-command setup-refresh failure described in my earlier comment. Is there a supported Windows desktop release containing this fix, or a read-only way to check whether the installed desktop runtime includes it?

  10. RAMBULLS commented on Oct 9, 2026

    @RAMBULLS

    @moruku36 Thanks for confirming what you could reproduce. I still don't have a verified Windows desktop release number containing #51822.

    For the read-only check, our earlier investigation compared the bundled runner's version-tagged source and binary diagnostic markers against the patch. Both pointed to the older implementation. That is useful evidence, but it isn't an official desktop build attestation.

    Small update from October 9 around 03:06 UTC: after restarting/reconnecting, dot can now list my native Projects and create a task inside the selected Project. Follow-up instructions to that new task are also being accepted. Command execution and the installed version after this restart are still being checked, so I'm not calling the runtime issue fixed.

    Could the maintainers identify the first supported Windows desktop package containing #51822, and a supported read-only way to verify its bundled runner includes the change?

  11. moruku36 commented on Oct 9, 2026

    @moruku36

    Thanks @RAMBULLS for the update and for explaining the read-only checks. It's helpful to distinguish successful Project/task creation from actual command execution.

    If the new task can run a basic command such as Get-Location, could you share the desktop/package version after the restart and whether the setup-refresh error returns? That would help establish whether the execution issue has recovered. Confirmation from the maintainers of the first supported Windows desktop release containing #51822 would still be useful.

  12. freevern commented on Oct 9, 2026

    @freevern

    I'd like to provide some additional information and clarify the timeline of this issue.

    System Information:

    • Windows OS build: 26300.9550
    • Desktop app version when the issue first occurred: 26.1002.51308
    • Current desktop app version: 26.1002.52244

    Timeline:

    1. I updated Windows to build 26300.9550. The application continued to work normally after the Windows update, including before October 7, 2026.

    2. On October 7, I received and installed a desktop app update. Immediately afterward, I started experiencing issues with Work mode.

    3. At that time, the desktop app version was 26.1002.51308. I also checked status.openai.com and noticed a reported service incident affecting Work around the same period.

    4. I initially suspected that the issue might be related to the Work service incident, so I waited for subsequent updates.

    5. After updating to version 26.1002.52244, the issue still persists.

    6. The problem has since extended to Codex coding tasks. When Dot delegates tasks to my local Windows environment, even a basic PowerShell command such as Get-Location fails with the following error:

      helper_unknown_error: setup refresh had errors

    7. However, the same projects and commands work normally when executed directly in the local Codex environment. The failure appears to be specific to tasks delegated through Dot.

    Additional Observations:

    The problem occurs across multiple projects, so it does not appear to be project-specific.

    Since the application was working normally after the Windows update and the issue only appeared following the desktop app update on October 7, I suspect a possible regression in the desktop app or its integration with the local Windows execution environment.

    I cannot confirm whether this is related to the Work service incident reported on October 7, but the timing may be relevant.

    The issue remains unresolved in version 26.1002.52244.

  13. moruku36 commented on Oct 9, 2026

    @moruku36

    Update on my setup: after updating Windows Codex to 26.1007.21434 (build 13901 prod), PowerShell Get-Location succeeded once in a standard local Codex task and once in a dot-delegated local task. The previous “setup refresh had errors” failure did not reproduce in either test.

    This confirms improved command startup in these two tests only. CIM, keyring, and loopback access checks still failed; their cause and any relationship to this issue are unconfirmed, and I’m asking support about them separately. I have not verified whether this build includes #51822.

  14. masayoshi823 commented on Oct 10, 2026

    @masayoshi823

    Windows Codex 26.1007.21434(build 13901、更新済み)でも、dotから起動したタスクの単純なPowerShell出力コマンドが約60秒間無出力でした。中断要求後に終了コード1を確認しました。直接開いたローカルCodexは動作しています。該当時間帯のsandboxエラーは確認できず、近い時刻の接続切断も個別コマンドと対応付けられていません。サンドボックスを維持した診断方法をご案内ください。

  15. kierstad commented on Nov 6, 2026

    @kierstad

    Additional controlled reproduction on Windows (November 6, 2026), with permission-refresh evidence that may help isolate this issue.

    Observed behavior
    The identical harmless command succeeds in the coordinating local voice chat and fails before process creation in the delegated local build chat:

    Write-Output 'EXECUTION_CHECK_OK'
    Execution context Result
    Coordinating chat, default working directory Output received; exit code 0
    Coordinating chat, delegated workspace explicitly selected as workdir Output received; exit code 0
    Delegated chat, default shell and workdir, no shell override Fails before launch; no output

    Worker error:

    Failed to create unified exec process: helper_unknown_error: setup refresh had errors
    

    Correlated sandbox setup log (paths redacted)

    write ACE grant failed on [delegated workspace]: SetSecurityInfo failed: 5
    setup refresh: processed 4 write roots (read roots delegated);
    errors=["write ACE failed on [delegated workspace]: SetSecurityInfo failed: 5"]
    setup refresh completed with errors
    setup error: setup refresh had errors
    

    Successful coordinating-chat launches in the same log instead report processed write roots with errors=[].

    A separate profile read-attributes warning (os error 32) is explicitly marked continuing setup and also occurs on successful launches; it is not sufficient to explain this reproduction.

    Access-rule comparison
    Read-only Get-Acl inspection of both workspace roots shows the same visible owner and access entries: the interactive user owns both and has FullControl, SYSTEM and Administrators have FullControl, CodexSandboxUsers has Modify/Synchronize, and inheritance is enabled. No speculative ACL changes were made. This does not establish that all effective worker tokens or permission profiles are equivalent.

    Environment and recovery attempts

    • OS reports Microsoft Windows NT 10.0.26200.0.
    • The failure was reproduced after installing the available desktop-app update and reopening the app today. Exact app build was not captured; please do not interpret this as a claim about a specific version.
    • The user reports prior app updates, complete process termination, uninstalling, and reinstalling did not resolve the recurring failure.
    • Permissions to perform the requested work were already granted. The test does not reach user project code.

    This blocks all execution and verification in the delegated worker while the coordinating chat can execute in the same directory. Please investigate differences in effective worker security context, write-root selection, and sandbox permission-refresh behavior between these execution paths. The underlying defect is not yet proven; no claim is made that running the whole app as administrator is a fix.

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

    appbugdotsremotetool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions