[Windows Desktop 26.818.5229.0] Repeated browser/main crashes when reopening oversized browser-heavy tasks
What version of the Codex App are you using?
- Microsoft Store package:
OpenAI.Codex 26.818.5229.0 - Previous package immediately before the update:
26.818.2441.0
What platform are you using?
Windows 11 x64, OS build 10.0.26100.6584.
What issue are you seeing?
Codex Desktop has repeatedly terminated over several days. The most clearly diagnosed occurrence is a real Electron main/browser-process crash shortly after an existing task restored two persisted in-app-browser sidebar tabs.
The whole desktop app disappeared without a crash dialog, interrupted active work, and had to be relaunched.
Crashpad recorded:
capture_kind=crash
ptype=browser
osarch=x86_64
local_report_uuid=8df12fb5-3221-4673-9b55-53de63445d56
A separate earlier exit during the same session was caused by the Microsoft Store/MSIX update path using ForceTargetApplicationShutdownOption. That update-driven exit is distinguished from the later Crashpad crash below.
Sanitized timeline
Local time (UTC+08:00), 2026-08-23:
17:31:37 AppX destroys the old 26.818.2441.0 container with
ForceTargetApplicationShutdownOption.
17:31:45 Package update registers 26.818.5229.0.
17:31:47 Updated app relaunches.
17:40:47 Existing task restores two persisted in-app-browser sidebar tabs;
both webviews attach and become DOM-ready.
17:41:12 Main desktop log stops.
17:41:28 Crashpad records capture_kind=crash, ptype=browser.
17:41:29 AppX container is destroyed.
17:43:35 App is manually relaunched.
There was no second package deployment/update at 17:41, so the later termination was not another forced-update shutdown.
What steps can reproduce the bug?
This is intermittent, but the observed sequence was:
- Launch or relaunch Codex Desktop on Windows with one or more tasks active.
- Open an existing task that has two persisted in-app-browser sidebar tabs.
- Allow both browser webviews to restore, attach, and become DOM-ready.
- Continue working or leave the task active.
- Roughly 40 seconds later, the entire Codex Desktop process exits.
Immediately before the crash, the desktop logs showed the two browser sidebar guests attaching and repeated mcp_app_sandbox.attach_unmatched warnings. The timing suggests an in-app-browser restore/lifecycle regression, but the available evidence does not prove the faulting native module.
What is the expected behavior?
- Restoring persisted in-app-browser tabs should not crash the Electron browser/main process.
- A stale or failed webview should be isolated and recoverable while the desktop host remains alive.
- App updates should warn about and coordinate shutdown when active tasks are running.
- Active turns should resume cleanly after an update or crash.
Additional diagnostics
- No matching Windows
Application Error, WER, or.NET Runtimeevent was recorded for the Crashpad occurrence. - No Resource Exhaustion Detector event was present.
- Approximately 24.6 GB of 39.6 GB physical memory was free.
- No GPU reset, WHEA, or Kernel-Power signal occurred in the same window.
- Session JSONL remained parseable after restart; task state was not corrupted.
- An older renderer Crashpad record also exists from the preceding day, consistent with repeated desktop instability rather than a single update event.
- Raw logs and dumps are intentionally not attached publicly because they can contain local paths, browsing history, prompts, and project data. Sanitized excerpts can be provided if maintainers request them.
Potentially related, but not exact duplicates:
- #33827 — restoring an in-app browser silently closes Codex in a Goal Mode lifecycle case
- #33202 — browser creation with multiple active tasks
- #38175 — in-app browser crash during localhost navigation
5 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Follow-up: complete 7-day scan and two newer crashes
The original report understated the frequency because only two events had been correlated at that point. A complete scan of Crashpad, desktop logs, AppModel/AppX events, and the affected session files found 8 Crashpad captures from 2026-08-22 through 2026-08-24:
reason=oomSanitized list of the six main-process crashes (local time UTC+08:00):
Every one has
capture_kind=crash,ptype=browser, andosarch=x86_64.AppModel confirms container destruction immediately after the two newest captures and automatic relaunch about three seconds later:
New high-confidence trigger: oversized browser-heavy session state
The repeatedly affected task has a rollout JSONL of approximately:
A second browser-heavy task involved in the 17:58 crash is:
When the 1.87 GiB task is opened, the desktop logs show two concurrent
thread/readrequests taking 20–29 seconds. The requests complete shortly before the main-process crash. The task also restores persisted in-app-browser state.The two newest reproductions were nearly identical:
mcp_app_sandbox.attach_unmatched.thread/readcalls take approximately 27–29 seconds.ptype=browserand the whole AppX container is destroyed.The earlier renderer capture at 2026-08-22 04:00:41 is especially relevant:
During that long browser-heavy session, the desktop reached a maximum of 19 in-app-browser tabs and emitted 62
attach_unmatchedwarnings. The 17:58 main-process crash session reached 16 browser tabs and emitted 17attach_unmatchedwarnings.The two newest main-process sessions also produced large bursts of
ResizeObserver loop completed with undelivered notifications(365 occurrences before the 15:07 crash and 77 before the 15:21 crash). This may be a symptom of renderer/UI churn rather than the native root cause.Updated assessment
The strongest evidence now points to an interaction between:
thread/readprocessing when reopening a very large task,There was no Windows Resource Exhaustion Detector event and no system-wide low-memory condition, so the explicit renderer
reason=oomis more consistent with a Chromium/Electron renderer or V8/process-level limit than exhaustion of all physical RAM.Suggested product-side protections:
Raw files are not attached because they contain prompts, local paths, browsing history, and project data. The sizes, counts, timings, UUIDs, and warning names above are sanitized.
Adding a second, independent Windows reproduction with the same current build.
Sanitized evidence
26.818.5229.0``
text
``capture_kind=crash
ptype=browser
osarch=x86_64
26.818.5229.0. Two earlier reports had the same lifecycle signature on26.818.2872.0and26.818.3698.0, so the current update appears to increase frequency rather than introduce the entire bug.Every crash report correlated with a main desktop log that stopped less than one second earlier. All nine logs ended during the same in-app-browser teardown sequence:
Shortly before teardown, the logs repeatedly contained:
Persisted browser-tab state grew across restarts: the app-level count observed at crash time increased from 6 to 10. The next restart restored 11 browser tabs across two tasks and spawned 21 desktop subprocesses. The machine still had ample free memory, with no matching Windows Application Error, resource-exhaustion event, or system instability, so this does not look like system-wide memory pressure.
The persistence behavior suggests the app crashes before committing tab removal, then restores the stale route on the next launch. A targeted workaround is to fully quit Codex, back up the global state file, and remove only the affected
thread-tab-routes-v1:*entries.No raw logs, session transcripts, task IDs, report UUIDs, local paths, URLs, prompts, repository names, or account information are included here because those artifacts may contain private data.
Follow-up (2026-08-24): another crash occurred with the same capture_kind=crash, ptype=browser signature. Immediately before exit, the desktop log shows 12 restored in-app browser tabs, repeated "No ChatGPT browser route is available for browser session" warnings, and then "iab rejected tab for route" with tabRouteKey=null followed by webview teardown. No raw logs or user data are attached.
Important correction: the previously attempted local persisted-tab reset did not actually apply, so this recurrence should not be treated as evidence that the workaround failed.
Adding another independent Windows reproduction with the same Crashpad main/browser-process signature.
Sanitized evidence
26.818.5229.0: 3 crash records26.818.8289.0: 5 crash records26.820.7780.0: 2 crash records after reinstallcapture_kind=crashptype=browserosarch=x86_6426.820.7780.0.The first post-reinstall crash occurred about 14 seconds after reinstall completion, before any intentional use of Google Chrome or the in-app Browser. Therefore, although the Crashpad signature matches this issue, I cannot confirm restored browser tabs or browser navigation as the trigger. Here,
ptype=browseridentifies the Electron/Chromium main process and does not by itself establish the root cause.No native stack or minidump is available. The two post-reinstall sidecars are still present; the eight earlier sidecars were removed by the uninstall, but their timestamps, versions, and signatures were preserved in sanitized diagnostic notes.
No raw logs, local paths, project names, task/conversation IDs, browsing data, or report UUIDs are included publicly. I can provide targeted sanitized excerpts if maintainers indicate what would be useful.