[Windows][26.818.5229.0] Codex Desktop silently exits during normal work; no WER/crash event; reboot temporarily fixes it

Open 💬 5 comments Opened Aug 25, 2026 by mikkinels322
💡 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)?

26.818.5229.0

What subscription do you have?

ChatGPT subscription

What platform is your computer?

Windows 10 Pro, 10.0.19045, x64

Hardware:

  • Intel Core i5-13400F
  • 32 GB RAM
  • NVIDIA GeForce RTX 5060 Ti
  • NVIDIA driver 32.0.16.1088

What issue are you seeing?

Codex Desktop for Windows periodically exits completely during normal coding work without showing any error.

The window simply disappears. I have observed two variants:

  1. Sometimes ChatGPT/Codex background processes remain alive after the window disappears.
  2. Other times all ChatGPT.exe and codex.exe processes terminate completely.

In the second case, Windows does not record an Application Error, Application Hang, Windows Error Reporting event, relevant GPU/display-driver error, or crash dump.

A particularly problematic state sometimes follows the first silent exit: launching Codex again causes it to open and silently terminate again within a few seconds. This can repeat on every launch. Rebooting Windows consistently restores normal operation temporarily.

One recent clean reproduction:

  • Windows reboot: ~13:02 local time
  • Codex worked normally for ~37 minutes
  • Silent exit: ~13:39
  • ChatGPT.exe processes after exit: 0
  • codex.exe processes after exit: 0
  • Windows Application Error / WER events: none
  • Relevant Display / NVIDIA GPU errors: none
  • RAM at failure: ~15 GB free out of 32 GB

This occurs during normal agentic coding work involving local file edits, tests, PowerShell commands, and project operations.

What steps can reproduce the bug?

The exact trigger is not deterministic, but the recurring pattern is:

  1. Reboot Windows.
  2. Start Codex Desktop.
  3. Open an existing local project/thread.
  4. Work normally for some time with file edits/tests/tools.
  5. Codex window suddenly disappears with no error dialog.
  6. Sometimes background processes remain; other times all ChatGPT/Codex processes terminate.
  7. Relaunch Codex.
  8. In some cases it now exits again within a few seconds on every launch.
  9. Reboot Windows.
  10. Codex works normally again temporarily.

What is the expected behavior?

Codex Desktop should remain running during normal coding work.

If a fatal internal error occurs, it should generate a crash report/dump, log the reason for shutdown, or display a recoverable error. It should not silently terminate with no Windows crash event and then repeatedly terminate on subsequent launches until Windows is rebooted.

Troubleshooting already performed

I tested the following without eliminating the silent exits:

  • clean Windows reboot
  • reinstall/update of Codex previously
  • sandbox = "elevated"
  • sandbox = "unelevated"
  • recreating bundled plugin marketplace caches
  • recreating plugins/cache
  • disabling the bundled Browser plugin
  • restoring the original configuration afterward
  • reducing an abnormally large .codex session store

Rebooting Windows remains the only reliable temporary recovery once Codex enters the state where it exits a few seconds after every launch.

Separate session/compaction issue discovered during debugging

During diagnosis I also found a separate serious local-session growth issue.

Previously %USERPROFILE%\.codex had grown to about 136 GB. Individual rollout JSONL files included approximately:

  • 25.92 GB
  • 25.25 GB
  • 13.04 GB
  • 11.39 GB
  • several around 5.4 GB

Analysis of the largest 25.92 GB rollout showed approximately 25.77 GB consisted of compacted records.

The largest individual compacted record was about 80.39 MB with replacement_history count 591. Approximate classified contents of that single record were:

  • image/base64: 80.18 MB (120 elements)
  • user-like data: 140.63 KB (462 elements)
  • subagent/agent: 33.75 KB
  • other: 39.88 KB

So nearly the entire compaction snapshot was repeated image/base64 data inside replacement_history.

