Skip to content

Windows app 26.616.3309.0: native sandbox setup helper fails with “The specified module could not be found #28982

Closed

Description

@CZH0919

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

26.616.3309.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows x64

What issue are you seeing?

After updating to Codex Windows app 26.616.3309.0, Codex fails when launching the Windows native/elevated sandbox setup helper.

Windows shows an error dialog for:

C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe

The dialog message is:

The specified module could not be found.

In Chinese Windows, this appears as:

找不到指定的模块。

Codex reports the related error:

windows sandbox failed: orchestrator_helper_launch_canceled

ShellExecuteExW failed to launch setup helper: 1223

The issue appears when Codex uses apply_patch, for example when trying to delete a temporary file. Normal PowerShell commands, file reads, Node, Python, and npm tests still work.

I have already tried restarting Codex, restarting Windows, running workspace dependency diagnostics, resetting/reinstalling workspace dependencies, repairing Codex from Windows Settings, and fully uninstalling/reinstalling Codex. The issue still persists.

The executable exists at the path above and appears to have a valid OpenAI signature.

What steps can reproduce the bug?

Feedback ID: no-active-thread-019edc9c-474a-7f12-91ca-94e33521d229

What is the expected behavior?

Codex should be able to launch the Windows native/elevated sandbox setup helper successfully and complete apply_patch operations such as creating, modifying, or deleting files inside the workspace.

The sandbox setup helper should not show a Windows error dialog, and apply_patch should work normally in the current workspace.

Additional information

This started after updating Codex. I have seen another user report showing the same OpenAI.Codex_26.616.3309.0 path and the same codex-windows-sandbox-setup.exe error dialog.

This may be a regression in the latest Codex Windows app related to the Windows native/elevated sandbox setup helper.

I have not switched the sandbox setting to unelevated yet, because I wanted to report the default/native elevated sandbox failure first.

