Skip to content

[Windows app] Main-process crashes after IAB sidebar teardown on build 21161; monitor off / RustDesk #55891

Open

Description

@ceeim

Environment

  • Product: Codex desktop app for Windows.
  • Windows package observed in the executable path: OpenAI.Codex_26.1016.6573.0_x64.
  • Desktop build recorded in both affected runs: 21161.
  • Build commit: 28ffa59d1a9faff009b5e11511b65a65183038f1.
  • OS: Windows 11 Pro for Workstations, x64, version 10.0.26100 (build 26100; patch revision not collected).
  • Display adapters reported by Windows:
    • NVIDIA GeForce RTX 5080, driver 32.0.16.1742.
    • AMD Radeon(TM) Graphics, driver 32.0.21045.11001.
  • Remote-control software: RustDesk 1.4.2+60. At inspection, RustDesk and Codex were using the existing console session, rather than an RDP session.
  • Subscription: not collected for this report.

Issue

The whole Codex desktop window unexpectedly disappears and must be relaunched. Two confirmed browser/main-process crashes occurred on build 21161 on October 21, 2026.

The user initially associated the exits with switching off the physical monitor. For the latest crash, the monitor had already been off for some time and the user was accessing this PC through RustDesk from another computer. The user reports that they were not manually interacting with the app at the moment of the crash; Codex was carrying out its own operations.

The affected logs show embedded Browser Use / IAB sidebar teardown immediately before both crashes. Monitor power state, RustDesk, and IAB teardown are context or candidate factors, not established causes.

Confirmed crash artifacts

These are Crashpad sidecar filesystem last-write timestamps, not independently measured native exception times.

Local time (Asia/Singapore, UTC+08:00) UTC timestamp Crashpad report ID
2026-10-21 18:38:50 2026-10-21T10:38:50.8346428Z 6031d057-3d55-4024-a163-300f19f0e74b
2026-10-21 21:01:56 2026-10-21T13:01:56.6226847Z 6bd69b11-3141-4d33-bc06-1f2aa0f63624

Both retained sidecars contain exactly:

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

After the latest crash, a fresh ChatGPT.exe main process started at approximately 13:02:45.926 UTC.

Sanitized pre-crash sequence

All times in this section are UTC on October 21.

Earlier affected run:

10:38:50.187  IAB unregistered debugger listener; reason=manual; webContentsDestroyed=false
10:38:50.198  renderer disposed browser sidebar webview
10:38:50.205  browser sidebar guest torn down
10:38:50.212  removed/closed browser sidebar page
10:38:50.231  browser host/session lifecycle activity
10:38:50.332  final desktop log record; fs/readDirectory response
10:38:50.834  Crashpad sidecar last-write timestamp

Latest affected run:

13:01:56.020  IAB unregistered debugger listener; reason=manual; webContentsDestroyed=false
13:01:56.023  renderer disposed browser sidebar webview
13:01:56.028  browser sidebar guest torn down
13:01:56.031  renderer removed browser sidebar webview; tabType=closed
13:01:56.032  closed browser sidebar page
13:01:56.037  another sidebar webview disposal
13:01:56.041  another sidebar guest torn down
13:01:56.047  another sidebar page removed/closed
13:01:56.211  final desktop log record
13:01:56.622  Crashpad sidecar last-write timestamp

The word manual above is a literal internal log value. It must not be interpreted as evidence that a human clicked Close. The inspected lifecycle records do not identify the initiating agent tool call. Both logs end abruptly after routine RPC activity, including filesystem-metadata errors; those request errors are not an identified native crash stack.

Observed workflow and reproduction limits

  1. Run Codex tasks on this Windows desktop, including tasks that use the embedded browser.
  2. Switch off the physical monitor while leaving Windows awake.
  3. Access the same desktop remotely using RustDesk and allow Codex to continue its operations.
  4. Intermittently, the entire application exits and needs to be relaunched.

This describes the observed workflow, not a deterministic minimal reproduction. The physical power-button press is not established as the immediate trigger.

A short, instrumented screen-off test from 16:53:13 to 17:06:53 local time did not reproduce the crash. The original main PID and process start time remained unchanged, heartbeats continued, and no new Crashpad artifact appeared during that interval. The same build subsequently crashed at the times listed above, so that short test did not establish a fix.

Other checks and diagnostic limits

  • Configured automatic sleep is Never on AC and battery; hibernation is disabled.
  • Scoped Windows Application/System queries around the two crashes found no matching Codex Application Error/WER/Hang, sleep, or display-driver-reset event.
  • Scoped TerminalServices session-event queries around the incidents returned no matching session-switch records. This does not prove that RustDesk made no display-related changes.
  • The retained crash directory currently contains sidecar metadata, but no native dump was available to this investigation. There is no exception code, faulting module/offset, or native stack to compare.
  • Resource monitoring started after relaunch cannot determine memory or handle usage at either earlier crash.

Expected behavior

Codex should remain running during unattended agent work and embedded-browser cleanup. Closing or disposing an IAB guest should not terminate the desktop host or require relaunching the application.

Related reports and request

The observed lifecycle pattern resembles #55132, #51560, #53983, and #42006. Without a native dump, this report cannot establish that these share the same underlying defect.

Please investigate the embedded-browser debugger/guest/sidebar teardown path on build 21161 and advise on a supported way to retain useful native crash diagnostics. Only sanitized event summaries and crash report IDs are included here; conversation contents, account identifiers, website URLs, personal filesystem paths, full logs, and memory dumps are omitted.

Activity

  1. added
    bug
    app
    windows-os
    on Oct 21, 2026
  2. github-actions commented on Oct 21, 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