For local testing, after backing up the original rollout files, I removed obsolete historical compacted records while preserving the latest compacted record and all non-compacted JSONL records.

Example result:

25.92 GB -> 225.51 MB

After applying the same repair to the other abnormally large rollout files:

  • .codex decreased from ~136 GB to ~7 GB
  • old project threads still opened
  • project files were intact
  • disk activity dropped dramatically
  • RAM when opening an old large thread dropped from ~18.7 GB to roughly 1.5–2 GB

However, the silent Codex Desktop exits still occur even after the session store was reduced to ~7 GB, so this appears to be a separate issue rather than the sole cause of the process exits.

Additional diagnostics

Observed package/runtime paths during debugging:

  • Desktop package: OpenAI.Codex_26.818.5229.0_x64__2p2nqsd0c76g0
  • command runner: codex-command-runner-0.149.0-alpha.4.1.exe

Sandbox logs frequently show repeated launches of:

codex.exe --codex-run-as-fs-helper

followed by codex-windows-sandbox-setup.exe and ACL setup. There is a recurring warning about failing to hide C:\Users\Default with SetFileAttributesW ... error 5 (Access is denied), while setup itself reports errors=[] and successful read-ACL completion. Some startup silent exits occur before the sandbox log is updated, so I do not know whether the sandbox warning is related.

No relevant crash dump is created in %LOCALAPPDATA%\CrashDumps, and Windows Event Viewer repeatedly shows no matching Application Error/WER event at the time of the silent exits.

The only surviving process after some complete exits is a small crashpad_handler.exe process.

I can provide sanitized diagnostic reports or targeted log excerpts if maintainers indicate what would be most useful.

Related reports

This looks related to, but not necessarily identical with:

  • #35560 — Windows desktop silently exits shortly after launch with no crash event
  • #37752 — Windows desktop endless silent-exit loop; reboot/runtime state involved
  • #31583 — Windows desktop AppX container silently destroyed/relaunched with no crash artifact
  • #25779 — session/context bloat meta-issue

View original on GitHub ↗

5 Comments

github-actions[bot] contributor · 3 days ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #40062
  • #39890
  • #40323

Powered by Codex Action

mikkinels322 · 3 days ago

Additional A/B test: silent exit reproduces with hardware GPU disabled

I performed a controlled GPU-off test to check whether the Windows/Chromium hardware GPU path is responsible for the silent exits.

Codex Desktop was launched through IApplicationActivationManager::ActivateApplication with:

--disable-gpu

I verified from the live process command lines that the flag was actually applied to the main process:

ChatGPT.exe --disable-gpu

The Chromium GPU process was using software WARP rather than the NVIDIA hardware path:

--use-gl=angle --use-angle=d3d11-warp-webgl

Renderer processes also had:

--disable-gpu-compositing

So this was a real software-rendering test, not merely a launcher flag that was ignored.

Despite that, Codex silently exited again at approximately 14:52 local time.

Immediately after the exit:

ChatGPT process count: 0
Codex process count: 0
ChatGPT processes with MainWindowHandle != 0: 0

Additional state at the failure:

  • RAM: 31.84 GB total, 19.13 GB free
  • .codex total size: 7.54 GB
  • largest rollout: 705.10 MB
  • sessions >= 1 GB: 0
  • no matching Application Error / WER event
  • no relevant Display/NVIDIA GPU event
  • no relevant crash dump

The largest rollout was ~704.45 MB before this experiment and ~705.10 MB at the failure, so there was no rapid multi-GB session growth associated with this exit.

This suggests that the NVIDIA hardware GPU / Chromium hardware acceleration path is not required to reproduce the silent full-process exit. The separate rollout/compaction growth issue still exists, but this reproduction also occurred while the active session size was relatively stable.

mikkinels322 · 3 days ago

Stronger crash evidence: Crashpad captured a main browser-process crash

A subsequent read-only inspection of Codex's own local logs/Crashpad metadata identified the failure class more precisely.

At 14:52:28 local time (UTC+5), Crashpad created a report with:

