Skip to content

Codex Windows App fails to start: app-server websocket closed (code=3221225501) #25600

Description

@zhengqi123456

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

Codex CLI version: 0.135.0-alpha.1 The desktop app fails before I can access the About dialog.

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 25H2 x64

What issue are you seeing?

Codex Windows Desktop App fails immediately after launch.

Error shown by the application:

(code=3221225501, signal=null)

Most recent error:
Codex app-server websocket closed (code=3221225501)

Troubleshooting already performed:

  • Installed Git for Windows

  • Verified:

    • git --version
    • where.exe git
  • Repaired and reinstalled WSL

  • Enabled:

    • VirtualMachinePlatform
    • Windows Subsystem for Linux
  • Installed Ubuntu 24.04 under WSL2

  • Verified:

    • wsl --status
    • wsl -l -v
  • Installed Microsoft Visual C++ Redistributable 2015-2022 x64

  • Cleared and recreated .codex configuration

  • Reinstalled Codex Desktop App

  • Tested Windows sandbox configuration

  • Restarted the machine multiple times

Additional observations:

  • codex.exe runs correctly:

    • codex.exe --version returns:
      codex-cli 0.135.0-alpha.1
  • node.exe runs correctly

  • codex-command-runner.exe starts correctly

  • WSL2 is operational

  • Git is operational

Current result:

Only the Codex Desktop App fails.

The desktop UI always shows:

"Codex app-server websocket closed (code=3221225501)"

This appears similar to issue #23672, but the problem persists after completing all recommended troubleshooting steps.

What steps can reproduce the bug?

  1. Install and launch the Codex Windows Desktop App.
  2. Sign in with my ChatGPT Plus account.
  3. Open Codex / start a new Codex session.
  4. The app attempts to start the local app-server.
  5. The session fails immediately with the following error:
(code=3221225501, signal=null)
Most recent error:
Codex app-server websocket closed (code=3221225501)

### What is the expected behavior?

Codex should start normally in the Windows Desktop App, initialize the app-server successfully, and allow me to begin a Codex session.

The websocket connection between the desktop UI and the app-server should remain open instead of closing immediately with code 3221225501.

### Additional information

Environment and troubleshooting already completed:

- Windows 11 25H2 x64
- ChatGPT Plus subscription
- Codex CLI version: 0.135.0-alpha.1
- Git for Windows installed and verified:
  - `git --version` works
  - `where.exe git` works
- WSL was repaired and is now functional
- VirtualMachinePlatform is enabled
- Windows Subsystem for Linux is enabled
- Ubuntu 24.04 is installed under WSL2
- `wsl --status` works
- `wsl -l -v` works
- Microsoft Visual C++ Redistributable 2015-2022 x64 installed
- `.codex` configuration was cleared/recreated
- Codex Desktop App was reinstalled
- Windows sandbox configuration was tested
- The machine was restarted multiple times

Additional observations:

- `codex.exe --version` works and returns:
  `codex-cli 0.135.0-alpha.1`
- `node.exe` runs correctly
- `codex-command-runner.exe` starts correctly
- The issue only happens in the Codex Windows Desktop App UI.
- The desktop app consistently fails with:
  `Codex app-server websocket closed (code=3221225501)`

This appears similar to issue #23672, but the problem persists after completing all recommended troubleshooting steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingconnectivityIssues involving networking or endpoint connectivity problems (disconnections)windows-osIssues related to Codex on Windows systems

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions