Skip to content

Windows VSCode/Codex local exec fails with helper_unknown_error: setup refresh had errors, works after downgrade to v26.930.61225 #51954

Closed

Description

@queue-taro

What version of the IDE extension are you using?

v26.1002.51308

What subscription do you have?

team

Which IDE are you using?

VS Code

What platform is your computer?

Windows 11 25H2 build: 26200.9457

What issue are you seeing?

Summary

On Windows 11, Codex local command execution fails before PowerShell starts on v26.1002.51308.

Downgrading to v26.930.61225 restores local command execution.

Error

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

Additional Context

  • What I actually wanted Codex to do was to read a file.
  • Codex noted that this issue is worth reporting.

What steps can reproduce the bug?

Ask Codex to execute 'Get-Location' using PowerShell.

What is the expected behavior?

Outputs the current working directory.

Additional information

part of sandbox.2026-10-08.log

Get-Location
[2026-10-08 13:19:06.919 codex.exe] setup refresh: spawning c:\Users\<username>\.vscode\extensions\openai.chatgpt-26.1002.51308-win32-x64\bin\windows-x86_64\codex-windows-sandbox-setup.exe (cwd=C:\Users\<username>\AppData\Local\Programs\Microsoft VS Code, payload_len=5280)
[2026-10-08T04:19:07.114604500+00:00] read-acl-only mode: applying read ACLs
[2026-10-08T04:19:07.146416700+00:00] read ACL run completed
[2026-10-08T04:19:07.993077900+00:00] runtime read/execute validation failed: validate runtime read/execute access on C:\Users\<username>\AppData\Local\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe: open ACL target for root-only update: プロセスはファイルにアクセスできません。別のプロセスが使用中です。 (os error 32)
[2026-10-08T04:19:08.012450700+00:00] setup refresh: processed 2 write roots (read roots delegated); errors=["runtime read/execute validation failed: validate runtime read/execute access on C:\\Users\\<username>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\3dd31cfff853001c\\bin\\node_repl.exe: open ACL target for root-only update: プロセスはファイルにアクセスできません。別のプロセスが使用中です。 (os error 32)"]
[2026-10-08T04:19:08.012522300+00:00] setup refresh completed with errors: ["runtime read/execute validation failed: validate runtime read/execute access on C:\\Users\\<username>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\3dd31cfff853001c\\bin\\node_repl.exe: open ACL target for root-only update: プロセスはファイルにアクセスできません。別のプロセスが使用中です。 (os error 32)"]
[2026-10-08T04:19:08.012569100+00:00] setup error: setup refresh had errors
[2026-10-08 13:19:08.012 codex-windows-sandbox-setup.exe] setup error: setup refresh had errors
[2026-10-08 13:19:08.020 codex.exe] setup refresh: exited with status ExitStatus(ExitStatus(1))

Activity

  1. added
    extension
    on Oct 8, 2026
  2. added
    bug
    windows-os
    sandbox
    tool-calls
    on Oct 8, 2026
  3. lizhi030 commented on Oct 8, 2026

    @lizhi030

    Additional reproduction from Codex Desktop on native Windows (reported with the user's authorization).

    Environment:

    • Running desktop app updater reports version 26.1002.52244, build 13536, prod channel, up_to_date.
    • Windows AppX package reports 26.1002.7124.0 (separate version field).
    • workspace-write; [windows] sandbox = "elevated".
    • Runtime: %LOCALAPPDATA%\OpenAI\Codex\runtimes\cua_node\3dd31cfff853001c\bin\node_repl.exe.
    • Repeated application/computer restarts did not resolve the failure (user report).

    Observed:
    Ordinary exec_command fails before the requested PowerShell command starts:

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

    Matching log excerpt (2026-10-08 22:00:01 UTC+8, user path redacted):

    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: 另一个程序正在使用此文件,进程无法访问。 (os error 32)
    setup refresh completed with errors
    setup error: setup refresh had errors
    setup refresh: exited with status ExitStatus(ExitStatus(1))
    

    Additional diagnostic evidence:

    • Approved execution outside the sandbox succeeds.
    • Existing file ACL grants CodexSandboxUsers ReadAndExecute.
    • node_repl processes were started by the current app session, not just leftovers from before a reboot.
    • A local CreateFileW diagnostic against the running executable, using OPEN_EXISTING and FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, gave:
      • READ_CONTROL (0x20000): success.
      • READ_CONTROL | WRITE_DAC (0x60000): success.
      • GENERIC_READ (0x80000000): success.
      • GENERIC_READ | GENERIC_WRITE (0xC0000000): ERROR_SHARING_VIOLATION (32).
    • Diagnostic handles were immediately closed; no file contents or ACLs were modified.
    • Matching errors were found in local logs on Oct 7 and Oct 8; no matches in the available Oct 1–6 logs.

    Hypothesis only: the helper may request file-data access incompatible with an executable that is already running when it only needs ACL access. The handle probe does not establish the helper's actual implementation or prove the fix. No binary patch, downgrade, or sandbox configuration change has been performed.

  4. queue-taro commented on Nov 9, 2026

    @queue-taro
    Author

    Tested with v26.1007.21434 and confirmed that Get-Location works in PowerShell.

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

    bugextensionsandboxtool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions