Skip to content

Codex Desktop crashes when agent closes browser tabs (Windows) #55619

Open

Description

@leviafan20-blip

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

26.1015.12040

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

Summary

Codex Desktop unexpectedly crashed twice on October 20, 2026, while an agent was performing development tasks involving browser automation.

In both cases, the main application process crashed immediately after the agent closed a browser tab using .close().

The entire Codex Desktop application disappeared without an error dialog. After restarting it, I was able to reopen the conversation and access the completed task results.

Expected behavior

Closing an agent-controlled browser tab should not terminate the Codex Desktop application.

Actual behavior

The main application process terminates unexpectedly. No normal task-completion notification is played.

Crash timeline

All timestamps are local time (UTC+5), October 20, 2026.

Event First crash Second crash
Agent invokes .close() 19:04:29.264 20:27:04.455
Browser target closes (reason=target-close) 19:04:33.923 20:27:04.474
Last main-process log entry 19:04:33.966 20:27:04.535
Crashpad metadata created 19:04:34.780 20:27:05.286
Windows AppModel Event 217 19:04:34.996 20:27:05.494

Crash evidence

Both Crashpad reports contain:

capture_kind = crash
ptype = browser

This identifies a crash of the main Chromium browser process hosting the desktop application.

Crash report IDs:

  • 10db4025-c086-4b74-a554-80b11c5c800a
  • 5b57b03f-34d5-4609-9754-22a2b58f00be

Environment

  • Windows 11 Pro, x64
  • Codex package version: 26.1013.4894.0
  • Main application executable: ChatGPT.exe
  • Embedded Chromium version: 155.0.8059.80
  • Separate Codex agent executor process
  • Development project using Django, PostgreSQL, Redis, Celery, and Docker

Additional findings

  • Two crashes of the main application process were confirmed.
  • Both occurred immediately after closing a browser target.
  • Other .close() operations completed successfully, so the issue is intermittent.
  • No corresponding GPU reset, out-of-memory event, or application update was identified.
  • No evidence was found linking the crashes to active worker subagents.
  • Crashpad metadata was preserved, but no usable crash dump or stack trace was found.

Possible cause

There may be a lifecycle-management or race-condition bug associated with closing an agent-controlled browser tab. This is a hypothesis, not a confirmed root cause.

Available diagnostic logs

  • Application logs: %LOCALAPPDATA%\Codex\Logs\2026\10\20\
  • Crashpad metadata: %APPDATA%\Codex\web\Codex\Crashpad\reports\
  • Sentry diagnostics: %APPDATA%\Codex\web\Codex\sentry\

I can provide additional diagnostic information if needed.

Please investigate whether browser target closure can unexpectedly terminate the main Codex Desktop process on Windows.

What steps can reproduce the bug?

The issue occurred twice on October 20, 2026, during agent-driven browser testing in Codex Desktop on Windows 11.

Observed sequence:

  1. Start a development task that involves browser automation.
  2. The agent opens and interacts with browser tabs.
  3. The agent invokes .close() on a browser tab.
  4. The browser target closes with reason=target-close.
  5. The entire Codex Desktop application crashes shortly afterward.

This happened twice, at approximately 19:04:34 and 20:27:05 (UTC+5).

The issue is intermittent: other .close() calls completed successfully. I do not have a deterministic reproduction yet.

What is the expected behavior?

Closing an agent-controlled browser tab should not terminate Codex Desktop. The application should remain open, and the agent should continue its task or display the completed result normally.

Additional information

Two crashes of the main application process were confirmed through Crashpad metadata.

Both crash reports contain:

capture_kind = crash
ptype = browser

Crash report IDs:

  • 10db4025-c086-4b74-a554-80b11c5c800a
  • 5b57b03f-34d5-4609-9754-22a2b58f00be

Crash timeline (UTC+5):

Event First crash Second crash
Browser .close() invoked 19:04:29.264 20:27:04.455
Browser target closed 19:04:33.923 20:27:04.474
Crashpad metadata created 19:04:34.780 20:27:05.286

Environment:

  • Windows 11 Pro, x64
  • Codex app version shown in settings: 26.1015.12040
  • Installed Windows package version: 26.1013.4894.0
  • Chromium version: 155.0.8059.80

No corresponding GPU reset, out-of-memory event, or application update was identified during the investigation.

The crashes may be related to browser target lifecycle management, but the exact root cause is unknown.

Diagnostic logs are available at:

  • %LOCALAPPDATA%\Codex\Logs\2026\10\20\
  • %APPDATA%\Codex\web\Codex\Crashpad\reports\

I can provide additional logs if requested.

Activity

  1. added
    app
    on Oct 20, 2026
  2. added
    bug
    windows-os
    on Oct 20, 2026
  3. github-actions commented on Oct 20, 2026

    @github-actions
    Contributor
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

    appbrowserbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions