Skip to content

Windows desktop: hidden Pages prewarm renderer causes runaway conversation-resume loop #52093

Closed

Description

@meteop-x

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

26.1002.52244, build 13536, production. Windows Store package: OpenAI.Codex_26.1002.7124.0_x64.

What subscription do you have?

Not specified. This report concerns the Windows desktop runtime.

What platform is your computer?

Microsoft Windows 11 Enterprise, version 10.0.26200 (build 26200), x64.

What issue are you seeing?

The desktop app automatically created a hidden Pages prewarm window even though I had not opened or used Pages. That renderer repeatedly attempted to resume a conversation and logged:

maybe_resume_skipped_inactive_hotkey_window

The retained pre-crash logs contain 141,794 repetitions in approximately 58.7 seconds (~2,416/s). After restarting the app, the same behavior recurred at approximately 1,700 attempts/s. The hidden renderer showed heavy CPU use and roughly 1.2 GB of private memory.

On 2026-10-08 at 11:27:08 (UTC+03:00), Crashpad recorded a native crash with ptype=browser. No minidump was retained. The precise native exception and whether this loop caused that crash are unconfirmed. The unbounded resume loop itself was directly observed.

Mechanism identified in the installed bundle

  1. PageWindowPrewarm (minified class WBe) creates a hidden primary window for /space/local-page-<id>?window=page&prewarm=1.
  2. eHn() detects this prewarm route. ZVn() prohibits acquiring the thread stream in this window through !eHn().
  3. The shared resume-needed predicate ari(resumeState, streamRole) returns true when streamRole == null, without excluding prewarm windows. Thus this window continues to require resume while stream acquisition is prohibited.
  4. The AppServerManager resume branch returns {status: "not-ready", reason: "inactive-window"} before registering inFlightConversationResumes.
  5. use-resume-conversation-if-needed clears isResuming after that normal response without a retry delay or resolving needs_resume. Its exponential backoff is in the exception path.

This appears to permit an unbounded retry loop for a window that cannot own the stream.

What steps can reproduce the bug?

Observed on the affected installation; a clean-install reproduction has not been established.

  1. Start the affected Windows desktop build while authenticated and with the primary window ready. Leave Pages unopened.
  2. The app automatically creates the hidden Pages prewarm window when the relevant feature gates are enabled.
  3. In the affected conversation state, the prewarm renderer has a null stream role and repeatedly attempts conversation resume, receiving not-ready / inactive-window.
  4. Observe repeated maybe_resume_skipped_inactive_hotkey_window log events and high CPU/memory usage.
  5. Closing only the hidden Pages window causes PageWindowPrewarm to create a replacement, which immediately resumes the same loop. Restarting the app also reproduced it on this installation.

Session identifiers and raw conversation contents are omitted from this public report.

What is the expected behavior?

A hidden Pages prewarm renderer should not request conversation resume when acquiring the thread stream is prohibited. A normal not-ready / inactive-window response should not cause an unbounded retry loop. Recreating or restarting the prewarm window should not restart the loop.

Additional information

Runtime correlation

Temporarily suspending only the replacement prewarm renderer stopped the repeated logs while the main window and chat continued to work. During a 138-second observation, there were zero new repetitions and ordinary app logging continued. This is a temporary workaround, not a permanent fix.

Suggested fix direction

Align the resume-needed predicate with the prewarm ownership guard and handle not-ready responses with an appropriate retry policy. An isolated local candidate changed the shared predicate to:

function ari(e,t){return !eHn()&&(e==null||e===`needs_resume`||t==null)}

The extracted-function checks passed 123 assertions, and the modified module passed Node syntax checking. The candidate was not installed. These checks do not validate a patched running app, React invalidation, or cold-start behavior.

The installed build uses embedded ASAR integrity validation. Replacing resources alone is therefore not a deployable fix; please investigate and release a signed desktop update.

Bundled CLI version, for environment identification only: codex-cli 0.162.0-alpha.2.

In-app feedback could not be confirmed

The app displayed “Feedback upload not confirmed”. At 2026-10-08 14:45:47 (UTC+03:00), feedback/upload returned -32603 after 23.535 seconds; the Sentry upload connection was reset (Windows error 10054). Receipt of that feedback is unconfirmed, which is why this report is being submitted here.

This public report omits account identifiers, conversation IDs, personal file paths, tokens, and raw session contents. Additional diagnostics can be provided through an appropriate private support channel.

