Codex Windows App fails to start: app-server websocket closed (code=3221225501)
Open 💬 9 comments Opened Jun 1, 2026 by zhengqi123456
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
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?
- Install and launch the Codex Windows Desktop App.
- Sign in with my ChatGPT Plus account.
- Open Codex / start a new Codex session.
- The app attempts to start the local app-server.
- 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.
9 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Same issue!!
Same issue. Any suggestions on how to fix it?
哥们有什么解决方法没有?
我现在只能在其他电脑上跑codex,出问题的那台废了。。。
我卸载了astrill vpn目前问题已经解决
我卸载了atrill vpn目前问题已经解决
Here is solution:https://github.com/openai/codex/issues/23672
Run netsh winsock show catalog | findstr ASProxy — if you see
ASProxy entries, this is your problem.
运行netshwinsock显示目录|findstr ASProxy — 如果您看到
ASProxy条目,这是你的问题。
Run netsh winsock reset in an admin terminal.
在管理终端中运行 netsh Winsock Reset。
Reboot.
重新启动。
Verify ASProxy is gone: netsh winsock show catalog | findstr ASProxy
(should return nothing).
验证 ASProxy 是否已消失:netsh Winsock show Catalog |查找str ASProxy
(应该不返回任何内容)。
Codex now starts normally.
Codex 现在可以正常启动。
To keep it fixed: in Astrill, use the OpenWeb or WireGuard protocol
(these use a virtual adapter and do NOT install the LSP). Avoid the older
proxy mode that reinstalls ASProxy.
要保持它固定:在 Astrill 中,使用 OpenWeb 或 WireGuard 协议
(这些使用虚拟适配器并且不安装 LSP)。避开年龄较大的
重新安装 ASProxy 的代理模式。
You can copy this to ask gpt,and solve it。
I finally found the root cause on my machine.
Environment
Windows 11
ChatGPT Desktop (Microsoft Store)
Astrill VPN
Symptoms
Codex always failed with:
(code=3221225501, signal=null)
Most recent error:
Codex app-server websocket closed
Desktop logs showed that:
codex.exe started successfully
handshake completed
then exited immediately with code 3221225501
Windows Event Viewer showed:
Faulting application: codex.exe
Faulting module: ASProxy64.dll
Company: Astrill
Exception code: 0xc000001d
The root cause was Astrill's LSP (ASProxy64.dll) injecting into codex.exe.
Solution
Astrill has a hidden menu.
Hold Ctrl while opening the Astrill menu and select:
LSP Uninstall
After rebooting:
tasklist /m ASProxy64.dll
returns
INFO: No tasks are running which match the specified criteria.
and Codex starts normally.
I also wrote a complete investigation here:
https://gist.github.com/tegku/ac6d11e634299f7b007b536836e7a043