New chatGPT (Codex) desktop app opens, then exits on Windows ARM64 Surface
Resolved 💬 8 comments Opened Jul 15, 2026 by PCI-Statmonkey Closed Aug 6, 2026
💡 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)?
OpenAI.Codex_26.707.9981.0_arm64__2p2nqsd0c76g0
What subscription do you have?
Pro
What platform is your computer?
Microsoft Surface, Windows ARM64
What issue are you seeing?
Behavior:
The Codex desktop app opens briefly, then closes approximately 8 seconds later.
What steps can reproduce the bug?
opening it... instantly closes
What is the expected behavior?
that it would stay open and work :P
Additional information
Troubleshooting already completed:
- Repair
- Reset
- Uninstall/reinstall
- Restart
- Fresh sign-in
- Renamed .codex folder
- Run as administrator
Results:
- ChatGPT Classic works normally
- Windows AppModel Runtime reports successful process creation
- Process created: app\ChatGPT.exe
- App container is destroyed several seconds later
- No Application Error
- No Reliability Monitor failure
- No exception code
- No failed activation event
Impact:
I cannot access my local Concordance project through the desktop Codex interface.
8 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
fix it
I can reproduce this on Windows 11 ARM64 with the same app version, OpenAI.Codex_26.707.9981.0_arm64.
My ProcDump trace shows the process exits with code 0x00000000 rather than crashing.
The desktop log contains:
primary_runtime_update_poll_failed
Failed to download primary runtime manifest (404 Not Found)
The runtime configuration lists windows-x86_64 but no windows-arm64 entry.
I just downloaded the latest version, and the program no longer crashes. The problem is resolved. Thank you!
Possible workaround (worked for me on ARM64)
I wanted to share what finally resolved this for me in case it helps someone else.
Environment
Surface Pro 11 (Snapdragon X Elite)
Windows 11 Insider Beta 26220.8764 (ARM64)
Microsoft Store version of ChatGPT
Existing Codex installation migrated to ChatGPT
Symptoms
Codex worked previously.
After the migration to ChatGPT, the app would either:
display the "What's New"/onboarding screen for a few seconds and exit, or
exit immediately after launch.
Browser ChatGPT worked normally.
During troubleshooting I also noticed Microsoft Store crashing, although I'm not certain whether that was related.
What finally fixed it
A normal uninstall/reinstall was not enough.
The important difference was completely removing all remaining user data.
I manually deleted every remaining OpenAI/Codex folder I could find, including:
%USERPROFILE%\.codex
%USERPROFILE%\.cache
%USERPROFILE%\.agents
%LOCALAPPDATA%\OpenAI
Any remaining OpenAI/Codex folders under %LOCALAPPDATA%
Any remaining OpenAI package data I could locate
Only after removing all of the above did I reinstall ChatGPT.
The key observation
Every previous reinstall preserved my login and immediately returned to the existing state.
After deleting all remaining folders, ChatGPT behaved like a completely fresh installation:
prompted me to sign in again
displayed the full first-run onboarding
requested Windows integration permissions
completed setup successfully
now launches normally
This makes me suspect that some migration/profile state survives uninstall and can prevent the new ChatGPT desktop app from starting correctly.
I can't say with certainty which folder contained the problematic state, but removing all remaining OpenAI/Codex user data before reinstalling resolved the issue for me.
I’m seeing the same issue on a Microsoft Surface Pro running Windows ARM64.
Package:
After updating, ChatGPT Desktop immediately shows:
ChatGPT failed to start.
spawn EINVAL
The application cannot be opened at all. This also appears related to #33583,
which reports the exact same "spawn EINVAL" startup error.
Follow-up: I found a working workaround for my Surface Pro / Windows ARM64 case.
Environment:
OpenAI.Codex 26.727.6591.0 ARM64ChatGPT failed to start/spawn EINVALThe profile-cleanup workaround above did not fix it by itself. A full uninstall/reinstall still produced
spawn EINVAL.What finally worked was making the Desktop app use the official standalone ARM64 Codex CLI:
The installer detected Windows ARM64 and installed
codex-cli 0.146.0. I also removed the old npm-managed Codex when prompted to avoid PATH ambiguity.CODEX_CLI_PATHfor the current user:After reboot, the ChatGPT/Codex Desktop app launched normally.
Important note about local history:
I had previously renamed
C:\Users\<user>\.codexwhile troubleshooting, so the app initially opened with an empty history. The history was not deleted; it was still in the backup folder. To restore it safely, I closed the Desktop app, preserved the newly installed.codex\packagesdirectory, restored my original.codexfolder, and then put the newpackagesdirectory back into it. The Desktop app still launched, and all previous Codex history returned.I did not restore the old
%LOCALAPPDATA%\OpenAIorOpenAI.Codex_2p2nqsd0c76g0package-data backups.So, in my case, the effective workaround was:
CODEX_CLI_PATHto it,.codexuser data while preserving the new standalonepackagesdirectory.This looks like the Desktop package's bundled runtime/launcher path is the problem rather than the account or repository data.
how?