Activity

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

    @github-actions
    Contributor
  4. meteop-x commented on Oct 8, 2026

    @meteop-x
    Author

    Reviewed both suggested reports: #51888 and #52091.

    They describe the same desktop version (26.1002.52244) and the same maybe_resume_skipped_inactive_hotkey_window storm, so a shared resume-retry bug is plausible. However, the same triggering path has not been established:

    I am keeping this report open for the distinct prewarm diagnostic path; the available evidence supports related reports, but does not yet confirm an exact duplicate. If maintainers confirm the shared root cause, this can be consolidated under #51888 while retaining the Windows/prewarm evidence. The association between the resume storm and native crashes remains unproven.

  5. fortynova commented on Oct 8, 2026

    @fortynova

    Additional macOS / Intel reproduction on the same desktop build, with a controlled test linking the hidden renderer to the CPU load and log storm. Related: #51888 and #52091.

    Environment

    • Desktop bundle named ChatGPT, bundle identifier com.openai.codex.
    • Version 26.1002.52244, build 13536, production channel. Built-in update check returned up_to_date.
    • macOS Sonoma 14.6.1 (23G93), Intel x86_64.
    • iMac19,1, Core i9-9900K, 16 logical CPUs, 72 GiB RAM.
    • The user noticed sustained fan activity after the October 7 app update. Bundle modification time matches that date. This establishes timing, not which release change introduced the problem.

    Observed behavior

    On October 8, a hidden primary-window renderer continuously emitted:

    [electron-message-handler] maybe_resume_skipped_inactive_hotkey_window
    documentVisibilityState=visible
    rendererWindowAppearance=primary
    rendererWindowFocused=false
    rendererWindowVisible=false
    

    The same conversation reference and hidden window were repeated. Conversation identifiers are intentionally omitted.

    • A complete retained log contained 29,789 repetitions in 12.375 seconds, approximately 2,407 events/second and 0.85 MB/second of log text.
    • Main-process logs rotate at roughly 10 MiB, replacing a file approximately every 12 seconds. This is sustained write churn, not unbounded retention of all generated bytes.
    • A coordinated 30-second CPU observation showed the hidden renderer at 108–126% CPU and the main app at 44–53% CPU. On macOS, 100% corresponds to approximately one logical CPU fully occupied.
    • The renderer's sampled physical footprint was approximately 1.1 GiB, with a 1.4 GiB peak. There was ample available RAM, no compressed memory, and no swap activity. Memory pressure does not explain the observed load.
    • Retained logs show the same loop across three separate app launches. The initial UI action that triggers it has not been isolated, and a clean-profile reproduction is not established.

    Controlled causal test

    Only the affected renderer was briefly suspended and then resumed; the main app and backend stayed running.

    Phase Duration Hidden renderer CPU Main app CPU Repeated events/sec
    Before pause 4 s 117.2% 42.5% 2,522
    Renderer suspended 5 s 0% 13.8% 0
    Renderer resumed 4 s 128.7% 43.7% 2,101

    This isolates the renderer as the source of the storm and a substantial part of the main-process load.

    Recreation and temporary mitigation

    Terminating only the busy renderer caused the app to immediately create a replacement hidden primary window. The replacement finished loading in 439 ms, became ready to show in 1,384 ms, and immediately restarted the same loop, reaching approximately 120% CPU.

    Suspending the replacement renderer stopped the loop while the main chat remained usable. A 12.9-second observation after settling, and two subsequent independent five-second observations, each contained zero new loop events. A post-mitigation CPU sample showed the main app at 3.5% CPU and the system approximately 96% idle.

    This is temporary process-level relief, cleared by app restart. It may stall a new Page window that depends on that renderer. No application bundle, feature flags, settings, caches, or conversation databases were modified.

    Mechanism and limits

    Read-only inspection of this installed bundle found the same WBe Page-window preloader creating a hidden primary window for /space/local-page-<id>?window=page&prewarm=1 and replenishing it after renderer exit. This matches the observed hidden-window recreation. However, this investigation did not obtain an explicit runtime route-to-process mapping, so identifying this particular renderer as the Page prewarm window remains an inference.

    The inspected resume guard returns {status: 'not-ready', reason: 'inactive-window'} immediately when the window has no stream role and cannot acquire the stream. The exact retrying caller was not fully resolved in this investigation. The more specific predicate/caller analysis in the issue body is useful corroborating evidence, rather than something independently proven by this macOS capture.

    Please investigate hidden-window resume scheduling and the handling of normal not-ready / inactive-window responses. Expected behavior is an idle hidden renderer without an immediate, unlimited resume retry cycle.

    This report contains sanitized measurements only. Raw logs, private paths, account information, conversation content and identifiers are omitted. Detailed diagnostics remain available locally; no raw diagnostic attachments have been uploaded.

  6. fortynova commented on Oct 8, 2026

    @fortynova

    Follow-up to the macOS/Intel measurements above: the initial renderer suspension was insufficient as a lasting workaround, and an unavailable heartbeat target was identified.

    About twelve minutes after the initial suspension, the same renderer was still stopped (not replaced), and the resume storm remained absent, but the main app consumed approximately 100% CPU. An eight-second sample and per-thread CPU inspection placed that activity in Chrome_IOThread. The stripped framework symbols do not establish the precise function or mechanism. The later CPU drop on resuming the renderer suggests the indefinite process suspension may itself have caused communication-related load; please do not treat SIGSTOP as a permanent fix.

    An ACTIVE ten-minute heartbeat automation targeted the exact conversation reference in the resume loop. Retained app logs repeatedly recorded Heartbeat automation skipped: thread missing for that target across October 5–8. The target was absent from the examined local thread data; remote existence could not be verified. This is not proof of deletion.

    After preserving the automation configuration, I used the app automation API to pause only that heartbeat, preserving its instructions, schedule and target. I then resumed the renderer normally:

    Observation Main app CPU Affected renderer CPU Repeated events
    Heartbeat paused, renderer still stopped; 3 s 100.2% 0% 0
    Renderer resumed; next 6 s 9.7% 20.3% 1
    Next 10 s 0.4% 10.1% 0

    A subsequent independent five-second live-log observation also contained zero repetitions. Several minutes later, the same affected renderer was running normally at 0% CPU and the main app was approximately 2.1% in a process snapshot. Main-window CPU varied with normal activity.

    Pausing the unavailable-target heartbeat and resuming the renderer provides substantially better relief on this installation. It corroborates the heartbeat association reported in #51888, but the combined changes and short observation do not prove a universal root cause or lasting cold-start fix. The initial triggering action and clean-profile reproduction remain unknown.

    Only repetitive entries were removed from closed local logs after creating verified compressed recovery copies. Unrelated entries, the active log, the original captured sample (compressed), CPU samples and count summaries were retained. No private identifiers or raw logs are uploaded here.

  7. meteop-x commented on Oct 10, 2026

    @meteop-x
    Author

    Verified locally in 26.1007.21434 (build 13901, production): the reported Pages-prewarm conversation-resume loop has a concrete fix in the installed code, and I am closing this issue as resolved.

    I compared the extracted production bundles from 26.1002.52244 and 26.1007.21434. The heartbeat resume watcher now:

    • Filters candidates using streamRole != null || canAcquireThreadStream. Its window-activity function includes the existing Pages-prewarm guard for /space/<id>?window=page&prewarm=1 (also when passed through initialRoute). A prewarm renderer without a stream role therefore no longer calls resume for these heartbeat targets.
    • Marks a thread initialized only when the resume result is ready.
    • Applies retry backoff to ordinary not-ready results as well as retryable exceptions: 750 ms, 1.5 s, 3 s, 6 s, 12 s, 24 s, then a 30 s cap.

    An isolated test harness executed the unmodified extracted watch callbacks and candidate/window helpers, with external services and the clock mocked. All 11 scenarios passed: the old callback reproduced 60 immediate resume attempts with no timer for the prewarm case; the new callback made zero attempts in that same case. A separate not-ready case verified that immediate retries are blocked and the delay reaches the 30-second cap. Normal Pages resume, ready completion, stale connection completion, target removal, terminal missing-rollout errors, and an existing stream role were also checked.

    Runtime evidence is consistent with the code fix: on October 10, 2026, this process's retained logs contained 67,502 lines with zero maybe_resume_skipped_inactive_hotkey_window events; an additional 53.1-second observation produced 20 ordinary entries and zero loop events. The temporary renderer-suspension helper is no longer running.

    This confirms the reported resume-loop fix locally. The original native crash cause has not been independently reproduced or established.

  8. phplego commented on Oct 18, 2026

    @phplego

    Adding cross-platform user context, rather than a reproduction of this resolved Windows prewarm loop: on Linux Desktop 26.1007.21434 / Intel Core i7, everyday chat switching still takes roughly 2-3 seconds, long-chat scrolling loses smoothness, and the chat list feels sluggish.

    I have not established a hidden Pages window, resume storm, or shared root cause. The broader responsiveness report is in #18693, with switching details in #11011. I appreciate the concrete fix here and would welcome release-specific information about further work on Desktop interaction latency and scrolling smoothness.

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-serverbugperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions