Skip to content

[Windows] Retained chats/IAB state accumulates 42 renderers, saturates app-server queues, and hangs desktop #55151

Open

Description

@kieransimkin

Summary

Codex Desktop on Windows became progressively unstable while many chats, recurring jobs, and in-app browser sessions were retained. Chats silently stopped responding, the whole app repeatedly froze or closed, and Windows recorded six ChatGPT.exe AppHangTransient events within 44 minutes.

The strongest local evidence points to a combined lifecycle/backpressure failure:

  1. renderer, app-server, browser, and long-chat state accumulated;
  2. the IAB browser entered a very high-volume stale-frame/session lifecycle storm;
  3. app-server queues filled or requests expired;
  4. severe memory and system-commit pressure amplified the failures;
  5. chats became unresponsive and the Electron host hung.

After restarting, closing unused browser tabs, moving 55 chat-bound recurring jobs to 54 fresh chats, and archiving the 54 long source chats, process counts and memory use fell sharply and the app became materially more stable. Those changes occurred together, so the evidence does not isolate one cause or prove a memory leak/garbage-collection defect.

User impact

  • The account moved from 100% to 55% remaining in its seven-day Codex allowance while the user was largely diagnosing and mitigating Codex itself rather than progressing the intended project.
  • Several chats appeared to go dead randomly, including the diagnostic chat.
  • The user repeatedly had to restart the app.
  • The app is now running much better after the mitigation bundle, but the user requests review of usage consumed by failed, interrupted, duplicated, or recovery work.

Environment

  • Windows x64: Microsoft Windows 10.0.19045
  • Running Microsoft Store package: OpenAI.Codex_26.1013.4894.0_x64
  • App updater: version 26.1013.40934, build 20770, production channel, up_to_date
  • Feedback/session ID for internal correlation: 01a136cf-cc28-7752-bf95-91ab6f040675

The differing package/updater version strings are reported exactly and not interpreted.

Confirmed hangs

Windows Error Reporting recorded ChatGPT.exe AppHangTransient at these local BST times on 18 October 2026:

  • 22:29:51
  • 22:39:11
  • 22:55:43
  • 22:56:35
  • 23:10:21
  • 23:13:42

No useful matching minidump or faulting stack was recovered. Windows reports transient hangs rather than a faulting exception.

Resource accumulation

An earlier process snapshot measured:

  • 42 renderer processes using 8.541 GiB private allocation;
  • 19 app-server processes using 3.718 GiB;
  • one GPU process using 2.173 GiB;
  • 15.541 GiB total visible ChatGPT/Codex private allocation;
  • 4,240 MiB available physical memory.

Five later samples measured:

  • 16.509–17.401 GiB combined private allocation;
  • only 586–1,132 MiB available physical memory;
  • 87.33–88.75% system commit.

A separate changing-workload sample counted 52 renderers and 20 app servers. Process roles do not map one-to-one to chats or tabs, and private allocation is not the same as resident physical RAM.

After restart, browser cleanup, and chat migration, a later snapshot measured:

  • 10 renderers;
  • 2 app servers;
  • 4.020 GiB combined private allocation;
  • 12,700 MiB available physical memory.

Relative to the earlier 42-renderer snapshot, this is about 76% fewer renderers, 89% fewer app servers, and 74% less private allocation. The workload and app lifetime differ, so this comparison does not isolate causation.

Browser lifecycle failures

A full scan of the retained 18 October logs found:

  • 59,476 IAB_LIFECYCLE entries;
  • 36,226 Frame with the given id was not found failures;
  • 38 tab is not part of browser session failures.

Across 70 active minutes from 21:05–22:15 UTC, IAB_LIFECYCLE traffic had a median of 534 entries per active minute, a mean of 638.4, and a maximum of 2,112 in one minute.

At 21:29:52.058Z, 0.672 seconds after the first Windows-recorded hang time, the log reported that a tab was not part of its browser session.

App-server queue saturation

The retained day logs contain:

  • 1,878 App server request queue is full messages, spanning 21:09:46–23:01:52Z;
  • 1,176 App server request expired while queued messages, spanning 21:01:10–23:53:55Z.

Logs show filesystem, attachment, thread-list, tail-history, configuration, hook, model, MCP, and other work competing through app-server request handling. Queue failure directly explains why individual chats and controls can stop responding even when the main process remains open.

Correlation around each hang

Counts below cover plus or minus 120 seconds around each WER event. The 21:55 and 21:56 windows overlap, so those totals are not independent.

Hang UTC IAB lifecycle Missing frame Tab/session mismatch Queue expired Filesystem missing
21:29:51 2,369 1,767 3 0 96
21:39:11 790 328 0 70 0
21:55:43 3,509 2,326 0 0 89
21:56:35 2,839 1,644 0 0 91
22:10:21 5,008 3,345 2 33 13
22:13:42 3,290 2,387 1 58 0

Every confirmed hang is surrounded by hundreds or thousands of browser lifecycle and missing-frame entries.

Concurrent long-chat workload

  • The user observed failures while several chats were working and saw many long histories and retained browser tabs.
  • Before migration, one recent-page snapshot reported 25 active chats.
  • After restart/migration, a later recent-page snapshot reported 2 active and 48 idle.
  • Fifty-five chat-bound recurring jobs were moved to 54 fresh chats and all 54 old owners were archived.
  • Stability subsequently improved by the user's observation.

The desktop app exposes no supported mapping from renderer/app-server processes or retained browser tabs to their owning chats, preventing direct attribution.

Negative evidence and limits

  • No retained 18 October log line matched rendererGone, an explicit out-of-memory event, or a GPU-crash category.
  • No useful 18 October minidump or native faulting stack was recovered.
  • Absence of an explicit OOM log does not negate independently measured memory/commit pressure.
  • A controlled one-variable reproduction was not attempted because deliberately recreating the instability risked active work.
  • The stale-frame storm may be a cause, amplifier, or symptom. The temporal association is strong, but the internal defect is not proven.

Expected behavior

  • Completed browser tabs, idle renderers, app-server resources, and long-chat history state should be reclaimed automatically.
  • Background hydration, browser lifecycle work, and scheduled chats should not starve interactive requests.
  • Interactive messages and recovery controls should receive priority over bulk/background work.
  • The app should show which chat or browser owns resource use and warn before retained state reaches a destabilising level.
  • A compact/checkpoint-and-continue recovery path should preserve work without forcing repeated paid diagnostic turns.
  • One stale browser frame, oversized history, or slow chat should fail in isolation rather than hanging the app.

Related issues

This report appears related to all four mechanisms but has a distinct combined trigger and measured resource footprint.

Diagnostic availability and privacy

The local package retains the exact six WER report IDs, per-hang counts, process snapshots, full ranked analysis, charts, and redacted submission receipts. The user authorises sharing relevant chat content, identifiers, titles, filesystem paths, diagnostic logs, and project context for this investigation. Credentials, access tokens, cookies, authentication material, and unrelated secrets must remain excluded. Raw logs should be reviewed/redacted before any upload.

This diagnosis was produced with AI-assisted log and process analysis. All causal limits above are intentional.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Oct 19, 2026
  2. kieransimkin commented on Oct 19, 2026

    @kieransimkin
    Author

    The 19 October recurrence supports tracking two operationally distinct mechanisms.

    I opened #55159 for the IAB stale-frame/browser-control retry loop: 23,388 IAB_LIFECYCLE lines, including 15,720 Frame with the given id was not found errors, with three new Windows AppHangTransient events. During that recurrence there were zero queue-full or queue-expiry messages, and resource pressure was materially lower than in this report.

    I suggest keeping this issue focused on retained chats/browser resources, high renderer and app-server counts, memory/commit pressure, and queue backpressure. #55159 contains the newer evidence for repeated executeCdp:DOM.getFrameOwner calls against detached frames, multi-chat ownership/rebinding, and missing teardown after a failed browser task.

    The mechanisms may interact, but separating them avoids treating the stale-frame retry storm as merely an out-of-memory symptom.

  3. kieransimkin commented on Oct 19, 2026

    @kieransimkin
    Author

    Queue saturation recurred after restart and fresh-chat migration (19 October 2026)

    In the current Windows app instance, bounded log reads for 03:00:00-03:17:03 BST (02:00:00-02:17:03 UTC) contain 474 queue-full, 247 queue-expired and 4 timed-out-while-queued warning/error log lines. These are application log-line counts, not unique requests or crashes; quoted assistant reasoning/tool output was excluded.

    Rejection records show 64 interactive requests queued and 4 in flight, with about 30 seconds before expiry. Plugin inventory, MCP catalog and app-mention discovery failed during the backlog. Both external Chrome/Edge provider selections also failed, but a causal connection is unproved.

    At 03:15:08 BST, 41 visible ChatGPT/codex processes used 6.630 GiB private allocation; available physical memory was 6,063 MiB and system commit 87.555%. At 03:20:05, private allocation was 6.661 GiB, available physical memory 8,839 MiB and commit 81.281%. Changing workload prevents causal attribution.

    There were also 29 successful thread/queue/list response records in the window, last at 03:17:02.715 BST. The user subsequently reported that the visible queue errors stopped. No app restart or process termination was performed during this investigation. This is observed recovery, not a permanent fix.

    The counted failure records contain zero missing-frame errors, so this recurrence is not evidence of another #55159 stale-frame storm.

    Diagnostic caveat: live Windows file Length/LastWriteTime metadata lagged current readable log content. A metadata-only recent-file filter initially missed these events. Bounded content reads with event-timestamp filtering found them; earlier metadata-only zero-event readings are unverified.

    The user now reports 9% weekly allowance remaining and requests review of usage spent on interrupted work and diagnosis. This display value is user-reported; no per-operation attribution is claimed. Same package: OpenAI.Codex_26.1013.4894.0_x64. Relevant evidence is retained with feedback ID 01a136cf-cc28-7752-bf95-91ab6f040675.

  4. kieransimkin commented on Oct 20, 2026

    @kieransimkin
    Author

    Browser-disabled Codex hang during a burst of scheduled chat starts (20 October 2026)

    Windows recorded a new Codex MoAppHang at 23:07:56–23:07:58 BST while in-app browser control remained disabled.

    • Package: OpenAI.Codex_26.1013.4894.0_x64__2p2nqsd0c76g0
    • ChatGPT.exe version: 155.0.8059.80
    • WER report ID: 899a4aa1-acee-401a-9f24-95eb4aa35a04
    • Hang signature: f63f; hang type: 134217728

    The post-recovery resource snapshot was well below the original memory-pressure incident: 17 visible ChatGPT/Codex processes, 3.65 GiB combined private allocation, 3.92 GiB working set, approximately 12.7 GiB available physical memory and 39.97% system commit. This hang therefore did not require the earlier 15–17 GiB / 87–89% commit condition.

    There was substantial concurrent startup activity: 20 rollout sessions were created from 22:57 through 23:07, followed by 12 more from 23:12 through 23:14 after recovery. The automation inventory contained 60 definitions, 57 ACTIVE. Two other chats were reported active at diagnosis time; both were checkpointed and stopped, and their directly associated schedules plus the stability monitor were paused.

    This is operationally separate from #55159 because browser control was disabled. It suggests another path involving automation/chat-start bursts, app-server contention, or storage latency. The previous browser-disabled freeze sample also found a high Z: disk queue with low throughput, and Codex state is on Z:, but this does not prove the storage layer or any particular automation caused the hang.

    No Codex, browser or render process was killed or restarted. Feedback/session ID remains 01a136cf-cc28-7752-bf95-91ab6f040675.

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

    appapp-serverbrowserbugperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions