Skip to content

Windows Remote SSH - bundled codex 0.142.0-alpha.6 fails with sandbox timeout, 0.140.0 works #29253

Open

Description

@RODAS-TI

What version of the IDE extension are you using?

OpenAI ChatGPT extension 26.616.41845

What subscription do you have?

PLUS

Which IDE are you using?

vs code

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Environment:

  • VS Code Remote SSH
  • Remote host: Windows 11 Pro
  • OpenAI ChatGPT extension 26.616.41845
  • Bundled Codex version: 0.142.0-alpha.6
  • Standalone Codex version: 0.140.0
  • Subscription: ChatGPT Plus

Problem:

The bundled Codex binary shipped with the VS Code extension fails to execute sandboxed commands on a Windows Remote SSH environment.

The issue causes:

  • apply_patch failures
  • file editing failures
  • command execution failures
  • excessive fallback behavior using PowerShell scripts

The error consistently appears as:

windows sandbox failed: timed out after 15000ms connecting runner pipe-in

The failure occurs even for very small operations such as:

codex sandbox pwsh -NoProfile -Command Get-Location

or attempting a trivial apply_patch modification.

Important finding:

The issue is not related to permissions, project size, Git status, file size, or workspace configuration.

I isolated the problem to the bundled Codex executable included with the extension.

Bundled binary:

C:\Users\Addiel.vscode-server\extensions\openai.chatgpt-26.616.41845-win32-x64\bin\windows-x86_64\codex.exe

Version:

codex-cli 0.142.0-alpha.6

Running:

codex sandbox pwsh -NoProfile -Command Get-Location

produces:

windows sandbox failed: timed out after 15000ms connecting runner pipe-in

Workaround:

Replacing the bundled codex.exe with a standalone Codex CLI 0.140.0 installation immediately fixes:

  • apply_patch
  • sandbox execution
  • file editing
  • command execution

The same machine, same user account, same workspace, same project and same SSH session work correctly with Codex CLI 0.140.0.

What steps can reproduce the bug?

  1. Install the OpenAI ChatGPT extension version 26.616.41845.

  2. Connect to a Windows machine through VS Code Remote SSH.

  3. Open any workspace.

  4. Use the bundled Codex binary shipped with the extension:

C:\Users.vscode-server\extensions\openai.chatgpt-26.616.41845-win32-x64\bin\windows-x86_64\codex.exe

  1. Run:

codex sandbox pwsh -NoProfile -Command Get-Location

  1. Observe the failure:

windows sandbox failed: timed out after 15000ms connecting runner pipe-in

  1. Open a Codex chat in VS Code and request a small apply_patch change (for example adding a comment to an existing file).

  2. Observe that apply_patch fails and Codex falls back to alternative editing approaches.

  3. Replace the bundled codex.exe with Codex CLI 0.140.0.

  4. Repeat steps 5-8.

  5. Observe that sandbox execution and apply_patch work normally.

What is the expected behavior?

The bundled Codex binary should execute sandboxed commands successfully in a Windows Remote SSH environment.

Commands such as:

codex sandbox pwsh -NoProfile -Command Get-Location

should complete successfully.

apply_patch should be able to edit existing files without timing out or requiring PowerShell-based workarounds.

The bundled binary should behave consistently with the standalone Codex CLI installation on the same machine.

Additional information

Additional observations:

  • The standalone Codex CLI 0.140.0 works correctly on the same machine.
  • The bundled extension binary reports version 0.142.0-alpha.6.
  • The issue reproduces on existing files and small files.
  • The issue is not specific to Laravel.
  • The issue occurs even when testing with routes files containing only a few lines.
  • Codex Doctor reports no critical failures.
  • The sandbox timeout occurs before the command is executed.

Activity

  1. added
    extension
    on Jun 20, 2026
  2. added
    bug
    windows-os
    sandbox
    on Jun 20, 2026
  3. Necmttn commented on Jun 21, 2026

    @Necmttn

    Remote SSH sandbox startup needs runner-pipe diagnostics. Capture bundled codex version, remote OS, sandbox policy, runner pid, pipe path, connect deadline, first stderr/stdout, and timeout phase. A compatibility test comparing 0.140.0 vs 0.142.0-alpha.6 on Windows Remote SSH would pin whether this is sandbox metadata, pipe creation, or process launch.


    Generated with ax.

  4. RODAS-TI commented on Jun 22, 2026

    @RODAS-TI
    Author

    Thanks. I was able to isolate the issue further.

    Environment:

    • VS Code Remote SSH
    • Windows 11 Pro remote host
    • Same user account
    • Same workspace
    • Same project

    Comparison:

    Bundled extension binary:

    • Version: 0.142.0-alpha.6
    • Command:
      codex sandbox pwsh -NoProfile -Command Get-Location
    • Result:
      windows sandbox failed: timed out after 15000ms connecting runner pipe-in

    Standalone CLI:

    • Version: 0.140.0
    • Same command
    • Works correctly

    Additional finding:

    Replacing the bundled extension codex.exe with the standalone 0.140.0 binary immediately restores:

    • apply_patch
    • sandbox execution
    • file editing

    This suggests a regression in the bundled 0.142.0-alpha.6 Windows sandbox runner rather than a workspace, permission, or project issue.
    After replacing the bundled binary and confirming sandbox works, opening/using the VS Code extension can leave the Windows sandbox runner stuck again until a full remote Windows reboot.

    If there are specific diagnostics I should collect (runner pipe path, startup logs, sandbox trace, etc.), I can provide them.

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

    bugextensionremotesandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions