Skip to content

[Windows][26.803.10989.0] Multiple embedded browser tabs accumulate WebView2 processes and crash Codex when a task finishes #38308

Open

Description

@achusaa

What version of the Codex App are you using (From “About Codex” dialog)?

OpenAI.Codex 26.803.10989.0 (x64)

What subscription do you have?

ChatGPT subscription (exact tier is not displayed in the Codex diagnostics)

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Codex Desktop exits after a task finishes when several pages have been opened in the right-side embedded browser.

This appears to be an embedded-browser lifecycle / cleanup failure rather than a repository or task failure:

  • Codex Crashpad recorded 7 incidents during the affected sessions.
  • Every remaining Crashpad sidecar reports: {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}.
  • The crashes occurred after repeated embedded-browser use, commonly when the agent task completed and browser tabs were being finalized/released.
  • No corresponding Codex.exe / ChatGPT.exe Application Error was recorded by Windows Error Reporting.
  • The application may close completely instead of returning a browser-tool error.

Observed resource state after repeated sidebar-browser use:

  • 21 msedgewebview2 processes: approximately 974 MB working set, 823 MB private memory, 9,801 handles.
  • 10 ChatGPT processes: approximately 1.7 GB working set, 1.48 GB private memory, 5,212 handles.
  • System memory was not exhausted (approximately 13 GB still available and paging-file use below 1%).

The behavior becomes much more likely as more right-side embedded pages are opened. Keeping only one embedded tab, reusing it, and moving heavy sites to external Chrome substantially reduces the problem.

Related but not identical:

What steps can reproduce the bug?

  1. Start Codex Desktop on Windows.
  2. Run a long task that uses the right-side embedded browser repeatedly.
  3. Open/navigate several embedded-browser pages during the same task (heavy pages such as Figma make the issue easier to reproduce).
  4. Leave multiple embedded pages alive or repeatedly create new browser tabs instead of reusing one.
  5. Let the agent finish the task and finalize/release its browser tabs.
  6. Codex Desktop intermittently exits at or immediately after task completion.
  7. Restart Codex and inspect its Chromium Crashpad reports; a new sidecar is created with ptype: "browser".

The issue has reproduced repeatedly across separate task runs, with 7 browser Crashpad entries observed over one evening.

Workaround:

  • Keep at most one embedded tab.
  • Reuse the same tab for navigation.
  • Close intermediate pages progressively instead of all at task completion.
  • Use external Chrome for heavy web applications.

What is the expected behavior?

Embedded-browser tabs and their renderer/GPU processes should be reclaimed as they are closed or released.

If a renderer, GPU process, or tab-finalization operation fails, Codex should return a scoped browser-tool error and keep the desktop application alive. Finishing an agent task must not terminate the whole application.

Additional information

Environment:

  • Codex Desktop: OpenAI.Codex 26.803.10989.0 (x64)
  • Windows: Microsoft Windows NT 10.0.26200.0 x64
  • WebView2 Runtime: 151.0.4129.78
  • GPU: NVIDIA GeForce RTX 4070 Ti
  • NVIDIA driver: 591.86
  • GPU memory observed during diagnosis: approximately 6.9 / 12 GB
  • A historical nvlddmkm event exists on the machine, so GPU acceleration may amplify the failure, but the strongest evidence is the repeated Codex Crashpad ptype: browser records plus WebView2/process accumulation.

No private project files, credentials, cookies, or crash dumps are attached. Full Crashpad dumps had already been uploaded or cleaned; only the sidecar metadata remained.

Activity

  1. added
    appIssues related to the Codex desktop app
    on Aug 13, 2026
  2. github-actions commented on Aug 13, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. ArielAvila112 commented on Aug 14, 2026

    @ArielAvila112

    Additional reproduction confirming that this issue persists on a newer Windows build:

    • Codex Desktop x64 version: 26.810.4967.0
    • Crash time: 2026-08-14 10:56:39 (UTC-6)
    • Trigger: the agent used the in-app Browser to test a localhost web application, then closed/released the Browser tab at the end of the task. The entire desktop application exited immediately afterward.
    • Crashpad sidecar ID: 4a47c927-e115-4195-9b64-80f80a53e7b3
    • Sidecar metadata: {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}
    • The final app-log sequence was Browser target-close, renderer disposal, guest teardown, then repeated ResizeObserver loop completed with undelivered notifications entries before the process disappeared.
    • No corresponding Application Error or Windows Error Reporting event was recorded.

    The same workflow also crashed earlier that day at 09:50:26 on version 26.803.10989.0, with Crashpad sidecar ID af53bcfa-dd34-4945-97aa-ac3064c3c985 and the same ptype: "browser" metadata.

    This suggests that the embedded-browser cleanup/lifecycle crash persists across the update from 26.803.10989.0 to 26.810.4967.0. Raw logs and dumps are intentionally not attached because the affected session contains private credentials and project data.

  4. txmska742 commented on Sep 10, 2026

    @txmska742

    Reproduced on a newer Windows build:

    • Codex Desktop package: OpenAI.Codex_26.903.9818.0_x64
    • Chromium/file version: 152.0.7977.83
    • Occurred: 2026-09-10 17:29:36 UTC-03
    • Workload: a long local QA task using multiple in-app browser tabs against localhost
    • Result: the entire desktop app exited; the repository worktree remained intact, but the localhost dev servers owned by the app had stopped

    Crashpad created sidecar dd7f3884-8014-408a-ba52-75a7149533fb with:

    {"capture_kind":"crash","osarch":"x86_64","ptype":"browser"}

    No corresponding Windows Application Error/WER event was present. Immediately before the exit, the desktop log repeatedly reported ResizeObserver loop completed with undelivered notifications, then recorded in-app-browser session teardown. This is correlation, not a confirmed root cause.

    Raw logs are not attached because they contain local paths and task/session identifiers.

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 appbrowserbugSomething isn't workingperformancewindows-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