Activity

  1. added
    app
    on Jun 18, 2026
  2. added
    bug
    windows-os
    sandbox
    on Jun 18, 2026
  3. github-actions commented on Jun 18, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. CZH0919 commented on Jun 18, 2026

    @CZH0919
    Author
    Image
  5. CZH0919 commented on Jun 18, 2026

    @CZH0919
    Author

    I found several related Windows sandbox/helper issues: #28278, #24490, #18845, #27125, #28457, #27367. My case appears to be the same subsystem, but the specific difference is that it happens in Codex Windows app 26.616.3309.0 and Windows shows “The specified module could not be found” for the Microsoft Store app path under OpenAI.Codex_26.616.3309.0.

  6. unicbm commented on Jun 19, 2026

    @unicbm

    I can confirm this also reproduces on Codex Windows app 26.616.3767.0.

    Environment:

    • Windows x64, Chinese locale
    • Codex app package path:
      C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3767.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe
    • Config before workaround:
      [windows]
      sandbox = "elevated"

    Observed behavior:

    • Any tool call that needs the Windows sandbox setup path can trigger the dialog.
    • I first noticed it when apply_patch ran.
    • Plain shell commands could also trigger the same popup.
    • Windows dialog message in Chinese:
      找不到指定的模块。
    • This matches the English “The specified module could not be found.”
    • The executable exists at the reported path, so this looks like a launch/load failure in the elevated sandbox setup helper path, not a missing file.

    Workaround that fixed it for me:

    [windows]
    sandbox = "unelevated"

    After fully restarting Codex Desktop, I validated:

    • Get-Location succeeded.
    • Native apply_patch could create/modify a temporary file under work/.
    • Native apply_patch could delete that temporary file.
    • No codex-windows-sandbox-setup.exe dialog appeared.
    • No ShellExecuteExW, orchestrator_helper_launch_canceled, or “specified module could not be found” error appeared.

    So this appears to be specific to the elevated Windows sandbox setup path in the recent Windows app build. The unelevated sandbox path is a working temporary workaround.

  7. CZH0919 commented on Jun 19, 2026

    @CZH0919
    Author

    Update: after updating Codex, this still reproduces on Codex Windows app 26.616.3767.0.

    The Windows dialog now points to:

    C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3767.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe

    The dialog message is still:

    The specified module could not be found.
    Chinese Windows: 找不到指定的模块。

    I retested with a minimal health check in the current workspace:

    • Normal PowerShell commands work.
    • Node works.
    • Python works.
    • Creating and deleting a temporary file with normal PowerShell works.
    • apply_patch can create a temporary file successfully.
    • apply_patch fails when deleting the temporary file.

    The Codex-side error is still:

    windows sandbox failed: orchestrator_helper_launch_canceled:
    ShellExecuteExW failed to launch setup helper: 1223

    So the issue is not fixed in 26.616.3767.0. It still appears specific to the Windows native/elevated sandbox setup helper path. The helper executable appears to exist, but launching/loading it fails.

    Image
  8. CZH0919 commented on Jun 19, 2026

    @CZH0919
    Author

    I also tested the VS Code Codex extension on the same machine.

    VS Code extension:

    • Extension version: [email protected]
    • Bundled codex CLI: codex-cli 0.140.0-alpha.2
    • codex.exe path:
      C:\Users<user>.vscode\extensions\openai.chatgpt-26.609.30741-win32-x64\bin\windows-x86_64\codex.exe

    In the VS Code extension, the same minimal apply_patch create/delete test succeeds:

    • normal shell create/delete succeeds
    • apply_patch create succeeds
    • apply_patch delete succeeds
    • no Windows dialog
    • no codex-windows-sandbox-setup.exe popup
    • no ShellExecuteExW 1223
    • no “The specified module could not be found”

    So the issue appears specific to the Codex Windows Desktop app / Microsoft Store WindowsApps package path, not the general Codex CLI or apply_patch mechanism on this machine.

  9. Batarbin commented on Jun 19, 2026

    @Batarbin

    I have the same issue

    Image
  10. Batarbin commented on Jun 19, 2026

    @Batarbin

    This is crazy:

    Image

    Codex app 26.616.3767.0 on Windows.

    Relevant config:

    • sandbox_mode = "workspace-write"
    • [windows] sandbox = "elevated"
    • No project-local .codex/config.toml override
    • The setup helper exists and has a valid OpenAI signature

    Observed apply_patch behavior:

    • apply_patch can create a file successfully
    • apply_patch fails when deleting the same file

    Exact error from apply_patch delete:

    windows sandbox failed: orchestrator_helper_launch_canceled: ShellExecuteExW failed to launch setup helper: 1223
    

    Sanitized sandbox log excerpt:

    [2026-06-19 09:54:25.886 codex.exe] setup refresh: spawning CODEX_APP_DIR\resources\codex-windows-sandbox-setup.exe (cwd=CODEX_APP_DIR, payload_len=3656)
    [2026-06-19T06:54:25.934107700+00:00] setup refresh: processed 2 write roots (read roots delegated); errors=[]
    [2026-06-19 09:54:25.934 codex-windows-sandbox-setup.exe] setup binary completed
    [2026-06-19 09:54:25.940 codex.exe] helper copy: validating command-runner source=CODEX_APP_DIR\resources\codex-command-runner.exe destination=CODEX_HOME\.sandbox-bin\codex-command-runner-0.142.0-alpha.1.exe
    [2026-06-19 09:54:25.942 codex.exe] helper copy: recopied command-runner source=CODEX_APP_DIR\resources\codex-command-runner.exe destination=CODEX_HOME\.sandbox-bin\codex-command-runner-0.142.0-alpha.1.exe
    [2026-06-19 09:54:25.943 codex.exe] helper launch resolution: using copied command-runner path CODEX_HOME\.sandbox-bin\codex-command-runner-0.142.0-alpha.1.exe
    [2026-06-19 12:17:24.353 codex.exe] setup refresh: spawning CODEX_APP_DIR\resources\codex-windows-sandbox-setup.exe (cwd=CODEX_APP_DIR, payload_len=3448)
    [2026-06-19T09:17:24.377898200+00:00] setup refresh: processed 2 write roots (read roots delegated); errors=[]
    [2026-06-19 12:17:24.377 codex-windows-sandbox-setup.exe] setup binary completed
    [2026-06-19 12:17:24.382 codex.exe] helper copy: using in-memory cache for command-runner -> CODEX_HOME\.sandbox-bin\codex-command-runner-0.142.0-alpha.1.exe
    [2026-06-19 12:17:24.382 codex.exe] helper launch resolution: using copied command-runner path CODEX_HOME\.sandbox-bin\codex-command-runner-0.142.0-alpha.1.exe
    [2026-06-19 12:19:27.650 codex.exe] setup refresh: spawning CODEX_APP_DIR\resources\codex-windows-sandbox-setup.exe (cwd=CODEX_APP_DIR, payload_len=3448)
    [2026-06-19T09:19:27.677588200+00:00] setup refresh: processed 2 write roots (read roots delegated); errors=[]
    [2026-06-19 12:19:27.677 codex-windows-sandbox-setup.exe] setup binary completed
    

    Important note:
    The sandbox log repeatedly shows setup helper completion with errors=[], but apply_patch still fails with ShellExecuteExW failed to launch setup helper: 1223.

  11. CZH0919 commented on Jun 19, 2026

    @CZH0919
    Author

    This is really bad. Open AI should fix this problem immediately.

  12. CZH0919 commented on Jun 19, 2026

    @CZH0919
    Author

    Update after installing Codex Windows app 26.616.4196.0:The issue still reproduces on my machine.

    • Normal PowerShell file create/read/delete in the workspace works correctly.
    • apply_patch can create a temporary file successfully.
    • apply_patch fails when deleting the same file.
    • The failure is still:

    windows sandbox failed: orchestrator_helper_launch_canceled:
    ShellExecuteExW failed to launch setup helper: 1223

    Temporary test files were cleaned up successfully using normal PowerShell.

    Image
  13. ltxhhz commented on Jun 19, 2026

    @ltxhhz

    I am using the VSCode Codex plugin, and I have the same issue.
    dialog:
    [Window Title]
    c:\Users\ltxhhz.vscode\extensions\openai.chatgpt-26.616.31447-win32-x64\bin\windows-x86_64\codex-windows-sandbox-setup.exe

    [Content]
    c:\Users\ltxhhz.vscode\extensions\openai.chatgpt-26.616.31447-win32-x64\bin\windows-x86_64\codex-windows-sandbox-setup.exe

    找不到指定的模块。(The specified module could not be found.)

    [确定]

    I have already tried reloading and reinstalling the plugin. It still doesn't work.

  14. 9 remaining items

  15. ID-jasmine commented on Jun 21, 2026

    @ID-jasmine

    Hi, just wondering if you're a developer from China—I've noticed this issue mostly occurs among Chinese users.

    My codex (US/english) is having issues with using apply_patch, so it's not China only

    Thank you for your response. I asked whether you are a Chinese developer because Chinese users often configure the .env file to specify ports, and during my current troubleshooting, I've found that this issue might be the cause of the bug.

    I deleted the .env file under ~/.codex, and the issue was fixed.apply_patch works again.thank you

  16. houkaiyao commented on Jun 21, 2026

    @houkaiyao

    2026 06 21 china user
    Codex在执行任务时发生报错(C:\ProgramFiles\WindowsApps\OpenAI.Codex_26.616.663...\codex-windows-sandbox-setup.exe COM+ 注册表数据库检测到一个系统错误)
    .env设置了7890端口代理规则。是否与此有关?有没有了解真实状况的告知解决办法及原因。

  17. CZH0919 commented on Jun 21, 2026

    @CZH0919
    Author

    2026 06 21 china user Codex在执行任务时发生报错(C:\ProgramFiles\WindowsApps\OpenAI.Codex_26.616.663...\codex-windows-sandbox-setup.exe COM+ 注册表数据库检测到一个系统错误) .env设置了7890端口代理规则。是否与此有关?有没有了解真实状况的告知解决办法及原因。

    (1)Enable TUN (such as Clash) mode so that network traffic is handled at the system routing layer.
    (2)Comment out HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, WS_PROXY, WSS_PROXY, NO_PROXY in Codex user directory's .env.
    (3)Clear proxy_ports in sandbox state, setting it to [].
    (4)Restore [windows] sandbox = "elevated" — do not rely on unelevated long-term.
    (5)If PowerShell shows shell snapshot errors, add shell_snapshot=false under [features].

  18. CZH0919 commented on Jun 21, 2026

    @CZH0919
    Author

    我也遇到了这个问题,还没办法解决

    (1)Enable TUN (such as Clash) mode so that network traffic is handled at the system routing layer.
    (2)Comment out HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, WS_PROXY, WSS_PROXY, NO_PROXY in Codex user directory's .env.
    (3)Clear proxy_ports in sandbox state, setting it to [].
    (4)Restore [windows] sandbox = "elevated" — do not rely on unelevated long-term.
    (5)If PowerShell shows shell snapshot errors, add shell_snapshot=false under [features].

  19. houkaiyao commented on Jun 21, 2026

    @houkaiyao

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

    26.616.3309.0

    What subscription do you have?

    ChatGPT Plus

    What platform is your computer?

    Windows x64

    What issue are you seeing?

    After updating to Codex Windows app 26.616.3309.0, Codex fails when launching the Windows native/elevated sandbox setup helper.

    Windows shows an error dialog for:

    C:\Program Files\WindowsApps\OpenAI.Codex_26.616.3309.0_x64__2p2nqsd0c76g0\app\resources\codex-windows-sandbox-setup.exe

    The dialog message is:

    The specified module could not be found.

    In Chinese Windows, this appears as:

    找不到指定的模块。

    Codex reports the related error:

    windows sandbox failed: orchestrator_helper_launch_canceled

    ShellExecuteExW failed to launch setup helper: 1223

    The issue appears when Codex uses apply_patch, for example when trying to delete a temporary file. Normal PowerShell commands, file reads, Node, Python, and npm tests still work.

    I have already tried restarting Codex, restarting Windows, running workspace dependency diagnostics, resetting/reinstalling workspace dependencies, repairing Codex from Windows Settings, and fully uninstalling/reinstalling Codex. The issue still persists.

    The executable exists at the path above and appears to have a valid OpenAI signature.

    What steps can reproduce the bug?

    Feedback ID: no-active-thread-019edc9c-474a-7f12-91ca-94e33521d229

    What is the expected behavior?

    Codex should be able to launch the Windows native/elevated sandbox setup helper successfully and complete apply_patch operations such as creating, modifying, or deleting files inside the workspace.

    The sandbox setup helper should not show a Windows error dialog, and apply_patch should work normally in the current workspace.

    Additional information

    This started after updating Codex. I have seen another user report showing the same OpenAI.Codex_26.616.3309.0 path and the same codex-windows-sandbox-setup.exe error dialog.

    This may be a regression in the latest Codex Windows app related to the Windows native/elevated sandbox setup helper.

    I have not switched the sandbox setting to unelevated yet, because I wanted to report the default/native elevated sandbox failure first.

    Config.toml设置以下
    model_provider = "openai_http"

    [model_providers.openai_http]
    name = "OpenAI HTTP only"
    wire_api = "responses"
    requires_openai_auth = true
    supports_websockets = false

    [windows]
    sandbox = "unelevated" # 将此行从 "elevated" 改为 "unelevated"

  20. Believer-xh commented on Jun 21, 2026

    @Believer-xh
    Image 我也遇到了同样的问题
  21. JJjyJJ7F3 commented on Jun 21, 2026

    @JJjyJJ7F3

    @codex Please fix this bug!

  22. slimshaco commented on Jun 22, 2026

    @slimshaco

    我遇到了同样的问题

  23. ID-jasmine commented on Jun 23, 2026

    @ID-jasmine

    我遇到了同样的问题

    上面有人发解决办法了,我是把.env删了,然后清除沙盒状态下的proxy_ports残留,就好了。

  24. JJjyJJ7F3 commented on Jun 23, 2026

    @JJjyJJ7F3

    我遇到了同样的问题

    上面有人发解决办法了,我是把.env删了,然后清除沙盒状态下的proxy_ports残留,就好了。

    我也这么做了,但可能是我在使用代理的缘故,还是会有同样的问题出现

  25. yanyuwei123 commented on Jun 23, 2026

    @yanyuwei123
  26. JJjyJJ7F3 commented on Jun 24, 2026

    @JJjyJJ7F3

    把配置文件中沙盒改为un开头的就好了
    ---- Replied Message ----
    @.>Date06/23/2026 11:21 @.> CcYuwei @.>,
    @.
    >SubjectRe: [openai/codex] Windows app 26.616.3309.0: native sandbox setup helper fails with “The specified module could not be found (Issue #28982)
    JJjyJJ7F3 left a comment (openai/codex#28982)
    我遇到了同样的问题
    上面有人发解决办法了,我是把.env删了,然后清除沙盒状态下的proxy_ports残留,就好了。
    我也这么做了,但可能是我在使用代理的缘故,还是会有同样的问题出现
    —
    Reply to this email directly, view it on GitHub, or unsubscribe.
    You are receiving this because you commented.Message ID: @.***>

    这个我是知道的,不过看官方推荐用 sandbox = "elevated",所以就去没改

  27. Norlandz commented on Jul 11, 2026

    @Norlandz

    so my solution is:

    revert the codex extension version to

    C:\Users\nshln\.vscode\extensions\openai.chatgpt-26.519.32039-win32-x64
    

    dont use

    C:\Users\nshln\.vscode\extensions\openai.chatgpt-26.616.31447-win32-x64
    C:\Users\nshln\.vscode\extensions\openai.chatgpt-26.616.32156-win32-x64
    

    #28982 (comment)


    is this problem fixed?

    For vscode extension

    Installation
    Identifier
    openai.chatgpt
    Version
    26.707.31428

    I dont see the problem anymore?

    I dont think i used any workaround like sandbox = "elevated".

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