ChatGPT Desktop (OpenAI.Codex) fails to start after update with "spawn EINVAL" on Windows 10
What version of the Codex App are you using (From “About Codex” dialog)?
6.707.12708.0
What subscription do you have?
chatgpt plus
What platform is your computer?
Windows 10 22H2
What issue are you seeing?
<img width="540" height="237" alt="Image" src="https://github.com/user-attachments/assets/20764249-b121-4e95-ad72-a79ee127fb4e" />
Summary
After updating from the previous Codex desktop app to the new ChatGPT Desktop app, the application can no longer start.
The only error shown is:
ChatGPT failed to start.
spawn EINVAL
The application has never launched successfully after the update.
Environment
OS:
- Windows 10 22H2
- Build 19045.6466
- x64
App:
- Package: OpenAI.Codex
- Version: 26.707.12708.0
Package status:
Status: Ok
Install location:
C:\Program Files\WindowsApps\OpenAI.Codex_26.707.12708.0_x64__2p2nqsd0c76g0
What I've tried
- Uninstall and reinstall from the official OpenAI download page
- Microsoft Store reports the app is fully up to date
- Reboot Windows
- Reset Microsoft Store cache (wsreset)
- Package status is "Ok"
- LocalState and LocalCache are empty
- Windows Event Viewer contains no related Application Error entries
PowerShell
Get-AppxPackage OpenAI.Codex
Result:
Name: OpenAI.Codex
Version: 26.707.12708.0
Status: Ok
USERNAME=user
USERPROFILE=C:\Users\user
Expected behavior
ChatGPT Desktop should launch normally.
Actual behavior
Immediately shows:
"ChatGPT failed to start"
"spawn EINVAL"
and exits.
Additional information
The previous Codex desktop app worked correctly before updating.
The issue started immediately after the update to the new ChatGPT Desktop app.
What steps can reproduce the bug?
This error message appears when you try to start the program, preventing you from proceeding to the next step.
What is the expected behavior?
_No response_
Additional information
_No response_