{"capture_kind":"crash","ptype":"browser"}

This occurred exactly one second after the last normal log entry from the previous Codex process.

Timeline:

  • 14:43:19 — active turn started
  • 14:51:20 — last tool call completed successfully (read-only local Laravel query)
  • 14:52:25 — last app-server request: configRequirements/read
  • 14:52:27 — last log line from the process: GET /backend-api/codex/models returned 200 OK
  • 14:52:28 — Crashpad recorded capture_kind=crash, ptype=browser
  • 14:53:36 — new web session started
  • 14:53:55 — new Codex process performed thread/resume
  • 14:54:03 — continuation turn created to resume the interrupted work

In the final ~60 seconds before the crash, there were no WARN, ERROR, panic, shutdown, or orderly-exit records.

Also not observed immediately before the crash:

  • thread/turns/list
  • thread/read
  • thread/resume
  • app-server disconnect/exit
  • renderer/webview termination
  • process gone
  • GPU-process crash marker
  • plugin reconciliation failure
  • fs-helper failure
  • AppX lifecycle error

The last completed tool operation had already succeeded. The application then began the next model request and the main browser process crashed before that step completed.

This confirms that at least this reproduction was a real crash of the main Chromium/Electron browser process, not a normal chat close, Laravel/PHP failure, network disconnect, or session-only failure.

Unfortunately, the local Crashpad data contains no exception code or faulting module, and no minidump was persisted. Windows Event Log still shows no matching Application Error entry for the crash window.

This browser-process crash also occurred during the previously reported GPU-off A/B test, where the main process had --disable-gpu and Chromium was using software WARP (--use-angle=d3d11-warp-webgl). So hardware NVIDIA acceleration is not required to reproduce this crash.

mikkinels322 · 1 day ago

Workaround appears confirmed: disabling the Windows updater stopped the crashes

Follow-up after extended real-world testing.

Before the workaround, Codex Desktop was crashing repeatedly during normal work, often roughly every 30–40 minutes. Multiple Crashpad reports consistently showed:

capture_kind=crash
ptype=browser

Two independently captured full minidumps had the same native crash signature:

Exception:       0xC0000005 (Access Violation)
Operation:       Read
Invalid address: 0x0
Faulting module: resources\native\windows-updater.node
Module offset:   +0x2D693

Disabling GPU acceleration did not prevent the crash; the same browser-process crash reproduced while Chromium was using software WARP.

I then set the following as a persistent User environment variable in Windows:

CODEX_SPARKLE_ENABLED=false

and rebooted Windows before launching Codex normally from the Start menu.

Since doing that, Codex has completed multiple normal development/work sessions with zero crashes, whereas before the change crashes were occurring repeatedly throughout the day. The machine has also remained running across the extended test period rather than relying on repeated reboots as a temporary recovery.

This strongly suggests that, for this crash signature, the native Windows updater path is the trigger and CODEX_SPARKLE_ENABLED=false is an effective temporary workaround.

Important detail: initially I tried setting $env:CODEX_SPARKLE_ENABLED='false' only inside a PowerShell session and launching the MSIX app through ApplicationActivationManager. Codex later crashed again at the identical windows-updater.node +0x2D693 address. The workaround only became reliable after setting CODEX_SPARKLE_ENABLED=false persistently at the Windows User environment level and rebooting.

For affected users with the same dump signature, the PowerShell command used was:

[Environment]::SetEnvironmentVariable(
    "CODEX_SPARKLE_ENABLED",
    "false",
    "User"
)

Then verify:

[Environment]::GetEnvironmentVariable(
    "CODEX_SPARKLE_ENABLED",
    "User"
)

Expected output:

false

After that, reboot Windows and launch Codex normally.

This should be treated as a temporary workaround rather than a permanent fix, since it disables the affected in-app updater path. The underlying windows-updater.node null-read crash still needs to be fixed.

Zikang7 · 2 hours ago

+1