Codex Desktop closes immediately after launch on Windows
Open 💬 6 comments Opened Apr 2, 2026 by woeowiegj
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Title: Codex Desktop closes immediately after launch on Windows
Environment:
- Windows 10 Home (build 26200.8117)
- Codex Version: 26.325.3894.0 (tested also 26.325.2171, 26.313.5234)
- Platform: x64
- WSL: Not installed
- Installation: Microsoft Store + Uptodown (both tested)
Steps to Reproduce:
- Launch Codex from Start menu or Microsoft Store
- App window appears
- After 2-3 seconds, window closes automatically
What I've verified:
- Changed
sandbox = "elevated"→"unelevated"→ no effect - Disabled all MCP servers in config.toml - no effect
- Ran as Administrator - no effect
- Tested with empty workspace - still crashes
- WSL is not installed (not the WSL-no-distro bug)
- CLI version works perfectly (0.118.0)
- Tested multiple Codex versions - all crash
Error logs:
sandbox.logshows repeated ACL permission failures onWindowsAppspath- Event Viewer shows no crash events
- No application-level crash dumps found
What works:
- Codex CLI (
npm install -g @openai/codex) works fine
This matches known issues:
- GitHub #16269: Opens then closes on Windows
- GitHub #15179: Store app crashes with ACL errors on WindowsApps path
Requested help:
Looking for any workaround or hoping this is a known issue with a fix coming.
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I posted in a related issue that it had something to do with my git repo. In my case I wasn't really using git so I just deleted the .git folder and Codex started working again.
Another detailed datapoint on this from a different Windows machine. This looks close to #16502, and it may also overlap with #16834 because I see MCP
-32601warnings during startup, but I have not proven those warnings are the root cause.Environment
OpenAI.Codex_26.325.3894.0_x64__2p2nqsd0c76g0app_server.client_version="26.325.31654"Clean repro
I can reproduce this from a clean launch with no interaction:
``
powershell
``Start-Process explorer.exe 'shell:AppsFolder\\OpenAI.Codex_2p2nqsd0c76g0!App'
I reproduced this twice today. One run exited at about 46 seconds; the clean rerun exited at about 55 seconds.
What Windows reports
Microsoft-Windows-TWinUI/Operational1621Activation of app OpenAI.Codex_2p2nqsd0c76g0!App attempted ... The operation completed successfully.Application ErrorWindows Error ReportingSo on this machine it does not look like a normal native faulting-module crash. It looks more like a controlled teardown / lifecycle exit after startup.
Last strong internal signals before exit
From
C:\Users\T-GAMER\\.codex\\logs_1.sqlite, for the packaged desktop app-server process (...\\app\\resources\\codex.exe app-server), the last notable signals before teardown were:Important caveat: I am not claiming the
403plugin sync or MCPMethod not foundwarnings are definitely the root cause. I am only reporting that they are the last strong app-internal signals I could correlate before the process tree disappears.Control case: direct binary launch stays alive
If I launch the binary directly instead of going through the packaged AppX entry, it stays up and behaves normally for at least 2+ minutes:
In that direct-launch mode:
That makes me suspect the failure is specific to the packaged Windows Store / AppX launch/lifecycle path rather than the
Codex.exebinary itself.Older history on this machine
Reliability Monitor on this same machine also contains older Codex hangs:
Codex.exeversion908.0.0.0,Application Hang (1002)Codex.exeversion993.0.0.0,Application Hang (1002)Those are not the same repro as today, but they may indicate a broader Windows desktop stability problem in this line of builds.
If useful, I can also provide the exact PowerShell polling loop I used to time the exit and the exact sqlite query I used to isolate the app-server log rows.
Possible related issue: #16834.
On my machine, the packaged Windows desktop app also emits MCP
-32601 Method not foundwarnings during startup (openaiDeveloperDocs,vercel) before the app tears itself down around 46-55 seconds after launch. I also see startup-time403 Forbiddenresponses onplugins/listandplugins/featured.I have not proven those warnings are the root cause here, but there is enough overlap that these may be the same startup/lifecycle bug or two adjacent failure modes in the same path.
I also encountered automatic exit without any valid information. But after reinstalling, it can run stably for a period of time, but once I exit, it will automatically exit, and I can only continue reinstalling
that solved it for me. It ran all day without closing. Just started it from that exe via double click. I hate Windows Store apps btw.
I have certain things concerning windows update blocked in my firewall, that maybe the issue. But looking at the issues here, it probably wasn't.