Windows Codex app exits silently after Microsoft Store update scan fails
What version of the Codex App are you using (From “About Codex” dialog)?
26.707.3748.0
What subscription do you have?
ChatGPT Prolite
What platform is your computer?
Microsoft Windows NT 10.0.22631.0 x64
What issue are you seeing?
The Codex Windows desktop app exits unexpectedly during use.
Sometimes the app shows “Update downloading” and exits within 1–2 minutes. At other times, it runs normally for one or two hours without showing the update indicator, then exits silently.
The Codex process disappears completely from Task Manager, but Windows does not record a normal APPCRASH event.
Installed version
OpenAI.Codex 26.707.3748.0
Package:<br>OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0
Reproduction
- Open the Codex Windows desktop app.
- Open a local project and use Codex normally.
- Wait from several minutes to approximately two hours.
- Codex exits and does not restart.
Sometimes “Update downloading” appears before the exit, but not always.
Expected behavior
A failed Microsoft Store update scan should not terminate the running Codex app.
Actual behavior
Codex exits silently and does not restart.
Diagnostics
I monitored codex.exe with Microsoft Sysinternals ProcDump.
ProcDump reported:
Process: codex.exe<br>Process image:<br>C:\\Program Files\\WindowsApps\\OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g0\\app\\resources\\codex.exe
Process Exit Code:<br>0x00000000
This means the process appears to use a normal exit path rather than generating a standard APPCRASH.
One reproduced timeline was:
- 16:05:49 — Background Intelligent Transfer Service was changed from demand start to automatic.
- 16:06:23 — Windows Error Reporting logged StoreAgentScanForUpdatesFailure0 with error 80072efd.
- 16:06:24 — codex.exe exited with code 0x00000000.
- 16:06:25 — the same StoreAgent update failure was archived.
Windows Event Reporting details:
Event name:<br>StoreAgentScanForUpdatesFailure0
P1:<br>Update
P2:<br>80072efd
Windows build:<br>22631
Troubleshooting already attempted
- Repair from Windows Settings
- Reset from Windows Settings
- Uninstall and reinstall from Microsoft Store
- wsreset.exe
- TUN mode enabled and disabled
- UWP loopback exemptions enabled and disabled for Codex and Microsoft Store
- Different proxy providers and nodes
- Microsoft Store automatic update troubleshooting
- Microsoft Store and Codex app reset
- Reinstalling the official OpenAI.Codex package
The problem still reproduces.
The Codex app works correctly on another Windows computer after that computer received a newer update.
Dump file
A full ProcDump file was captured:
codex.exe_260713_160624.dmp
Size:<br>Approximately 484 MB
I have not uploaded the dump publicly because it may contain sensitive process memory, project paths, authentication data, or conversation content. Please provide a secure upload method if the dump is required.
What steps can reproduce the bug?
- Launch the Codex Windows desktop app.
- Open a local project and use Codex normally.
- Leave the app running and continue working for several minutes to approximately two hours.
- Codex exits silently and disappears from Task Manager.
- In some reproductions, “Update downloading” appears shortly before the exit. In other reproductions, no update indicator is shown.
The issue is intermittent, but it has reproduced repeatedly on this computer.
In one captured reproduction:
- 16:05:49 — Background Intelligent Transfer Service changed from demand start to automatic.
- 16:06:23 — Windows Error Reporting logged StoreAgentScanForUpdatesFailure0 with error 80072efd.
- 16:06:24 — ProcDump recorded codex.exe exiting with code 0x00000000.
- 16:06:25 — The same StoreAgent failure was archived.
What is the expected behavior?
Codex should remain open and continue running during normal development work.
A failed Microsoft Store update scan should not terminate the active Codex process.
If an update cannot be downloaded, Codex should continue running and display an actionable error message instead of exiting silently.
Additional information
The Codex CLI continues to work on the same computer.
Repair, Reset, uninstall/reinstall, wsreset.exe, different proxy providers, TUN mode changes, and UWP loopback exemption changes did not resolve the issue.
A full ProcDump was captured:
codex.exe_260713_160624.dmp<br>Approximate size: 484 MB
I have not uploaded the dump publicly because it may contain sensitive process memory, authentication data, project paths, or conversation content. Please provide a secure upload method if the dump is needed.
Possibly related issues are openai/codex#30338 and openai/codex#28236, but this case differs because Codex can usually be reopened and used for a while, and the exit is closely correlated with StoreAgentScanForUpdatesFailure0 (80072efd).
10 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I reviewed #31989. It appears related, especially its Store update lifecycle failure mode, but my captured exit differs:
I am keeping this issue open for now because the exact failure signature is different, but maintainers may merge or close it as a duplicate if they confirm the same root cause.
I found two newer related issues:
They appear to be related to Windows background Microsoft Store update behavior causing the app to exit.
My case has some additional evidence:
This may be another manifestation of the same Store updater lifecycle issue.
ARM64 variant — root cause identified: serialport native module delay-load crash
Windows 11 build 26200 (ARM64), Codex app 26.707.9981.0 arm64 (MSIX). Symptoms match this thread: the app window silently disappears seconds after launch whenever it has network connectivity, with nothing in the app logs (they just cut off mid-stream) and no Windows crash dialog. The backend
codex.exesurvives as an orphaned process each time. The app is fully stable offline — the crash only fires once it connects (e.g. right after launch when online, or when reconnecting Wi-Fi and switching threads).Parsed the Crashpad minidump the app writes to
%LOCALAPPDATA%\Packages\OpenAI.Codex_...\LocalCache\Roaming\Codex\web\Codex\Crashpad\reports:0xc06d007f(VcppException / delay-load: entry point not found), raised inKERNELBASE.dll, identical address across multiple dumps — 100% reproducible.app.asar.unpacked\node_modules\@worklouder\device-kit-oai\node_modules\@worklouder\wl-device-kit\node_modules\serialport\node_modules\@serialport\bindings-cpp\prebuilds\win32-arm64\node.napi.node.codex-micro-hid-event/codex-micro-joystick-event/codex-micro-device-state-changedstrings, so this looks like the device-kit/HID integration.So the win32-arm64 serialport prebuild delay-loads a Windows API that's missing on this OS build, and the failed delay-load takes down the entire Electron main process.
The offline/online behavior suggests the device-kit path is feature-flag gated (the crash consistently follows the "Features enabled" flag fetch after connect), which might allow a server-side mitigation while a fixed build ships. Users can't remove the module locally since it's inside the protected WindowsApps MSIX.
Also observed on the same machine (possibly secondary): after reconnecting, the backend app-server occasionally exits with code=1 during plugin manifest reconciliation, and the desktop app surfaces the last harmless stderr WARN ("ignoring interface.defaultPrompt[0]...") as if it were the fatal error, which makes that error screen misleading.
Happy to share the full minidump privately if useful.
I noticed a related investigation in #33374 identifying a possible device-kit / native module crash path on Windows ARM64.
My machine is x64, but the symptoms are similar:
I captured a ProcDump dump where codex.exe exits with code 0x00000000.
If there is a shared Electron/native module lifecycle issue across architectures, I can provide the dump privately.
I can reproduce a closely related Windows desktop failure with more specific AppX package-registration evidence.
Environment
26.721.4979.026200.8655, 64-bitObserved behavior
After an in-app browser navigation hung, the Codex app disappeared/closed. Microsoft Store then displayed a Restore option for Codex. Reopening/restoring temporarily recovered the app, but the behavior repeated.
The Store package had updated from
26.721.3996.0to26.721.4979.0before the first reproduction.Windows event evidence
Microsoft-Windows-AppXDeploymentServer/Operationalrecorded repeated events at the same times as the app disappearance/restart:RepairAppRegistrationOptionwithForceTargetApplicationShutdownOptionexplorer.exeGet-AppxPackage OpenAI.Codexsubsequently reported package statusOkThere was no Codex shell command that uninstalled the app or deleted its files, and no normal application-crash event was recorded.
This looks like a Store update/package registration or ACL repair loop that force-terminates the active Codex process, rather than a normal app crash. The in-app browser navigation may only be exposing the already-broken registration state.
Expected behavior
A Store update or registration check should not force-close an active Codex session, make the app appear uninstalled, or require restoration through Microsoft Store.
I also submitted the reproduction through Codex in-app feedback and shared the diagnostic session. I am intentionally not posting the session ID, local paths, account details, or full logs publicly; those can be provided through a private channel if maintainers need them.
Follow-up after a full Windows restart: the issue persists, so rebooting does not clear the broken registration state.
Post-reboot timeline:
RegisterByPackageFullNamefor Codex withRepairAppRegistrationOptionandForceTargetApplicationShutdownOption; caller:explorer.exe.svchost.exe,wuauserv) staged and registered the same package again withForceTargetApplicationShutdownOptionandRegisterHighestVersion.explorer.exerepair-registration and Event 649 ACL-repair sequence repeated.The user-facing result remained the same: Microsoft Store showed Restore, and attempting to open a previous Codex conversation caused the app to disappear/require restoration again.
Additional data-integrity checks:
PRAGMA quick_checkreturnedokfor both the Codex state and log databases.This suggests the conversations are not actually deleted; the app/package is being force-terminated or losing registration while the UI is opening/restoring a previous conversation. The registration/ACL loop survives a reboot.
I found a related investigation in #33374.
The reported behavior suggests a possible Windows AppX / Store package registration issue:
My case may be related:
I will check AppXDeploymentServer/Operational logs if the issue reproduces again.
I captured another reproduction on July 28, 2026, and the timing again closely correlates the Codex exit with a Microsoft Store update scan failure.
Timeline:
I did not manually close Codex. The app ran for approximately 2 minutes and 6 seconds before silently exiting.
There were no matching OpenAI.Codex deployment, repair, registration, ForceTargetApplicationShutdownOption, or TerminateApplications events in AppXDeploymentServer/Operational around the exit time.
This is now the second captured reproduction where StoreAgentScanForUpdatesFailure0 occurs at almost exactly the same time that Codex silently exits. Together with the previous ProcDump result showing exit code 0x00000000, this suggests the Codex updater or lifecycle logic may be exiting the app after a failed Store update scan, without successfully relaunching it.
This issue is still reproducible on my Windows PC and is now preventing me from reliably using the Codex desktop app for development.
I captured another clean reproduction:
StoreAgentScanForUpdatesFailure080072efdThis is the second captured reproduction where the Codex exit occurs at essentially the same time as a Microsoft Store update scan failure.
A previous ProcDump capture also showed codex.exe exiting with code
0x00000000, with no standard APPCRASH event.The issue has remained unresolved for more than a month and currently makes the Windows desktop app unreliable for normal development work.
Could a maintainer please confirm whether this is being tracked internally, or whether additional logs / a dump would help?