Skip to content

macOS desktop unexpectedly switches an existing chat to New Chat; hidden Pages prewarm navigation suspected #53571

Closed as duplicate

Description

@Liiiszt

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

ChatGPT desktop 26.1007.30912 (build 20156); bundle com.openai.codex

What subscription do you have?

Not provided; this report concerns desktop window navigation.

What platform is your computer?

macOS — uname -mprs: Darwin 25.6.0 arm64 arm

What issue are you seeing?

While an existing conversation is open, the desktop app spontaneously switches the visible main window to the New Chat screen. No keyboard input or window switching is required. This has recurred over two days. Four matching sequences were found in local app logs, including one checked immediately after another occurrence was reported.

Latest observed sequence (2026-10-13, UTC)

  • 03:52:30.334 — Hidden window 9 / webContents 32: Statsig: error while bootstrapping post-login client, attemptNumber=6, Timed out while fetching post-login Statsig bootstrap; visible=false, focused=false.
  • 03:53:03.150 — Same hidden window: browser_use_availability_resolved available=false reason=statsig-disabled.
  • 03:53:03.373 — Same hidden window: app routes mounted after 96722ms; still visible=false.
  • 03:53:03.527 — Main window 1: ownerRoutePath=/ conversationId=client-new-thread:<redacted>, just 154ms after the hidden window's routes-mounted log. The main window had previously reported /local/<existing-conversation>.
  • 03:53:26.457 — [page-window-prewarm] Timed out preparing Page window claimed=false editorReady=false.

The browser_use gate log supports a configuration failure but is not direct evidence of the Pages gate value.

Other matching observations (UTC)

Main-window homepage event Nearby hidden-window initialization Surrounding failures
2026-10-12 09:40:47.814 Window 5 routes-mounted 51ms earlier Statsig bootstrap timeout; later unclaimed Page prewarm timeout
2026-10-13 03:05:26.929 Window 7 routes-mounted 43ms later Same pattern
2026-10-13 03:14:55.988 Window 8 routes-mounted 160ms earlier Same pattern

These are correlated logs, not a captured runtime stack proving the cross-window call.

What steps can reproduce the bug?

  1. Open an existing conversation in the macOS desktop app.
  2. Leave it open without keyboard input or switching windows.
  3. During intermittent network/configuration request failures, the app can switch the main window to New Chat while an invisible Page prewarm window initializes.

This describes observed conditions, not a deterministic reproduction. No network fault injection or controlled reproduction was performed.

Suggested controlled reproduction for maintainers: keep an existing chat open, allow the hidden Pages prewarm window to start, then force that window's Statsig bootstrap to time out or its Pages capability to become unavailable. Check whether its fallback navigation to / reaches the visible main window. This proposed test has not been run.

What is the expected behavior?

The active conversation, draft, and window focus should remain unchanged when an unclaimed hidden prewarm window fails to initialize or cannot access a feature. Failure handling should stay within that background window.

Additional information

Suspected code path in the installed bundle

Read-only inspection of this installed build found a path that explains the observed behavior:

  1. Page prewarming creates a primary window with show:false, trackPrimaryOnShow:true, and initial route /space/<local-page-id>?window=page&prewarm=1. The owner is set only when openNewPage claims it.
  2. Pages availability depends on the chatgpt capability and Statsig gate 2200939124. The /space/:pageId route guard redirects to / with replace:true when availability is disabled. A bootstrap timeout alone does not prove the final Pages gate is disabled.
  3. Page-window detection checks window=page without excluding prewarm=1. The router interceptor hands non-Page, non-auth destinations, including /, to windowNavigation.navigateInOwnerWindow.
  4. Without a valid main-window owner, getOrCreateNavigationWindow selects the most recently active main window. navigateInOwnerWindow sends navigate-to-route and calls showWindow with stealFocus:true.

This appears to allow an unclaimed hidden Page window's fallback navigation to change the user's visible conversation. This is a high-confidence hypothesis; the actual handoff call stack has not been captured.

Build and implementation pointers

The installed app is branded ChatGPT, bundle ID com.openai.codex, version 26.1007.30912, build 20156, build commit a993bdbe5bb9503cb84de1e67d5635cf186a959f.

  • main-CqEoQDOU.js: nHe.createWindow / openNewPage, getOrCreateNavigationWindow, navigateInOwnerWindow.
  • app-initial-6350d04672d0.js: XPs (Pages route guard), rZ/nZ (Page-window detection), Mlc / SHa / THa (navigation interception and handoff).
  • app-shared-8bd9d0399038.js: t3r, exported as SU and imported as ic (Pages availability).

Suggested fix and verification

Reject navigation handoffs from dormant/unclaimed prewarm windows at the main-process boundary. Keep unavailable-feature handling local to the prewarm window. Add origin/destination window, route, and prewarm/claimed state to navigation-handoff logs. Regression-test that bootstrap/capability failures do not change an existing main-window conversation or steal focus.

Limits / redaction

The main process remained running across these incidents. Concurrent HTTP 500/504 failures were observed, but their ultimate network/server origin is not established. No patch or workaround has been verified. Conversation text, account identifiers, local usernames/paths, tokens, session transcripts, and raw logs are omitted.

Activity

  1. added
    app
    on Oct 13, 2026
  2. added
    bug
    session
    on Oct 13, 2026
  3. Liiiszt commented on Oct 13, 2026

    @Liiiszt
    Author

    Duplicate of #53570. The two reports contain the same diagnostic evidence; please use the earlier issue #53570 for follow-up.

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

    appbugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions