Codex Desktop in-app Browser crashes the main app during webview navigation
What version of the Codex App are you using (From “About Codex” dialog)?
26.623.3763.0
What subscription do you have?
API
What platform is your computer?
Microsoft Windows 11 Pro, version 10.0.26200, x64
What issue are you seeing?
Summary
Codex Desktop crashes or exits when the in-app Browser opens an arbitrary real web page. The issue still reproduces after updating Codex Desktop from 26.616.10790.0 to 26.623.3763.0.
The strongest captured evidence from the previous version shows a native access violation in the bundled Chromium/Electron chrome.dll during the in-app Browser webview attach/navigation flow. After the update, Codex logs still show the same in-app Browser lifecycle sequence immediately before the app exits.
What steps can reproduce the bug?
Steps to reproduce
- Launch Codex Desktop on Windows.
- Open the in-app Browser/right-panel browser.
- Navigate to any URL such as
https://github.com/. - Observe the main Codex app process crash/exit and the app restart state afterward.
The same symptom has also been observed when opening arbitrary web pages and localhost pages, not only GitHub.
What is the expected behavior?
_No response_
Additional information
Current environment
- OS: Microsoft Windows 11 Pro, version
10.0.26200, x64 - GPU: NVIDIA GeForce RTX 4060
- GPU driver:
32.0.16.1062, driver date2026-06-11 - Current Codex AppX package:
OpenAI.Codex_26.623.3763.0_x64__2p2nqsd0c76g0 - Current Codex AppX version:
26.623.3763.0 - Current
Codex.exefile/product version:149.0.7827.197 - Current bundled
chrome.dllfile/product version:149.0.7827.197 - Current bundled Browser plugin cache version observed locally:
26.623.31443
Current-version log evidence
After updating to Codex AppX version 26.623.3763.0, a new repro still follows the same in-app Browser lifecycle path.
Relevant log directory:
<UserProfile>\AppData\Local\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\2026\06\26
Observed in:
codex-desktop-ae228db3-50a2-4419-b6c9-cd51b33a47a6-12880-t0-i1-033626-0.log
Key lifecycle events:
2026-06-26T03:37:08.718Z: renderer created browser sidebar webview withinitialUrl=https://github.com/2026-06-26T03:37:08.724Z: browser sidebar webview attach token created2026-06-26T03:37:08.780Z:mcp_app_sandbox.attach_unmatchedwhile URL isabout:2026-06-26T03:37:08.781Z: runtime attached browser sidebar webview2026-06-26T03:37:08.982Z: browser sidebardom-readyatabout:blank#codex-browser-sidebar-attach-token=...
Observed again in:
codex-desktop-3c056cee-ef33-4175-9bf5-1d3e2c7a3390-13048-t0-i1-033718-0.log
Key lifecycle events:
2026-06-26T03:38:37.630Z: renderer created browser sidebar webview withinitialUrl=https://github.com/2026-06-26T03:38:37.633Z: browser sidebar webview attach token created2026-06-26T03:38:37.661Z:mcp_app_sandbox.attach_unmatchedwhile URL isabout:2026-06-26T03:38:37.662Z: runtime attached browser sidebar webview2026-06-26T03:38:37.787Z: browser sidebardom-readyatabout:blank#codex-browser-sidebar-attach-token=...2026-06-26T03:38:38.540Z: browser sidebardom-readyathttps://github.com/
This matches the earlier crash window: after the temporary attach-token page is ready, and before or very early in real URL navigation/rendering.
Native crash evidence from previous version
The earlier version OpenAI.Codex_26.616.10790.0_x64__2p2nqsd0c76g0 produced a captured SilentProcessExit dump from the same in-app Browser repro path.
Captured process evidence:
- Exiting main process dump:
exiting-19916.dmp - Initiating crashpad-handler dump:
initiating-5432.dmp - Main process binary:
Codex.exe - Faulting module: bundled
chrome.dll - Faulting
chrome.dllfile/product version:149.0.7827.115 - Exit code:
3221225477 / 0xC0000005
CDB recovered exception:
ExceptionAddress: 00007fff59fae5b6 (chrome!GetHandleVerifier+0x1ef976)
ExceptionCode: c0000005 (Access violation)
NumberParameters: 2
Parameter[0]: 0000000000000000
Parameter[1]: 0000000000000558
Attempt to read from address 0000000000000558
Disassembly at the exception address:
00007fff`59fae5b6 488b8158050000 mov rax,qword ptr [rcx+558h]
Because the attempted read address was 0x558, this is consistent with a null object/base dereference inside native Chromium/Electron code.
Note: public symbol names around chrome.dll may be approximate without private symbols. The reliable facts are the module, exception code, attempted read address, faulting instruction, and surrounding in-app Browser lifecycle timing.
What appears less likely
- This does not look like an ordinary JavaScript exception.
- This does not look like a recoverable webview load error handled by Codex JS; the app exits before a useful handled error path is logged.
- A stale Browser plugin cache was a possible earlier concern, but after the update the observed Browser plugin cache is
26.623.31443, so an old26.616.*plugin cache mismatch is no longer the primary explanation. - The
mcp_app_sandbox.attach_unmatchedmessage is probably not the direct cause by itself. It appears during the expected temporaryabout:attach-token phase in both old and new logs. - No new Codex WER/CrashDumps entry was found in the checked default locations after the update. SilentProcessExit/IFEO monitoring had already been cleaned up, so no fresh full dump was expected for the updated repro.
20 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce the same issue on my Windows machine.
Environment:
Repro steps:
What I observed:
"remote control requires ChatGPT authentication; API key auth is not supported"
This looks consistent with the same in-app Browser/webview crash path described above. If needed, I can provide additional log excerpts and timestamps.
I have the same issue, is there a solve yet?
I can reproduce the same in-app Browser crash on a substantially newer Windows build.
Environment
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g00.144.0-alpha.4http://127.0.0.1:5174/admin/tournamentsReproduction
ChatGPT.exeprocess disappears.This is not only a failed turn or a closed browser pane. The entire desktop process terminates.
Control tests
Log evidence
The desktop log shows:
codex.exeThe last browser-related log messages include:
Failed to upsert Browser Use PiP contentA Crashpad dump is present under:
...\Codex\web\Codex\Crashpad\reports\Expected behavior
The integrated browser should open and inspect the localhost application without terminating the entire desktop app.
Actual behavior
Using the integrated browser causes the complete desktop process to terminate after approximately 20–30 seconds.
I can provide the relevant redacted desktop log and Crashpad dump privately if a maintainer requests them.
I can reproduce this on the current Windows Store build and have a confirmed local mitigation that may narrow the native crash boundary.
Environment
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g010.0.26200, x64150.0.7871.10132.0.15.9174Reproduction evidence
The desktop app exited twice immediately after opening the right-panel browser and attaching its webview. The relevant UTC crash windows were
20:13:12and21:41:28on 2026-07-10.Both logs ended in the same sequence:
IAB_LIFECYCLE renderer created browser sidebar webviewIAB_LIFECYCLE queued browser sidebar webview routemcp_app_sandbox.attach_unmatched ... urlProtocol=invalidIAB_LIFECYCLE runtime attached browser sidebar webviewbrowser sidebar dom-readyfor the redirected local pageAs noted in the original report,
mcp_app_sandbox.attach_unmatchedappears to be incidental: the MCP sandbox listener observes the non-MCP browser webview before the browser-sidebar listener handles it.Confirmed local mitigation
In the packaged main bundle, the browser sidebar's
did-attach-webviewlistener synchronously calls the internal browser-page attach function. That path reacheswebContents.loadURL(...)before Electron has returned from dispatchingdid-attach-webview.I patched only that boundary to defer browser-page initialization by one event-loop turn:
After repacking the ASAR and relaunching the same build, the in-app Browser opened and navigated successfully without crashing. The unpatched build had failed twice at this boundary; the deferred build passed the same open/navigation flow.
This suggests a native Electron/Chromium re-entrancy or lifetime issue when initializing/navigating the guest synchronously from
did-attach-webview. Moving the attach call to the next turn is a small candidate fix worth testing in the source build.I can provide redacted log tails or the exact build fingerprint privately if useful.
Confirming this exact crash remains reproducible on current Microsoft Store builds 26.707.3563.0 and 26.707.3748.0 (Windows 11 25H2).
Across 12 observed Browser-sidebar sessions, webview creation preceded desktop exit by 6–16 seconds. Multiple current-build dumps show
chrome.dll0xC0000005 and a null read at0x558.The current-build timing evidence, sanitized analysis, and affected-session feedback ID are in #32334. I’m closing that report as a duplicate so this investigation stays centralized here.
Confirming this exact native crash on the current Windows release. Three local dumps match the existing
chrome.dllaccess-violation signature, including the read at0x558.Environment
26.707.3142810 Jul 2026OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g010.0.26100.8655This confirms that the crash is not limited to the Windows Insider/build
26200environments mentioned elsewhere in this issue.Reproduction
The app crashed three times on
2026-07-11while Browser Use was navigating and inspecting a public documentation page.Observed sequence:
The follow-up instruction was not itself the trigger. It resumed the same built-in-browser workflow, which exposed the crash.
The failure recurred after restarting the app.
Expected behavior
Browser Use should navigate and inspect the page without terminating the desktop application. A browser or WebView failure should be isolated to the browser operation and returned as a structured error.
Actual behavior
The complete ChatGPT desktop process terminates during or shortly after the built-in browser's WebView navigation and inspection path.
Native crash signature
All three minidumps have the same signature:
Update 2026-07-12: persisted-state trigger isolated
I completed a controlled A/B investigation using the same environment described above.
Findings
This narrows the trigger on this machine to persisted state somewhere inside:
Confirming the same native crash on the current Microsoft Store build, with two independent Crashpad dumps and a feature-gated A/B mitigation.
Environment
OpenAI.Codex_26.707.3748.0_x64__2p2nqsd0c76g026.707.31428ChatGPT.exefrom theOpenAI.Codexpackage150.0.7871.10110.0.19044.1889Native dump evidence
Two separate in-app Browser crashes on 2026-07-12 produced the same native signature:
0xC0000005read access violationchrome.dllchrome.dll+0x2ec6e66rcx=0; attempted read at0x558NULL_CLASS_PTR_READ_c0000005_chrome.dll!Unknown{74d388af-6d1f-21b1-987e-9640e41d45b8}The two process uptimes were approximately 99 seconds and 23m26s. The second dump's process peak commit was about 651 MB; the machine still had about 25 GB of available physical memory, with no Resource-Exhaustion event around the crash. This does not appear to be OOM.
Both crashes followed the same app lifecycle:
registered debugger listener.dom-ready.[browser-use-pip] Failed to upsert Browser Use PiP content backend=iab tabID=1.This matches the PiP/webview sequence also reported in #32040 and extends the original
0x558signature to Chromium 150 / the current Store build.Confirmed mitigation / A-B result
Editing only:
was not durable: bundled-plugin reconciliation reinstalled/re-enabled Browser on restart.
The narrow, persistent mitigation was:
The bundled Browser plugin was then removed while the separate Chrome backend remained enabled (
browser_use_external=true/ Chrome plugin installed).After restarting the desktop app, the log reports only:
During repeated post-restart sampling there were zero:
browser_use_iab_backend_startup_started/readyI am not attaching the full logs or dumps publicly because they may contain local paths and thread metadata, but sanitized debugger output can be provided privately if a maintainer requests it.
Fresh Windows reproduction on the current Store build. This appears to match the in-app Browser/WebView crash described here, with an additional session-recovery failure after the first crash. Related: #32653 (missing custom-tool output after restart) and #32399 (Browser Use debugger/webview crash).
<details>
<summary>Sanitized environment, timeline, and log evidence</summary>
Environment
26.707.6957.026.707.519570.144.0-alpha.426.707.5195710.0.26200, build26200, x64gpt-5.6-sol, high reasoningReproduction
tab.playwright.domSnapshot()throughmcp__node_repl__js.dom-readyfor the real GitHub URL.custom_tool_callbut no matchingcustom_tool_call_output.Custom tool call output is missing for call id: <redacted>.Timeline (UTC)
2026-07-12T22:37:30.502Z: Browser Use navigation/snapshot custom tool call persisted.2026-07-12T22:37:31.237Z:mcp_app_sandbox.attach_unmatched guestWebContentsId=2 url=undefined urlProtocol=invalid.2026-07-12T22:37:32.174Z: browser sidebardom-readyat the real GitHub URL.2026-07-12T22:38:20Z: Codex Desktop relaunched.2026-07-12T22:43:39Z,22:43:51Z,22:44:02Z,22:44:10Z: repeatedcodex_core::utilmissing-output error.2026-07-12T22:44:02.655Z:No ChatGPT browser route is available for browser session <redacted>.2026-07-12T22:44:09.198Z: secondmcp_app_sandbox.attach_unmatched.2026-07-12T22:44:09.983Z: GitHub Settings pagedom-ready.2026-07-12T22:44:10.149Z: the second tool call returned a signed-out/404 DOM snapshot.2026-07-12T22:45:17Z.Negative evidence
Application Error/Windows Error Reportingevent.%LOCALAPPDATA%\CrashDumpsdump.Crashpad\settings.dat.Interpretation
The first termination strongly matches this issue's native in-app Browser/WebView navigation failure. The orphaned custom tool call then left the resumed thread in an invalid durable state, producing the repeated error tracked in #32653. The second termination occurred after Browser Use was reattached and the same GitHub navigation was repeated.
Areas worth checking together:
did-attach-webview;No ChatGPT browser route is available;A private support package containing the full report, sanitized evidence file, hashes, exact thread/turn/call IDs, and local source-artifact locations is being submitted separately. Raw rollout/database files are not posted publicly because they contain user prompts, local paths, and private project context.
</details>
Revalidated on a newer Windows Store build and the issue is still present.
Environment
OpenAI.Codex_26.707.8168.0_x64__2p2nqsd0c76g0https://example.com/Result
The official Codex Desktop application exited while Browser Use was loading the page, before the one-minute stability check could complete. No matching Windows Error Reporting event,
Application Error, or Codex/ChatGPT crash-dump metadata was found during the captured window.This was initially investigated as a possible problem in a locally patched RTL copy because the first observed failures occurred there and some early Original runs succeeded. Repeated control tests later showed that the official Original application also fails, both with remote debugging and during a normal launch. The earlier successful runs appear to have been intermittent and led to an incorrect initial attribution to the RTL patch.
A rebuilt RTL copy sourced from the exact same
26.707.8168.0package also exited on the same page, but replacing its patchedapp.asarwith the official unmodified asset had already ruled out the RTL renderer injection as the cause.Full sanitized investigation notes and the side-by-side revalidation are documented here:
https://github.com/aviad-benhamo/tool-codex-rtl-patch/issues/12
I can independently reproduce this crash on Windows, including on a newer
Codex App build.
Environment:
Observed behavior:
Browser Use opened a localhost page during a repository audit. The page
reached DOM-ready, and the entire Codex desktop app then silently exited.
There was no error dialog.
Native dump signature:
Windows recorded AppModel-Runtime Event ID 217 at the same timestamp,
showing destruction of the OpenAI.Codex AppX container.
The matching Codex logs add the following sequence immediately before the
crash:
"No ChatGPT browser route is available for browser session ..."
"Failed to upsert Browser Use PiP content"
The issue persisted after updating Codex and rebuilding/resetting the
Browser plugin cache. I am not claiming a verified completely clean-profile
reproduction.
I have the matching:
I can provide the full files privately to OpenAI maintainers. Public copies
would be redacted to remove local paths, project details, and session IDs.
4 times today. Only bothered to get 3 investigations from SOL updated app yesterday (latest version as of now). seem to also point at in-app browser
high level speculative findings: (QUOTES)
The crash was most likely a Codex desktop renderer/lifecycle failure—not the shell command. The desktop log repeatedly showed stale-worktree Git polling failures while the in-app browser and another heavy image-generation task were active. Windows recorded no crash exception, WER event, or out-of-memory condition, so the exact native failure remains unconfirmed. The final command was only a small read-only rg search.
AND
The logs do not show a Windows crash exception or out-of-memory event. The strongest evidence is an app-side failure loop: Codex repeatedly polled Git diff state for a worktree that had already been removed (Failed to resolve Git object directory), while the in-app browser guest and another heavy concurrent task were active. The process then restarted abruptly. The last shell command in this task was a small read-only search, so it was not the direct cause.
I’m recording this as a “likely app renderer/lifecycle failure, not a confirmed shell-command crash,” with the concrete avoidance rules: keep this task attached to a live worktree, avoid large DOM/tool outputs, and use narrow targeted browser reads only.
AND
So the key bug is: Codex preserves the task’s original project grouping even after the agent creates or moves into a dedicated worktree. After a crash, you return to the new worktree group, while the task remains hidden under the old group.
About the crashes: I cannot prove one single root cause, but the local logs show a serious repeatable pattern:
The two interrupted tasks processed roughly 19.3 million and 20.75 million cumulative tokens.
The Codex log database is approximately 866 MB.
The first run recorded a streaming disconnect before the app process disappeared.
The second run recorded multiple MCP/plugin child processes terminating during task resume; the Codex process then ended around 20:18 and restarted around 20:21.
No clean task-completion event was written.
There is no matching Windows Codex application-fault event, suggesting an abrupt Codex app/app-server lifecycle failure rather than a normal task error.
The long-running, tool-heavy task—browser automation, VM operations, huge accumulated context, repeated MCP resumes—is very likely triggering or amplifying the instability. That is an evidence-based inference, not a confirmed OpenAI root cause.
plz fix! :) ta.
This issue persists; it is easily triggered whenever the built-in web browser is used for browsing. The built-in browser is essentially unusable—whenever you ask Codex to generate a webpage (especially a single-file HTML page), it tends to use the built-in browser to preview the result, and—boom!—it crashes.
Reproduced again on a newer Codex Windows build.
Environment
OpenAI.Codex_26.707.9981.0_x64__2p2nqsd0c76g026.707.9981.010.0.26200Reproduction evidence
The main desktop app exited twice during the same Browser Use workflow:
http://localhost:3000/.No ChatGPT browser route is available for browser sessionmcp_app_sandbox.attach_unmatched ... url=undefined urlProtocol=invalid[browser-use-pip] Failed to upsert Browser Use PiP content backend=iab tabID=1attach_unmatchedwarnings occurred.The HTTPS/TLS failure does not appear to be the root cause because the first exit reproduced against a healthy localhost page.
Crash artifact observations
taskkill,Stop-Process, or another process-termination command.This confirms that the in-app Browser/webview crash still reproduces in
26.707.9981.0. The current workaround is to avoid IAB/Browser Use and perform verification in external Chrome or a separate Playwright process.Independent reproduction on the current Windows Store build, with a mitigation A/B result.
Environment
OpenAI.Codex_26.707.9981.0_x64__2p2nqsd0c76g00.144.210.0.26200Observed timeline
Five spontaneous full-app exits occurred during one evening. In every case, the final 2–6 seconds of the desktop log contained the in-app Browser sidebar lifecycle: webview creation/attachment, page open/mapping, and in some runs
dom-ready, followed by an abrupt log end. Windows AppModel-Runtime Event ID 217 recorded destruction of the Codex AppX container at each matching time.The reproductions included both localhost and public HTTPS pages, so they were not tied to one destination.
Negative evidence
Mitigation A/B result
I set
[features] in_app_browser = false, allowed bundled-plugin reconciliation to remove/disable the Browser plugin, and kept the separate Chrome integration enabled. After restarting Codex:codex features listreportedin_app_browser ... falsedom-readyevents occurredThis provides another reproduction on
26.707.9981.0and further separates the crash from Defender or resource pressure. External Chrome remains a viable workaround. I can provide sanitized log tails privately if a maintainer requests them.same error
Summary
On Codex Desktop for Windows, opening the built-in in-app Browser in a specific persisted conversation causes the entire Codex application to silently exit.
The issue reproduced twice across two separate Codex processes. In both reproductions, the desktop logs show that the active persisted thread ID and the browser sidebar route ID do not match:
The active Codex thread and Browser backend use the persisted thread ID.
The browser sidebar remains registered under a stale client-new-thread:<uuid> ID.
Browser API requests fail with No ChatGPT browser route is available.
A Browser Use tab is subsequently created through the stale route.
The WebView emits mcp_app_sandbox.attach_unmatched.
The sidebar reaches dom-ready on about:blank.
The desktop log ends abruptly and Windows destroys the entire Codex AppX container.
There is no normal shutdown sequence, Windows Application Error event, WER crash report, or Crashpad dump.
Steps to reproduce
Update Codex Desktop to 26.707.9981.0.
Open the affected persisted conversation.
Ask Codex to use the built-in Browser.
Wait for the Browser Use sidebar/WebView to open.
The Codex window silently disappears.
Restart Codex and reopen/resume the same conversation.
Retry the Browser operation.
Codex silently exits again.
Observed reproduction rate for this conversation: 2/2.
Expected behavior
The built-in Browser should open and remain associated with the active persisted thread.
If the browser route or WebView cannot be created, Codex should return a recoverable Browser error without terminating the entire desktop application or interrupting the active task.
Actual behavior
The Browser backend starts successfully, but the Browser sidebar is registered under a stale provisional conversation ID.
Reproducing on Store build
26.707.9981.0(arm64), Windows 11. This build is a regression for me — the desktop app worked on the prior build and began crashing immediately after the Microsoft Store auto-updated to26.707.9981.0.Symptom: app launches, then the entire process exits ~8–14s later, with no error dialog (Crashpad swallows it; Windows Error Reporting logs nothing). It's stable while sitting at the sign-in screen and crashes once a workspace/thread loads.
Native signature (matches this thread):
0xC0000005read access violation, threadCrBrowserMain, faulting module bundledchrome.dll,RCX=0, invalid read at0x558. The last main-process log line before every crash isIAB_LIFECYCLE registered browser sidebar thread.Mitigations tested — all still crash identically on this build:
| Attempt | Outcome |
|---|---|
|
[features] in_app_browser = false| Log showsbrowser_use_availability_resolved available=false … reason=browser-pane-disabled, butIAB_LIFECYCLEstill registers the sidebar webview → crash || Disable
browser@openai-bundled+chrome@openai-bundledplugins | Same — pane reports disabled, sidebar still registers → crash || Disable hardware acceleration (
hardware_acceleration_mode.enabled=false) | Crash unchanged || Wipe Chromium profile / partition | Crash unchanged |
| Full clean uninstall + reinstall (empty profile, not signed in → signed in) | Stable at login screen; crashes as soon as a thread loads |
Takeaway: the browser-sidebar webview registration appears unconditional — no feature flag or plugin toggle prevents it from initializing, so there's no config-level workaround on this build. Only the
codexCLI is unaffected.#33202 is related
Independent Windows reproduction
I am experiencing the same in-app Browser crash in the ChatGPT/Codex desktop application.
Environment
1.2026.19010.0.26200)no-active-thread-019f7eba-6dad-71a1-a18d-eecf67d899e1Observed behaviour
Reproduction
Expected behaviour
The internal Browser should open without terminating the desktop host. If the Browser/WebView fails, it should return a recoverable error while the application and other running tasks remain active.
This was also reported through the application's feedback uploader. The symptoms and task interruption appear closely related to #33202.