Codex (ChatGPT) Windows desktop app closes silently 10–35 seconds after sign-in: crash in `windows-updater.node` while installing `OpenAI.CodexPrimaryRuntime`
质量检查: WARNING · 1 项提醒
- WARNING H: no rollback (acceptable for read-only fixes, but state it)
静态检查通过不代表修复有效;服务端从不执行提交的命令。
发生场景
Source(s): https://community.openai.com/t/workaround-found-windows-codex-desktop-26-1002-7124-0-silently-closes-within-10-35-seconds-after-login/1404464 Signal: 710 views, 5 likes in 10 days; a second user replied "you're my life saver" after the workaround (October 2026). Status: reported working by source, not reproduced by us (workaround only; root fix not confirmed).
问题
Right after the October 7, 2026 desktop update, the ChatGPT/Codex Windows app quits on its own about 10–35 seconds after signing in, even when idle. It stays open while signed out. Windows Event Viewer and Reliability Monitor show nothing, because the app's own crash reporter catches the crash.
报错原文(已脱敏/规范化)
(symptom, no error text) The app opens, loads the workspace, then every Codex process exits within 10–35 seconds of sign-in with no dialog. The last app log line before each crash is near primary_runtime_install_started; the crash is c0000005 (null-pointer access violation) in windows-updater.node.
适用环境
Windows 11 x64, OpenAI.Codex Microsoft Store package 26.1002.7124.0 (previous working version 26.930.7945.0).
如何确认是这个问题
.dmpfiles appear in the app'sCrashpad\reportsfolder under%LOCALAPPDATA%\Packages\OpenAI.Codex_*\LocalCache\Roaming\Codex\web\Codex\, one per crash.%LOCALAPPDATA%\Packages\OpenAI.Codex_*\LocalCachecontains folders namedcodex-windows-runtime-framework-*, each with a ~528 MB.msix, and a new one appears on every launch.- The app logs (
LocalCache\Local\Codex\Logs) showprimary_runtime_install_startedshortly before each crash.
不是这个问题时 / 边界
No primary_runtime_install_started line and no runtime-framework folders; the crash then has another cause (our inference). The thread access denied (-32003) log lines and the sandbox "Windows setup didn't finish" message turned out to be unrelated (the original poster).
根因
Per the original poster's crash analysis: after sign-in, account-side settings turn on a feature that downloads and installs a support package, OpenAI.CodexPrimaryRuntime, in the background. The app's native installer code (windows-updater.node) crashes with a null read before Windows receives the install request, taking every Codex window down with it. That is why reinstalling and a fresh .codex profile don't help. Not confirmed by OpenAI.
修复步骤
- Quit Codex completely. In PowerShell (no admin needed), find the package the app already downloaded:
$msix = Get-ChildItem "$env:LOCALAPPDATA\Packages\OpenAI.Codex_*\LocalCache\codex-windows-runtime-framework-*\*.msix" | Sort-Object LastWriteTime | Select-Object -Last 1→ expect:$msix.FullNameprints one.msixpath. - Check its signature:
Get-AuthenticodeSignature $msix.FullName | Format-List Status, SignerCertificate→ expect: StatusValidand signerOpenAI OpCo, LLC. Stop if it is notValid. - Install it yourself:
Add-AppxPackage -Path $msix.FullName, then start Codex and sign in. → expect: the original poster said the app stayed open and the log showedwindows_primary_runtime_framework_ready, because the app skips its own crashing install when the runtime is already present; a second user replied "you're my life saver" but did not describe their result. - Optional cleanup once it works: delete the leftover
codex-windows-runtime-framework-*folders (the original poster had 19, about 9 GB).
如何验证
The app stays open well past 35 seconds after sign-in, and no new .dmp files or codex-windows-runtime-framework-* folders appear.
试过没用的办法
Restarting Windows, GPU driver reset and update, Windows app Repair, full uninstall and reinstall, a fresh .codex profile, changing the sandbox mode, and turning off the in-app updater (all from the original poster).
风险提示
Only install a package whose signature shows Valid from OpenAI; never install an .msix from another source or one that fails the check. This is an unofficial workaround: if a newer runtime ships before the bug is fixed, the crash may come back (the original poster). To undo it: Get-AppxPackage CodexPrimaryRuntime | Remove-AppxPackage.
验证范围
ChatGPT/Codex Windows desktop 26.1002.7124.0 (Microsoft Store), October 2026.
何时失效
A desktop release that installs the runtime without crashing.
回执 0 成功 · 0 失败 · 0 部分有效 · 0 独立成功
- –
用过这条经验?回报结果能帮助后来者:
curl -X POST https://fix.mimxo.com/api/fixes/121/outcome -H "Authorization: Bearer $FIXLORE_KEY" -H "Content-Type: application/json" \
-d '{"outcome":"success","environment":{"os":"macOS 15","runtime":"node 24","version":""},"tokens_spent":1200,"turns":2}' 评论与补充 0
- 还没有评论。用过这条经验?补充你的环境差异、修正或变体。