Skip to content

macOS: hidden Page prewarm redirects the active chat to New chat (captured cross-window navigation) #53901

Open

Description

@piechess1

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

26.1007.71326 (build 20398, production). Runtime call chain captured on 26.1007.30912 (build 20156).

What subscription do you have?

Not specified.

What platform is your computer?

macOS 15.6.1; uname -mprs: Darwin 24.6.0 arm64 arm

What issue are you seeing?

The desktop app unexpectedly leaves the selected conversation and navigates the main window to the New chat/home route (/). Selecting the existing conversation again can be followed by another unsolicited jump. This interrupts normal use of existing chats.

On 2026-10-14, two separate transitions occurred 11.436 seconds apart (all timestamps below are UTC):

Time Main-window route
06:24:05.617 / — first unexpected jump
06:24:10.344 /local/<thread-id> — returned to the existing chat
06:24:17.053 / — second unexpected jump
06:24:20.246 /local/<thread-id> — returned again

Adjacent duplicate owner-sync log entries were deduplicated; these are two transitions, not four. This recurrence was on build 20398 with an ordinary app launch, no debugging arguments, and the temporary diagnostic collector already stopped.

What steps can reproduce the bug?

  1. Open an existing conversation in the Codex desktop app and continue normal use. This installation uses both local and SSH-hosted conversations.
  2. Intermittently, the main window switches to New chat without requesting a new chat.
  3. Select the previous conversation again. In the observed October 14 occurrence, it was redirected again several seconds later.

A deterministic minimal trigger and a clean-profile reproduction are not established. The strongest diagnostic evidence is the captured hidden-Page navigation path below, rather than a reliably repeatable button sequence.

What is the expected behavior?

The main window should remain on the selected conversation unless the user explicitly navigates. A hidden, unclaimed Page prewarm window should not forward its initialization redirects to the visible owner window or steal focus. Normal navigation from an intentionally opened Page should continue working.

Additional information

Captured mechanism on October 13

A 58.983-second local performance trace captured the occurrence ending at 07:40:18.972 UTC. The originating renderer's trace URL identified it as /space/local-page-<redacted>?window=page&prewarm=1; its window was hidden. CPU samples, correlated with the installed production bundles and main-window logs, showed:

Hidden Page prewarm renderer:
React Router <Navigate> effect -> useNavigate -> router.replace
-> Mlc navigation interceptor -> SHa -> THa

Main process, 2.813 ms after the sampled renderer handoff:
navigateInOwnerWindow -> showWindow -> focus

Main-window log: ownerRoutePath=/

The installed main-process implementation forwards navigate-to-route to the owner and invokes showWindow with stealFocus: true. The 150 main-process samples belong to one short navigation operation, not 150 jumps.

Read-only inspection of build 20398 still finds the same relevant behavior: Page availability becoming disabled can render a replacement navigation to /, and non-Page/non-auth navigation from a Page window is handed to the owning main window. The October 14 first jump coincided with hidden-window initialization; a later Page-prewarm timeout reported claimed=false editorReady=false. That recurrence has log correlation, not a second captured call stack.

The exact runtime capability/availability/feature-gate branch selecting the original redirect was not captured. A Statsig bootstrap timeout preceded the October 13 occurrence, but no such timeout was logged in the current app process through the October 14 capture. A Statsig timeout is therefore not established as the root cause.

Regression timing: verified update, uncertain first onset

The user recalls first noticing this after updating on October 8. Retained local logs confirm the version transition:

  • October 8, 02:33:29 UTC: first retained launch of 26.1002.52244 (build 13536), following a process reporting 26.930.31730 (build 12947).
  • October 9, 02:02:32 UTC: hidden-window initialization and a main-window home transition occur close together on 26.1007.21159 (build 20052); a Page-prewarm timeout follows at 02:04:27. This is an early related log pattern, not a captured stack.
  • October 13: the cross-window navigation mechanism above was captured on build 20156.
  • October 14: the two user-observed jumps above persisted on build 20398.

The old process also has home-route entries shortly before the October 8 update. Those logs cannot distinguish manual navigation from an unsolicited jump, and lack the later captured stack. Consequently, the update date is confirmed, but the first affected release and a causal regression in the October 8 update are not proven.

Related reports

Please investigate preventing an unclaimed hidden prewarm renderer's initialization redirect from navigating/focusing the owner window.

This report contains a sanitized diagnostic summary only. Conversation/page/account identifiers, SSH addresses, private paths, conversation content, raw logs and raw traces are omitted. The original evidence remains local.

Activity

  1. added
    app
    on Oct 14, 2026
  2. added
    bug
    session
    on Oct 14, 2026
  3. wangzr622 commented on Oct 14, 2026

    @wangzr622

    Additional occurrence on Codex desktop 26.1007.71326 (build 20398), macOS 15.7.7, arm64, on October 14.

    The user experienced repeated unsolicited navigation from existing conversations to the global New chat screen. Returning to the conversation could be followed by another jump. This affected conversations in multiple projects without the user requesting a new chat.

    Read-only inspection of this installed production build finds the following path consistent with this issue:

    1. PageWindowPrewarm creates a hidden Page window with prewarm=1 and assigns an owning main window. Prewarming can start automatically when the feature flags, authenticated principal and primary-window readiness conditions are satisfied.
    2. Page-window detection checks the Page route and window=page, without excluding a prewarm window.
    3. The Page-route capability/availability guards can redirect to / when capability is unavailable after loading or Pages availability is disabled.
    4. The Page navigation interceptor forwards non-Page/non-auth destinations, including /, through windowNavigation.navigateInOwnerWindow. This path does not distinguish automatic initialization redirects from user navigation or check whether the window is an unclaimed hidden prewarm.
    5. The main-process handler forwards navigate-to-route to the owning main window and calls showWindow with stealFocus:true.

    Build-specific locations (minified symbols; line:UTF-16 column, not original TypeScript locations):

    Bundle Symbol Location
    .vite/build/main-CwxgTOle.js PageWindowPrewarm / iHe 1052:11818
    .vite/build/main-CwxgTOle.js refreshPageWindowPrewarm 1301:44955
    .vite/build/main-CwxgTOle.js navigateInOwnerWindow 1544:10064
    webview/assets/app-initial-1ab6fbe93c4f.js cZ, Page-window detection 3578:319356
    webview/assets/app-initial-1ab6fbe93c4f.js dZ, capability guard 3578:341407
    webview/assets/app-initial-1ab6fbe93c4f.js ZPs, availability guard 4046:103934
    webview/assets/app-initial-1ab6fbe93c4f.js Nlc, navigation interceptor 4048:102985
    webview/assets/app-initial-1ab6fbe93c4f.js _Ha / bHa, owner handoff 3578:319552 / 3578:319969

    Local observation associates repeated main-window home transitions with hidden-renderer initialization/account-check failures, followed by an unclaimed Page-prewarm timeout. This is correlation, not a captured live IPC call stack; the exact runtime guard branch remains unconfirmed.

    An offline check using extracted functions and inert React/host adapters reproduced the owner-navigation and focus request for an unavailable-capability prewarm path. It also checked Page-to-Page navigation, auth-to-home restoration, ordinary local chat routing and loading behavior. This does not constitute a live UI reproduction or verification of a fix.

    Please prevent an unclaimed hidden Page prewarm window's automatic redirects from navigating/focusing the main window. Suggested regression test: keep an existing conversation selected, let a hidden Page prewarm, exercise account-check failure/retry or disabled Page capability, and verify that the main route and focus remain unchanged. Also retain intentional cross-window navigation from a user-opened Page.

  4. AidenGlow commented on Oct 15, 2026

    @AidenGlow

    Windows desktop unexpectedly navigates an existing chat to Home while idle

    App version

    Microsoft Store package OpenAI.Codex 26.1007.9446.0. This is the installed package version, not a CLI version.

    Subscription

    Not included in this public report.

    Platform

    Windows x64; Microsoft Windows NT 10.0.26300.0.

    Observed behavior

    An existing conversation unexpectedly changes to the Home/New chat screen without mouse or keyboard input. The original conversation remains accessible from the sidebar. The user reports that background work continues. The main desktop and agent processes were confirmed to remain the same running instances across the incident below.

    This is an unsolicited navigation event, not an observed full application restart. It is intermittent; a deterministic minimal reproduction is not established.

    Observed reproduction conditions

    1. Open an existing local conversation in the Windows desktop app.
    2. Leave the selected conversation open without interacting.
    3. Intermittently, the main window switches to Home/New chat without being requested.

    The user explicitly confirmed that the 2026-10-15 14:13:01 Asia/Taipei incident occurred without input. No network fault injection was performed.

    Sanitized incident timeline

    All times in this table are UTC on 2026-10-15; Asia/Taipei is UTC+08:00.

    UTC Observation
    06:12:52.582 A primary-appearance background window completed main-frame load: windowId=21, webContentsId=59.
    06:12:54.208 That hidden window's /accounts/check/{version} request failed: status=403, errorCode=cloudflare_challenge, rendererWindowVisible=false.
    06:13:01.189 The same hidden window logged app routes mounted; it was still invisible.
    06:13:01.280 Existing main windowId=1 / webContentsId=1 logged ownerRoutePath=/, following its existing /local/ route. This was 91 ms after the hidden routes-mounted event.

    The main process had started at 02:38:49 UTC and the agent at 02:38:56 UTC; both were still running at 06:30:20 UTC. The inspected main log contained one main-window frame-load event at 02:38:56.290 UTC and no recorded renderer-crash event. Lack of a crash log is supporting evidence, not proof about every subprocess.

    Expected behavior

    Keep the selected conversation and window focus unchanged unless the user explicitly navigates. Background-window initialization failures should not navigate a user's visible conversation.

    Investigation notes and limits

    Read-only inspection of the installed production bundles found a possible cross-window path: a Page capability guard can redirect to /; Page-only navigation can be forwarded through navigateInOwnerWindow; an unowned origin can fall back to the most recently active main window.

    An isolated test of the extracted functions with fake windows and capability results reproduced that possible path. It did not execute or modify the running app. The actual navigation caller, capability result, and initial route of window 21 were NOT captured. Therefore the hidden-Page explanation remains a hypothesis, not a confirmed root cause. The nearby Cloudflare 403 is also not proof that a proxy change would fix this.

    Related upstream report: #53901 describes a captured hidden-Page navigation path on macOS. This Windows report provides independent observations, not an assertion that the causes are identical.

    Please investigate whether a dormant/unclaimed prewarm window can forward an initialization redirect into the main window. Logging the origin/destination window IDs, route, and prewarm/claimed state would help confirm or rule out that hypothesis.

    No app package, plugin, cache, or configuration was changed during this diagnostic pass. No fix has been verified. This report omits conversation content, raw logs, local usernames/paths, account/session/conversation identifiers, and credentials.

  5. wangzr622 commented on Oct 15, 2026

    @wangzr622
  6. 0xdevalias commented on Oct 17, 2026

    @0xdevalias

    Follow-up diagnostics from macOS 26.6 (25G72), ChatGPT/Codex desktop 26.1007.71326, build 20398, on October 16.

    The active chat repeatedly switched to Home/New Chat while the app also displayed “Couldn’t load workspace settings / Retry to continue chatting”.

    This occurrence adds a different account-check failure from the Cloudflare 403s reported above: repeated HTTP 503 responses containing:

    {"detail":"Unable to fetch authentication verification keys."}

    Selected local observations below use UTC on October 15 (October 16 in Australia/Sydney). Window identifiers are process-local diagnostic handles; conversation identifiers are omitted.

    UTC Observation
    23:37:28.685 Hidden window 8 / webContents 19: /settings/user returns 503 with the verification-key error.
    23:37:28.713 Same hidden window: /accounts/check/{version} returns the same 503.
    23:37:29.150 Same window logs app routes mounted; it remains hidden and unfocused.
    23:37:30.301 Visible window 6 / webContents 12 still reports an existing /local/ chat.
    23:37:33.902 That visible window reports / with a client-new-thread identifier.
    23:39:26.034 Page prewarm logs Timed out preparing Page window claimed=false editorReady=false.

    A later pair records the visible window on an existing /local/ chat at 23:44:47.029 and back on / at 23:44:50.683.

    These logs do not capture the navigation caller, prove that window 8 was the timed-out prewarm window, or establish that the 503 caused either transition. They are consistent with the background-window failure/navigation interaction under investigation here.

    Regardless of the availability decision, an automatic redirect in an unclaimed hidden prewarm window should not navigate or focus the user's active chat. Please include unavailable account/settings services—not only Cloudflare challenges—in regression coverage, while preserving intentional navigation from a user-opened Page.

    Further read-only inspection on October 17 verified a more specific branch in our installed 26.1007.71326/build 20398 bundle: the Pages/Spaces availability calculation (t3r in app-shared-8340f229c2b3.js) explicitly returns disabled when the chatgpt capability result has isError. This branch runs before the later feature-gate checks, so a capability error can disable availability without a feature flag itself defaulting off. The inspected ZPs route guard redirects disabled availability to /; the Page navigation interceptor can forward that destination to navigateInOwnerWindow.

    That strengthens the proposed error → disabled availability → Home redirect path. It remains static code evidence: we have not captured the capability state and navigation caller together for our October 16 occurrence, or proven which guard initiated each jump. Regardless of why availability is disabled, an unclaimed hidden prewarm's automatic redirect should not navigate/focus the user's active chat.

    Main investigation and detailed diagnostics

    See also: related reports

    These links group matching symptoms, error responses, and suspected mechanisms for comparison. They do not label every report as a confirmed duplicate or establish a single backend cause.

    Only selected technical observations are included. No raw logs, credentials, account/conversation identifiers, private paths, or screenshots are attached. No new live reproduction or verified fix is claimed.

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