Skip to content

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

Open

Description

@mikkinels322

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:

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Aug 25, 2026
  2. mikkinels322 commented on Aug 25, 2026

    @mikkinels322
    Author

    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.

  3. mikkinels322 commented on Aug 25, 2026

    @mikkinels322
    Author

    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.

  4. mikkinels322 commented on Aug 27, 2026

    @mikkinels322
    Author

    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.

  5. Zikang7 commented on Aug 28, 2026

    @Zikang7

    +1

  6. altim8Solutions commented on Sep 9, 2026

    @altim8Solutions

    Current-version reproduction: UI/window disappears while backend stays alive; successful AppX reactivation does not recreate a window

    I reproduced a closely related but diagnostically distinct variant three times on the current Windows package. In the latest occurrence, the desktop UI/window disappeared while the AppX container and Codex backend remained alive.

    Environment

    • Codex Windows package: OpenAI.Codex 26.903.8094.0 x64
    • ChatGPT.exe file version: 152.0.7977.83
    • Bundled codex-cli: 0.153.4
    • Windows build: 10.0.26200.9445
    • Time zone: Europe/Berlin

    Latest incident

    • Time: 2026-09-09, approximately 11:52–11:54 CEST
    • All Codex windows disappeared.
    • Task Manager showed Apps (0) but Codex (16) under Background processes.
    • The Codex process group used approximately 1,122.9 MB; overall memory was 78% and CPU approximately 33%.
    • Launching Codex again did not restore a visible window.
    • A Windows restart was eventually used for recovery.

    Strong diagnostic evidence

    1. At 11:52:38, AppModel-Runtime events 211/201 (record IDs 1724377/1724378) show a new launch process, PID 2580, being added to the already-live Codex AppX container.
    2. TWinUI event 1621 (record ID 3127) reports the attempted Codex activation as successful, but no window appeared.
    3. The Codex backend, PID 11456, continued normal codex_app_server::outgoing_message activity through 11:53:21 with targeted_connections=1.
    4. There were no Codex WARN/ERROR records immediately before the restart.
    5. No warning/error event appeared in Application, System, or Resource-Exhaustion logs between 11:40 and 11:54:34. There was also no DWM, GPU, display-driver, OOM, or new WER crash event for this occurrence.
    6. WER events after the restart reused report ID 33331c8b-f2ca-4b07-9726-38cca33bbc18 from an earlier 10:29 HamLkd incident; they were queue reprocessing, not a new report.
    7. The restart was user-initiated: User32 event 1074 at 11:54:35, EventLog 6006 at 11:54:52, and EventLog 6005 at 11:55:32.
    8. Related prior evidence on the same installation includes RADAR_PRE_LEAK_64 for codex.exe on 2026-09-08 and the separate 10:29 HamLkd event.

    Session/resource observations

    • The active thread rollout was only about 22.7 MB, so an oversized active transcript is not sufficient to explain this incident.
    • A historical, not-loaded thread has a 2,220,909,855-byte rollout, but it remained unchanged during the incident.
    • The process count and memory pressure may be amplifiers, but Windows recorded no resource-exhaustion event.

    Expected

    If the main window or renderer disappears, a new activation should restore or recreate a visible main window.

    Actual

    Windows reports successful activation and adds a new process to the existing AppX container, but the application remains background-only with no visible window while the Codex backend continues working.

    This points strongly to a desktop shell / renderer / single-instance activation recovery problem rather than a backend or task failure. Raw rollout JSONL and SQLite databases are not attached because they contain sensitive conversation data. Sanitized event details can be provided if maintainers request them.

    Potentially related: #42714, although that report describes headless startup after an update rather than loss of the window during an active task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appIssues related to the Codex desktop appbugSomething isn't workingperformancesessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions