Windows desktop app exits unexpectedly after memory-leak and hang events
Summary
The Codex desktop app on Windows intermittently becomes unresponsive or exits completely while tasks are running. This is an application-process exit, not merely an interrupted model response.
Environment
- Codex Windows app package:
OpenAI.Codex 26.721.4979.0(Microsoft Store package) - Windows 11 Pro, version
10.0.26200 - App executable recorded by Windows:
ChatGPT.exe - Chromium executable version recorded in WER events:
150.0.7871.124/150.0.7871.128
Observed behavior
- The app can disappear while one or more Codex tasks are active.
- Reopening the app starts an entirely new set of
ChatGPT.exeprocesses. - Desktop logs from the previous process stop abruptly, without a normal shutdown sequence.
- Shortly before one abrupt stop, the desktop logs repeatedly contained messages such as:
Conversation state not foundReceived item/started for unknown conversationReceived item/completed for unknown conversationResizeObserver loop completed with undelivered notifications
Windows Error Reporting evidence
Windows Event Viewer recorded the following events for ChatGPT.exe:
RADAR_PRE_LEAK_64(memory-leak detection)AppHangTransient(application hang)
The leak event occurred before the later hang event. There was ample free system memory at the time of inspection, so this does not appear to be simple system-wide RAM exhaustion.
Expected behavior
The app should remain open while tasks are active. If a renderer or background component fails, the desktop shell should recover it or present an error instead of silently exiting.
Privacy note
Raw application logs and session transcripts are intentionally not attached because they may contain local paths, project names, or conversation content. A redacted excerpt or WER report ID can be provided privately if maintainers request it.
7 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Additional reproduction on
OpenAI.Codex 26.721.11231.0(Windows). In one newly launched app instance, I observed two DWM “ChatGPT (Not Responding)” ghost-window events. The first was followed by an AppX container teardown/relaunch; the second self-recovered after about 0.5 seconds without a relaunch.During the fresh-instance window, combined private memory increased from about 1.56 GB to 2.82 GB in roughly nine minutes (main process about 1.09 GB; largest renderer about 849 MB; GPU process about 411 MB). Focus telemetry recorded no third-party foreground window between the ghost event and ChatGPT regaining focus. No matching Application Error, Windows Error Reporting, DWM, or NVIDIA display-driver event was present.
No session content, raw logs, local paths, account details, or credentials are included. Please investigate renderer/UI responsiveness and memory growth in the Windows desktop app.
Related current-build reproduction: renderer growth/recycling may precede the full-exit failure
I reproduced a related but not identical failure on the current Windows package:
OpenAI.Codex 26.727.6591.026.727.5135110.0.26200A clean launch produced a largest
ChatGPT.exeprocess of approximately 1.52 GB private bytes / 1.13 GB working set within about 10 seconds. In another launch, the largest PID changed after reaching approximately 1.17 GB private bytes, consistent with renderer/process recycling.Clearing only rebuildable Chromium/GPU caches reduced the next cold-launch peak to approximately 618 MB private bytes, followed by a decline into the 233-337 MB range during short sampling. This does not establish the root cause, but it is a measurable A/B difference.
Unlike the primary report here, I did not capture
RADAR_PRE_LEAK_64,AppHangTransient, or a confirmed fullChatGPT.exeAppX-container exit. Windows did record a nearbydwm.exe/dwmcore.dllcrash andLiveKernelEvent 141, which I treat as correlation only.The full measured reproduction and startup-log findings are documented in #36561:
https://github.com/openai/codex/issues/36561#issuecomment-5182680153
This data point may represent an earlier renderer-pressure/recovery stage of the broader hang/exit progression described here, but source-level confirmation is needed.
Update: reproduced on Windows app 26.730.8199.0 with multi-agent process accumulation
The issue is still reproducible after updating the Microsoft Store app to
OpenAI.Codex 26.730.8199.0on Windows 11 (10.0.26200). The new evidence points to two related failure modes: child-process retention after agent work and an Electron conversation-event storm.Process snapshot
After several hours of multi-agent use, the Codex Desktop process tree contained:
plugin_mcpNode processes using about 1.05 GBnode_replprocesses using about 0.73 GBcodex.exeapp-server at about 1.63 GB RSS, 269 threadsThe
node_replandplugin_mcpprocesses are created in matching pairs at the same timestamps. Many remain after their subagent reportstask_complete. This looks related to the child-process cleanup problem described in #12491, now observed with the current Windows Desktop architecture.Conversation event storm
In the current Desktop log, over roughly four hours:
Received ... for unknown conversationConversation state not foundThat is more than 8,000 state-routing errors in one app session. The main renderer and app-server consume CPU continuously while these events are processed, and the UI becomes progressively slower when switching chats or waiting for a response to render.
Thread lifecycle correlation
A read-only audit found 426 active subagent records totaling about 6.0 GB of rollout data. 338 were already completed but remained active; five more completed during the cleanup. One parent chat alone had created 126 subagents, 115 of them completed but still active.
Archiving completed subagents reduced the active set substantially, but the already spawned MCP/REPL processes remain resident until the app is restarted. No active process was forcibly terminated during this test.
Not caused by resource exhaustion or connectivity
At the time of inspection:
Windows Error Reporting also recorded
MoAppHangandRADAR_PRE_LEAK_64events in the preceding app build.Expected behavior
task_complete, its per-thread REPL/MCP subtree should be disposed or moved into an explicitly reusable bounded pool.Raw logs and rollout files are intentionally not attached because they can contain private paths and conversation content. Sanitized excerpts or WER report IDs can be provided privately if requested.
Reproduced on Windows app 26.803.5235.0 with Remote stall and confirmed
MoAppHangAnother occurrence on 2026-08-09 (Europe/Brussels):
OpenAI.Codex 26.803.5235.0190451002forChatGPT.exeversion151.0.7922.76at14:12:22.MoAppHangand stated that the program stopped interacting with Windows and was closed.14:12:32, about ten seconds later.In the final 63 seconds before termination, the desktop log recorded:
Received ... for unknown conversationConversation state not foundResizeObserver loop completed with undelivered notificationsImmediately before the closure, an RMCP worker also reported a fatal transport failure for one unavailable configured local Streamable HTTP MCP endpoint. This is correlation only, but a failing optional MCP connection should remain isolated and should not terminate the desktop app-server.
The user-visible symptom was a stalled mobile Remote session. Unlike the earlier background-only activation stall, this occurrence ended in a confirmed full desktop application hang and Windows-forced closure.
Expected behavior: unknown/stale conversation events and optional MCP transport failures should be bounded or dropped. They should not build into a renderer event storm, block Remote, or end in
MoAppHangand a full app restart.No raw logs, thread IDs, local paths, endpoint names, account data, or credentials are included.
[Windows] Desktop app browser process grows to 7鈥? GB while idle and repeatedly crashes
Summary
The Codex Windows desktop app continuously allocates memory while idle. Its Electron/Chromium browser process and primary renderer grow to roughly 7鈥? GB combined, then the browser process crashes. The app may restart and reproduce the same behavior within minutes.
This is reproducible after Windows Repair and Reset, and while no task is running.
Environment
26.820.9563.0(OpenAI.Codex, x64, Microsoft Store package)Ok10.0.26200, build26200, 64-bit32.0.101.833132.0.16.1088Steps to reproduce
ChatGPT.exeprocesses belonging to theOpenAI.Codexpackage.Expected behavior
The idle app should maintain a reasonably stable memory footprint and should not crash.
Actual behavior
After a clean restart, all Codex desktop processes initially used about 1.58 GB private memory:
During a 45-second sample, with process count unchanged at 10:
| Elapsed | Total private memory | Browser/main | Primary renderer |
|---:|---:|---:|---:|
| 0 s | 3,783 MB | 2,045 MB | 1,090 MB |
| 15 s | 4,939 MB | 3,179 MB | 1,156 MB |
| 30 s | 5,555 MB | 3,518 MB | 1,290 MB |
| 40 s | 7,380 MB | 4,982 MB | 1,703 MB |
| 45 s | 5,002 MB | 2,816 MB | 1,486 MB |
Net change over 45 seconds:
An earlier 30-second sample showed the same allocation/collection cycle, including the main process dropping from about 5.55 GB to 3.75 GB and immediately climbing again.
Crash records
Crashpad produced four reports during the investigation. Every sidecar identified the crashing process as the browser process:
| Local time (Asia/Shanghai) | Crash report ID |
|---|---|
| 2026-08-27 15:37:02 |
05cf9eae-c67a-46a3-88f9-d3e5b7174077|| 2026-08-27 15:42:23 |
50b5287a-6db1-4768-b37d-2a15ee4a7356|| 2026-08-27 15:46:55 |
5e713212-ed45-42c2-863f-33a3640acb7a|| 2026-08-27 15:58:31 |
5d63ca63-3e2e-4779-b07d-e443075a181b|Troubleshooting already attempted
.codex/visualizationsdirectory (8,059 files, 650.2 MB), then restarted and retestedAdditional observations
ChatGPT Classicwas also installed and running, but its complete process tree remained around 0.69 GB. The abnormal processes were from theOpenAI.Codex_26.820.9563.0_x64package.Privacy
This report is intentionally sanitized. It contains no account name, local username, prompts, session contents, configuration values, tokens, or credentials.
Confirmed a closely related UI-stuck reproduction on the newer Windows desktop package
OpenAI.Codex 26.820.9563.0.Environment:
10.0.2200026.820.9563.0(Microsoft Store), package statusOkcodex-cli 0.150.0-alpha.8CODEX_CLI_PATHunsetObserved state after the update:
Responding=True, but the desktop UI can remain stuck.AppHang, application-error, or crash report was present for this occurrence.Sanitized desktop log signals:
The unknown-conversation
turn/startedandturn/completedevents occurred about three seconds apart, while the UI remained stuck. The same log also recorded network/telemetry refresh calls taking approximately 111,481 ms and 32,559 ms, although later refreshes could succeed.This occurrence looks like renderer/conversation-state reconciliation failure rather than a CPU saturation or complete main-process hang: backend events arrive and complete, but the renderer does not associate them with a known conversation. Raw logs, account IDs, conversation IDs, session IDs, URLs, local usernames, and paths are intentionally omitted for privacy.