Skip to content

Windows Codex app 26.1002.52244: local commands fail with helper_unknown_error during setup refresh #52060

Open

Description

@eltellogato

Problem

Local commands fail before the requested operation starts with:
Failed to create unified exec process: helper_unknown_error: setup refresh had errors

This blocks reading and editing a local web application. No deployment is requested.

Environment

  • Windows 11, OS build 26200.9457 (reported by the user).
  • Codex desktop app: 26.1002.52244, build 13536, prod channel.
  • The built-in update check returned up_to_date.
  • Current execution environment reports sandbox_mode: workspace-write.

Reproduction

  1. Open a local workspace in Codex.
  2. Ask the agent to run a read-only command such as Test-Path against an existing project file.
  3. exec_command fails during process creation with the error above.
  4. Repeated retries return the same error.

Other observed failures

  • apply_patch cannot write files in the workspace.
  • Node REPL exited with: windows sandbox failed: helper_unknown_error: setup refresh had errors.
  • A separate browser attempt to access the local preview was rejected by the browser URL policy. Its relationship to the sandbox error has not been established.

Expected behavior

Read-only commands and authorized local edits should work inside the workspace.

Diagnostic limits

The agent cannot read sandbox logs because local execution is blocked. The unelevated fallback was suggested, but its effective configuration and whether the app was fully restarted have not been verified. No Windows error 5, 32, or 1385 has been confirmed.

Related report

#51601 describes a similar setup-refresh error. We have not established an identical root cause.

Please advise which diagnostics are needed and whether a supported fix is available.

Activity

  1. added
    bug
    app
    windows-os
    sandbox
    tool-calls
    on Oct 8, 2026
  2. AyaanPV commented on Oct 8, 2026

    @AyaanPV

    I spent an hour trying to fix this to no avail, and then I found a solution. I'd recommend rolling back, as that fixed the issue for me and I believe it will fix it for you as well.

    I used the link below to fix this issue:

    #51668

  3. kivancerturk222 commented on Oct 8, 2026

    @kivancerturk222

    I can reproduce this on a newer Windows Codex Desktop build, and the failure is not repository-specific.

    Environment:

    • Windows 10 x64
    • Codex Desktop package: OpenAI.Codex_26.1002.7124.0_x64__2p2nqsd0c76g0
    • ChatGPT Plus
    • Reproduces in an empty workspace: C:\CodexTest

    Minimal reproduction:

    1. Open empty workspace C:\CodexTest
    2. Ask Codex to run only: pwd
    3. Result:
      LOCAL_EXECUTION_HEALTHY: NO
      PWD: Unavailable
      ERROR: Failed to create unified exec process: helper_unknown_error: setup refresh had errors

    Diagnostics already completed:

    • Reproduces outside the actual project/repository.
    • Git installed and working.
    • Repository dubious-ownership issue fixed; .git ownership corrected.
    • Codex runtime cache reset; Codex recreated C:\Users\kivan.cache\codex-runtimes successfully.
    • CodexSandboxOffline and CodexSandboxOnline accounts exist, are enabled, and are members of CodexSandboxUsers.
    • Ownership of C:\Users\kivan.codex and C:\Users\kivan.cache\codex-runtimes is the current Windows user.
    • CodexSandboxUsers has RX on both.
    • Bundled runtime components execute successfully outside Codex:
      • Git 2.53.0.windows.3
      • PowerShell 7.6.5
      • Node v24.19.0
      • Python 3.12.14
    • runtime.json recreated correctly (bundleVersion 26.1007.11041, win32/x64).
    • codex-windows-sandbox-setup.exe exists, size 17,724,368 bytes, Authenticode signature is Valid, signer OpenAI OpCo, LLC.
    • ACLs for codex-windows-sandbox-setup.exe, codex-command-runner.exe, and codex.exe are consistent.
    • Application/Event logs did not surface a useful Codex-specific failure.

    Impact:
    Local execution is completely blocked, including the most basic read-only command, so normal development work in Codex Desktop is unusable.

    Because this reproduces in an empty workspace after a runtime cache rebuild, this looks like the Windows sandbox/unified-exec setup-refresh path rather than a project-specific failure.

    Please let me know which diagnostic log or supported repair path can expose the specific setup-refresh subfailure on this newer build.

  4. guenzelm commented on Oct 8, 2026

    @guenzelm

    Additional data point: same error, sandbox.log shows a sharing violation (os error 32) on node_repl.exe

    Environment

    Codex desktop app 26.1002.52244 (client_version in the local logs; MSIX package OpenAI.Codex_26.1002.7124.0_x64; Codex core 0.162.0), same version as in this issue, auto-updated on 2026-10-08. The same machine and project worked fine on 2026-10-07 with the previous version.
    Windows 11 Home, build 22631, x64. The user profile path contains a non-ASCII character and a space.
    config.toml: [windows] sandbox = "elevated". Approval mode "Ask for approval" (German UI: "Genehmigung anfordern").
    Symptom Every local command fails before the process starts with helper_unknown_error: setup refresh had errors, also in a fresh chat.

    What %USERPROFILE%.codex.sandbox\sandbox.2026-10-08.log shows (paths shortened, Windows message translated from German):

    setup refresh: spawning ...\AppData\Local\OpenAI\Codex\bin\9691020b546a15b2\codex-windows-sandbox-setup.exe
    failed to grant non-inheriting read-attributes ACE on user profile C:\Users<user>: open ACL target for root-only update: The process cannot access the file because it is being used by another process. (os error 32); continuing setup
    runtime read/execute validation failed: validate runtime read/execute access on ...\AppData\Local\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)
    setup refresh: processed 3 write roots (read roots delegated); errors=["runtime read/execute validation failed: ... node_repl.exe ... (os error 32)"]
    setup error: setup refresh had errors
    setup refresh: exited with status ExitStatus(ExitStatus(1))
    .sandbox\setup_error.json: {"code": "helper_unknown_error", "message": "setup refresh had errors"}

    Observation: node_repl.exe (MCP server node_repl from the computer-use runtime cua_node) is started by the app itself a few seconds before each command, for example at 14:51:51 and 14:51:52, and the setup refresh fails at 14:51:55. The setup helper apparently tries to update the ACL of a binary that the app is running at that moment.

    Tried without success

    Full restart of the app (twice).
    Settings, Computer use ("Computernutzung"): "Any app" ("Beliebige App") and "Microsoft Excel" turned off.
    Settings, General: "Plugins" turned off.
    Settings, MCP servers: node_repl turned off. config.toml then showed enabled = false, but node_repl.exe was still started for each run.
    Ending node_repl.exe manually before a command: it is started again with the next turn.
    Not tried: switching to the unelevated sandbox.

    Workaround that works, but bypasses the sandbox: In a chat that had already seen the error, the agent asked for approval to run the command outside the sandbox. Approved once, the command ran fine. In a fresh chat the agent only reported the error and did not offer this.

    I can share the full sandbox log if that helps.

  5. advedsonpanes-source commented on Oct 8, 2026

    @advedsonpanes-source

    I am also affected on Windows with Codex app 26.1002.52244, build 13536, production channel.

    Even a minimal command:
    Write-Output 'CODEX_EXEC_OK'

    fails before execution with:
    Failed to create unified exec process: helper_unknown_error: setup refresh had errors

    Browser initialization also fails with:
    trusted Node process exited unexpectedly

    A previous browser attempt reported:
    windows sandbox failed: helper_unknown_error: setup refresh had errors

    Additional troubleshooting:

    • The built-in dependency diagnostic reported that dependencies appeared to be in order.
    • Reinstalled workspace dependencies, package version 26.1007.11041. Installation reported success.
    • Closed and reopened the application after reinstalling.
    • Retested: both local execution and browser initialization still failed.
    • The app update check reported up_to_date.
    • Account usage was allowed; no usage limit was reached.

    In-app feedback ID:
    01a11c2f-7476-7280-9fe4-b73cd42e9d4d

    Windows error 32 has not been confirmed on my installation. Please use the submitted diagnostic feedback to investigate the underlying cause.

  6. highnrgappalachian commented on Oct 8, 2026

    @highnrgappalachian

    Nonexistent QA. Imagine launching an update with such a critical component failure.

  7. dcgunteriii commented on Oct 9, 2026

    @dcgunteriii

    I’m also affected. Last verified Windows app version:
    26.1002.52244, build 13536.

    Every local command fails before execution with:
    Failed to create unified exec process:
    helper_unknown_error: setup refresh had errors

    Even Get-Date and read-only file access fail.
    Restart/reopen and Windows app Repair did not resolve it.
    The documented sandbox.log appears to contain only May entries,
    although the current failure is October 9, 2026 (Eastern Time).

    Feedback ID: 01a1166a-776b-7702-aaaf-6ff2a1df29fe

    Please use the submitted feedback diagnostics to identify the
    underlying setup failure and provide a supported recovery.
    This blocks recovery of a production weekly scraping workflow.

  8. kivancerturk222 commented on Oct 10, 2026

    @kivancerturk222

    ANOTHER BLOCKING CODEX DESKTOP FAILURE — thread not found

    This is yet another workflow-blocking failure in Codex Desktop. After the earlier Windows local-execution/sandbox failure reported in this issue, the app is now refusing to send a message in an existing working thread and displays:

    thread not found: 01a1242d-13ea-7232-a2e0-f99f9b6bbf31

    The conversation is visible in the Codex UI, but attempting to continue it fails with “Mesaj gönderilirken hata oluştu / thread not found”. This happened during an active local development workflow after substantial project context and work had accumulated in the thread.

    This is extremely disruptive. Users should not have to repair Codex's internal session/thread storage, inspect local databases, or recreate long development conversations just to continue working.

    Please investigate why a thread that remains visible in the desktop UI can become unavailable to the message-sending backend, and provide a supported recovery path that preserves the existing conversation and project context.

    At minimum, Codex Desktop should:

    • never present a thread as usable when its backing thread cannot be resolved;
    • automatically recover/rebind a locally visible conversation when possible;
    • provide a user-facing recovery action instead of a raw internal thread not found UUID;
    • preserve accumulated conversation/project context across recovery;
    • log enough diagnostic information for this class of failure without requiring users to manually repair application internals.

    The recurring reliability failures are preventing actual work from being completed. Please treat session/thread recovery on Windows Codex Desktop as a reliability issue, not as something the end user should have to debug manually.

  9. buffbuffdev commented on Oct 13, 2026

    @buffbuffdev

    I can reproduce a Codex Windows sandbox/execution failure on Windows 11 with Codex CLI 0.162.1 and ChatGPT authentication.

    Minimal reproduction

    codex exec --skip-git-repo-check "Run Get-Location"

    Actual behavior

    Codex starts normally and reaches the local execution step:

    exec
    "C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\powershell.exe" -NoProfile -Command Get-Location
    

    The process is never created and Codex immediately reports:

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

    followed by:

    exec_command failed: CreateProcess {
      message: "Rejected(\"Failed to create unified exec process: helper_unknown_error: setup refresh had errors\")"
    }
    

    codex doctor reports:

    sandbox backend          elevated
    sandbox provisioning     failed
    error code               helper_unknown_error
    

    The request therefore reaches the model, but Codex cannot execute even a trivial local command.

    Expected behavior

    The local command should execute normally and return the current working directory:

    Path
    ----
    C:\Users\shaya
    

    Troubleshooting already performed

    I have already tested all of the following:

    • Restarted Codex with fresh sessions
    • Rebooted Windows
    • Tested from an elevated / Administrator PowerShell
    • Reinstalled/updated the standalone Codex CLI 0.162.1
    • codex doctor reports the Codex installation as consistent
    • codex doctor reports authentication and local state databases as healthy
    • codex doctor successfully establishes the WebSocket handshake with HTTP 101 Switching Protocols
    • Provider endpoints are reachable
    • Verified that codex-windows-sandbox-setup.exe exists
    • Verified that codex-command-runner.exe exists
    • Verified that codex-code-mode-host.exe exists
    • Tested with unified_exec disabled
    • Tested with unified_exec_tty disabled
    • Checked recent Microsoft Defender threat detections and matching Defender Operational events; nothing relevant was reported
    • Reproduced the failure outside any Git repository with a trivial Get-Location command

    The failure remains unchanged.

    This does not appear to be repository-specific, worktree-specific, PowerShell-specific, authentication-specific, or caused by a missing Codex helper executable.

    Additional isolation from an independent runner

    I can reproduce the same failure inside an independent automated Codex/agent runner.

    Multiple agents attempted basic local operations using PowerShell and cmd.exe, and all exec_command calls failed before process creation with the same error:

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

    However, in the same worktree, another Codex runtime path using node_repl was still able to:

    • open the worktree
    • list repository files
    • access .git
    • read project documentation

    This is important because it shows that the worktree itself is accessible and the filesystem is readable.

    The failure is specifically associated with the Codex local command execution path.

    I also intermittently see:

    ERROR codex_models_manager::manager: failed to refresh available models: request timed out
    

    but this does not appear to explain the primary failure. Codex continues far enough to attempt the local command, and the blocking failure remains:

    CreateProcess -> unified exec -> helper_unknown_error: setup refresh had errors
    

    Current isolation result

    The issue therefore persists after:

    • standalone Codex CLI reinstall/update
    • Windows reboot
    • Administrator execution
    • fresh Codex sessions
    • healthy authentication
    • healthy local state databases
    • confirmed provider reachability
    • successful WebSocket HTTP 101 handshake
    • verification that the Windows sandbox/helper executables exist
    • disabling unified_exec
    • disabling unified_exec_tty
    • checking recent Microsoft Defender detections/events
    • trivial execution outside any repository
    • independent automated runner reproduction

    The worktree and filesystem remain readable through another runtime path, while local process creation through exec_command consistently fails.

    At this point, the failure appears isolated to the Codex Windows sandbox / local execution provisioning layer rather than the repository, worktree, orchestration layer, shell, authentication, or basic network connectivity.

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

    appbugsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions