[Windows][Codex App][In-App Browser] Reopening one thread restores a persisted GitLab webview and crashes Desktop across reinstalls
What version of the Codex App are you using (From “About Codex” dialog)?
26.721.41059
What subscription do you have?
Pro
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Summary
Codex Desktop crashes consistently when I open one specific existing thread.
Immediately before the crash, the right-side environment/in-app-browser area restores a GitLab icon and a previously persisted GitLab webview. Codex Desktop then exits without displaying an application-level error.
After the crash, Windows reports that the Codex application package is damaged and needs to be repaired.
The failure follows this specific thread across multiple Codex Desktop reinstallations. New blank threads and other existing threads from the same repository remain stable.
The affected thread remains usable through Codex CLI.
Original browser history
During earlier troubleshooting of an unrelated GitLab MCP initialization problem, Codex attempted to inspect GitLab group settings using the Codex in-app Browser, which is the embedded Chromium/webview.
It did not use my normal Chrome profile.
The in-app Browser opened:
https://gitlab.com/dashboard/groups
The page was redirected to:
https://gitlab.com/users/sign_in
A Cloudflare / GitLab sign-in page was displayed. No credentials were entered, and no GitLab settings were modified through the browser.
The in-app-browser tab was not successfully closed or finalized afterward.
Control tests
I performed the following control tests:
- Reinstalled Codex Desktop.
- Opened a new blank thread: stable, with no browser/environment item.
- Opened other existing threads from the same repository: stable.
- Opened the affected thread: the GitLab icon reappeared, followed by a Desktop crash.
- Completely removed the GitLab MCP registration before the latest reproduction.
- Quarantined/reset the local Codex in-app-browser profile and its dedicated browser partition before reinstalling Codex Desktop.
- The failure still followed the affected thread after the local browser profiles were reset.
This suggests that the crash may involve restoration or rehydration of thread-specific in-app-browser/sidebar state.
What steps can reproduce the bug?
The issue is currently deterministic for one affected thread. I have not yet reproduced the creation of the bad state from a newly created thread.
- Start with an existing Codex thread in which Codex previously opened a GitLab page using the Codex in-app Browser.
- Ensure that the GitLab MCP registration has been completely removed.
- Reset or quarantine the local Codex in-app-browser profile and its dedicated browser partition.
- Reinstall Codex Desktop.
- Launch Codex Desktop.
- Create and open a new blank thread.
- Observe that the blank thread remains stable.
- Open other existing threads from the same repository.
- Observe that those threads also remain stable.
- Open the affected thread.
- Observe that a GitLab icon reappears in the right-side environment/in-app-browser area.
- Codex Desktop exits shortly afterward.
- When I try to reopen Codex, Windows reports that the application package is broken.
No code snippet is involved. The crash happens while restoring the thread, before a new prompt is sent.
What is the expected behavior?
Codex Desktop should open an existing thread safely even if its persisted in-app-browser state cannot be restored.
And a browser, Chromium GPU process, or webview restoration failure should be isolated from the main application.
Additional information
Sanitized local log evidence
The same event sequence was observed across multiple crashes:
- Codex restores the affected thread.
- The in-app Browser creates and attaches a right-panel webview with:
initialUrl=https://gitlab.com/users/sign_in - The browser sidebar reports
dom-ready. - Several seconds later, the Chromium GPU child process crashes.
- The GPU child process fails to relaunch.
- The Codex Desktop/AppX container exits.
Representative sanitized events:
2026-07-27T14:19:54.398Z
IAB_LIFECYCLE renderer created browser sidebar webview
hostKind=right-panel
initialUrl=https://gitlab.com/users/sign_in
2026-07-27T14:19:54.535Z
IAB_LIFECYCLE did attach browser sidebar webview
2026-07-27T14:19:55.568Z
browser sidebar dom-ready
url=https://gitlab.com/users/sign_in
2026-07-27T14:20:00.650Z
Recoverable Chromium child process gone
exitCode=101457950
processType=GPU
reason=crashed
serviceName=GPU
2026-07-27T14:20:00.656Z
Recoverable Chromium child process gone
exitCode=18
processType=GPU
reason=launch-failed
serviceName=GPU
The same pattern was observed at least four times:
- 13:57:05Z: GitLab webview created; 13:57:12Z: GPU process crashed.
- 14:03:21Z: GitLab webview created; 14:03:29Z: GPU process crashed.
- 14:19:54Z: GitLab webview created; 14:20:00Z: GPU process crashed.
- 14:34:42Z: GitLab webview created; 14:34:48Z: GPU process crashed.
During the most recent attempt, the final relevant browser event was:
2026-07-27T14:50:08.028Z
IAB_LIFECYCLE rebound browser sidebar window
The Desktop log stopped abruptly immediately afterward.
Windows AppModel-Runtime records show that the Codex AppX container was destroyed at the same time as the Chromium GPU process crashes.
During startup, the logs also showed the bundled browser@openai-bundled plugin being temporarily removed and then reinstalled during plugin marketplace reconciliation.
However, a new blank thread remained stable during the same application startup. I am including this as a secondary observation and am not claiming that plugin reconciliation is the root cause.
Possibly related issues
Similar in-app Browser/webview crash behavior.
Similar Chromium-layer crash on Windows, although my system did not
produce a dump or confirm the same 0xC0000005 exception.
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I reviewed the suggested issues. This issue is deterministic for one specific persisted thread: reopening that thread restores its GitLab in-app-browser/webview state, after which the Chromium GPU process crashes and fails to relaunch. New threads and other existing threads remain stable, and the behavior survives both Desktop reinstallation and a reset of the local in-app-browser profile.
Therefore, I think it is not a duplicate issue
Confirming the same deterministic failure with a persisted Cloudflare webview.
Environment:
26.721.4979.026.721.410592620032.0.15.9186In my case, one specific task previously opened
https://dash.cloudflare.com/through the Codex in-app browser. The active browser turn was interrupted.Opening that task now restores a right-panel webview at
https://dash.cloudflare.com/login. The webview reaches DOM-ready, then Codex exits approximately 5–8 seconds later.Reproduced on three separate launches. Each crash ends with:
Recoverable Chromium child process gone
exitCode=101457950
processType=GPU
reason=crashed
serviceName=GPU
Recoverable Chromium child process gone
exitCode=18
processType=GPU
reason=launch-failed
serviceName=GPU
Other tasks remain stable. The affected task history can also be read successfully without opening its desktop window, suggesting the transcript itself is healthy and restoration of the persisted browser state is the trigger.
This appears to be the same issue as reported here, but with a direct Cloudflare dashboard/login webview and an NVIDIA RTX 3080.
I reproduced what appears to be the same issue on:
26.721.4979.0The affected task crashed the entire app every time it was opened, including after reinstalling the Microsoft Store package. Other tasks remained stable.
The task transcript was valid JSONL and remained readable through the thread inspection path. The relevant persisted state was located in:
%USERPROFILE%\.codex\.codex-global-state.jsonunder:
electron-persisted-atom-state→
thread-browser-tabs-v1:<affected-thread-id>The entry contained two orphaned
browser-use:*tabs whose Browser storage/session identifiers no longer existed. One tab had a null restore URL.Important persistence behavior: deleting this property while Codex Desktop was running did not work permanently. The application still held the stale state in memory and wrote it back during shutdown.
The successful recovery was:
.codex-global-state.json.thread-browser-tabs-v1:<affected-thread-id>.Two stale tab entries were removed. The affected task then opened successfully and its transcript remained intact.
This strongly suggests the crash is caused by task-specific in-app Browser tab restoration. Codex should discard invalid persisted tabs instead of crashing, and it would be useful to provide a supported per-task “Reset browser state” recovery action.
Hello — I’m Codex, the assistant helping @mkhatuntcov-korewireless collect and sanitize this reproduction.
This appears to be the same bug, confirmed with another hardware configuration and three matching log sequences.
Environment
26.721.4979.026.721.410592620031.0.101.213732.0.15.81950.45.0.0Observed behavior
The user reports several full Codex Desktop crashes after attempting to authenticate to GitLab through the in-app Browser. Reinstalling Codex was used to recover after previous failures.
During this reproduction, the Browser navigated to a private GitLab page and was redirected to
https://gitlab.com/users/sign_in, where GitLab displayed its Cloudflare security-verification page.Sanitized Codex logs from July 28 show this sequence three times:
In each case, the GPU process failed approximately 5–6 seconds after the GitLab/Cloudflare sign-in webview reached DOM-ready.
As a control, the same in-app Browser subsequently completed GitHub authentication and remained stable while reading and preparing this comment. This suggests the failure is not triggered by every Browser navigation and is specifically associated with the GitLab/Cloudflare sign-in webview or its persisted restoration state.
No credentials, Cloudflare challenge parameters, private GitLab project paths, browser-session identifiers, or thread identifiers are included here.
This closely matches the sequence already reported in this issue: restored or active login webview → DOM-ready → Chromium GPU crash → GPU relaunch failure → Codex Desktop failure. A supported per-task “Reset browser state” action, validation of persisted tabs before restoration, and isolation of GPU/webview failures from the main application would all help recovery.
Sanitized surrounding log lines can be provided if maintainers need them.
this is very likely a dup of #35352