Skip to content

[Windows Desktop 26.1016] Main UI blocked for 105 seconds by serial Statsig bootstrap retries and fallback initialization #55892

Open

Description

@suhan3z

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

  • Installed application metadata: 26.1016.51333, build 21161, production flavor.
  • Microsoft Store/MSIX package: OpenAI.Codex 26.1016.6573.0, x64.
  • Local app-server reports 0.163.0-alpha.11.

These were read from the installed package and current launch log; the About dialog was not used. The Windows executable is named ChatGPT.exe inside the OpenAI.Codex package.

What subscription do you have?

ChatGPT account authentication. Subscription tier was not collected for this diagnostic.

What platform is your computer?

Windows 11 Pro 25H2, build 26200.9711, x64.

What issue are you seeing?

The desktop app takes almost two minutes from process creation to mounting its main UI, despite successful local app-server initialization within the initial native startup. The current renderer explicitly logs app routes mounted after 105510ms.

The main UI is gated on post-login Statsig bootstrap. In the installed renderer, a bootstrap request has a 10-second timeout and may be retried five times after the first attempt, with 500 ms between attempts. This is 62.5 seconds of serial configured timers before fallback, excluding surrounding setup, timer scheduling delays and fallback initialization. The provider displays a loading component instead of its children while these attempts are pending. On failure it switches to another Statsig initialization path, which also gates its children on identity/client readiness.

Current observed launch — October 21, 2026, UTC

Time Event
13:23:25.687 Main ChatGPT.exe process creation time reported by Windows
13:23:36.139 Launching app
13:23:37.138 Primary window ready-to-show, logged startupElapsedMs=782
13:23:37.318 Local stdio initialization handshake succeeds in 450 ms
13:23:37.578 Native host critical-path phases complete, startupElapsedMs=1825
13:23:38.993 React root render requested
13:23:47.186 ChatGPT account lookup completes successfully
13:24:45.546 Statsig bootstrap fails, attemptNumber=6, timeout error below
13:25:18.180 Runtime configuration/remaining renderer initialization resumes
13:25:22.000 [startup][renderer] app routes mounted after 105510ms

The timeout is 66.553 seconds after the React root render request. Another 32.634 seconds pass before the runtime configuration log appears, and the routes mount 3.820 seconds later. Process creation to route mount is approximately 116.3 seconds. These clocks have different origins; the renderer's own 105.510-second value is reported separately.

Exact diagnostic error, with environment identifiers omitted:

Statsig: error while bootstrapping post-login client
attemptNumber=6
errorName=Error
errorMessage="Timed out while fetching post-login Statsig bootstrap"

The primary window remained visible in the retained records, although focus changed. This is an observed launch trace, not a controlled foreground benchmark. Route mounting is an instrumented readiness milestone, not a claim that every restored chat/plugin is fully usable at that instant.

What steps can reproduce the bug?

Observed user sequence

  1. Start the signed-in Windows desktop application normally.
  2. On the affected connectivity/bootstrap path, the native window and local app-server initialize successfully, but the main interface remains in startup.
  3. Wait for the sixth post-login Statsig bootstrap attempt to fail.
  4. Initialization eventually continues and the routes mount roughly 105 seconds into the renderer lifetime.

The original reason the authenticated bootstrap request stops completing has not been isolated. This is not claimed to reproduce on every launch or account.

The same installation's retained October 17 launch also logged a sixth-attempt bootstrap timeout followed by app routes mounted after 104084ms, while native startup completed in 1669ms. That older trace references package 26.1013.4894.0; therefore this is not evidence that version 26.1016 introduced the issue.

Offline validation of the retry mechanism

A local, isolated Node VM harness extracted the actual q$l request wrapper and b0l retry loop from the installed webview/assets/app-initial-2b6b8063022d.js. It supplied a never-resolving request and accelerated timers to 1 ms while recording their original durations. It did not modify or call the running application.

Result: PASS — six request calls; scheduled timer durations:

10000, 500, 10000, 500, 10000, 500, 10000, 500, 10000, 500, 10000
sum = 62500 ms

The request and retryability predicate were stubbed. This verifies the configured retry budget under a retryable request failure; it does not identify the real network fault, measure real elapsed time, or validate the full fallback delay.

What is the expected behavior?

Startup should have a short overall deadline for remote feature configuration and an explicit degraded/retry state. A slow feature-bootstrap request should not keep the entire main interface behind more than a minute of serial retries when the local backend is already ready.

Account, workspace and security restrictions should remain enforced. A cached or restricted shell, a clear network/configuration error, or background retries would be preferable to an opaque near-two-minute startup. Fallback initialization should share the same overall deadline instead of adding another blocking initialization phase.

Additional information

Installed renderer code path

Read-only inspection of the unmodified installed bundle found:

  • eTa posts to /wham/statsig/bootstrap using the app's authenticated HTTP wrapper, with lower-level retry disabled.
  • q$l races that request against J$l = 10000 ms and aborts it on timeout.
  • b0l increments the attempt counter, permits F0l = 5 request retries, and waits I0l = 500 ms between them. A separate authentication retry counter also exists; it is not required for the six request-timeout budget demonstrated above.
  • y0l returns the CodexStatsigProvider.sync loading component while bootstrap data is missing. After the mutation reaches error, it renders h0l as fallback.
  • The fallback passes through g0l identity readiness and _0l / useClientAsyncInit, returning CodexStatsigProvider.async.identity, .async, or .async.update loading components while pending. The hook clears its loading state after initializeAsync() settles.

This establishes a blocking serial bootstrap/fallback mechanism consistent with the launch trace. The additional 32.6-second interval is consistent with fallback work, but its exact breakdown was not instrumented. DNS, proxy behavior, backend latency and the transport layer remain possible causes of the request failure, not established root causes.

The cloud/durable app-server connection starts at 13:25:18.342, after the bootstrap delay; a later cloud connection problem cannot explain the preceding first minute of waiting. The log also contains a remote plugin catalog response-decoding warning during startup, but it is not sufficient to attribute the Statsig timeout to that warning.

Related report

#54229 reports similar ~100-second bootstrap stalls on an older build, with language/browser/plugin availability changes. This report focuses on main UI startup blocking in version 26.1016, with a fresh measured trace and isolated validation of the serial retry budget. These may share an underlying cause; please consolidate if appropriate.

No live application restart, cache reset, network configuration change, credential extraction, or installed-code modification was performed for this diagnostic. Only allowlisted timings, public endpoint paths, sanitized error text and code symbol references are included; account identifiers, local project paths and raw application logs are omitted.

Activity

  1. added
    bug
    app
    windows-os
    connectivity
    on Oct 21, 2026
  2. binawoh commented on Oct 29, 2026

    @binawoh

    Additional Windows reproduction after a Microsoft Store update on 2026-10-29, with before/after timings and a missing Dot entry.

    Versions and update boundary

    • Earlier launch logs reference MSIX package OpenAI.Codex 26.1023.6123.0.
    • The updater recorded download_completed ... result=succeeded at 17:12:15 UTC+8.
    • The launch beginning around 17:18 and subsequent launches reference 26.1023.6621.0.
    • Current installed application metadata: 26.1023.51421, build 22530, production flavor.
    • Windows x64, OS build 26300.9711. Versions above were read from installed metadata and logs, not the About dialog.

    Measured before/after behavior

    All times below are UTC+8 on October 29. These are retained launch traces, not a controlled benchmark.

    Launch MSIX package Native host critical-path completion Renderer “app routes mounted after”
    15:09 26.1023.6123.0 1,637 ms 13,250 ms
    15:39 26.1023.6123.0 1,499 ms 15,289 ms
    17:18 26.1023.6621.0 5,033 ms 75,992 ms
    17:31 26.1023.6621.0 2,845 ms 79,717 ms
    17:40 26.1023.6621.0 1,263 ms 84,627 ms

    The two metrics have different clock origins. Route mounting is a readiness milestone, not a claim that every feature is usable at that instant.

    The 17:31 and 17:40 launches each log the following failure for the primary, spotlight and avatar-overlay renderers:

    Statsig: error while bootstrapping post-login client
    attemptNumber=6
    errorMessage="Timed out while fetching post-login Statsig bootstrap"
    

    There are six such log entries across those two launches; each entry reports attempt 6. The retained local logs for October 24–28 contain no matches for this exact error. This is limited to the logs available on this machine.

    In the latest launch:

    • Native host critical path completed at 09:41:00.548Z.
    • Account lookup completed successfully at 09:41:05.568Z.
    • Primary renderer bootstrap failed at 09:42:07.273Z.
    • Main routes mounted at 09:42:24.612Z, with the renderer reporting 84627ms.

    Additional symptom and current-build inspection

    The user also reported an existing Dot disappearing. Read-only UI inspection confirmed that the Dot entry was absent from the desktop navigation. Its server-side state and a causal connection to the bootstrap timeout have not been established.

    Read-only inspection of the current installed renderer confirms the same blocking mechanism described in this issue:

    • $D races the bootstrap request against a 10,000 ms timer.
    • UO permits five request retries, with 500 ms between attempts.
    • HO renders CodexStatsigProvider.sync while data is unavailable, and switches to the RO fallback on error.
    • The request wrapper posts to /wham/statsig/bootstrap.

    Thus six timed-out attempts can consume 62.5 seconds of configured timers before fallback, consistent with the observed delay. This is static corroboration of the current build, not a new live request capture.

    Scope and investigation request

    The local deterioration follows the update boundary, but this issue and earlier reports show that the failure mechanism predates this release. Please investigate a possible update-triggered recurrence/regression and whether feature initialization failure also hides the Dot entry (related symptom in #55142).

    No rollback comparison or authenticated bootstrap request capture was performed, so a client regression, remote configuration change, and request-path/network failure remain unresolved alternatives. No claim of an intentional feature withdrawal is being made.

    Please retain an actionable loading/retry state and avoid silently losing discoverability of an existing Dot when remote feature configuration is unavailable.

    Only sanitized diagnostic text is included. No account or conversation identifiers, credentials, local project paths, screenshots, raw logs, or application code are attached.

  3. kkkzbh commented on Nov 5, 2026

    @kkkzbh

    Additional Linux RPM reproduction (2026-11-05): progressing bootstrap bodies hit the 10-second deadline

    Adding Linux measurements that closely match the serial bootstrap/startup mechanism described here.

    Environment and installation scope

    • Fedora Linux 44, KDE Plasma/Wayland, x86_64; kernel 7.2.11-200.fc44.x86_64.
    • Official installed RPM: chatgpt-26.1029.61003-1.x86_64; paired CLI: 0.166.0-alpha.6, copied unchanged from that RPM and verified by SHA-256.
    • ChatGPT account authentication; subscription tier was not collected.
    • The failing desktop was a locally staged RPM adaptation carrying appearance, Browser/proxy, plugin-cache, and connection/transport patches. This is an adapted-installation reproduction. An otherwise identical pristine-RPM reproduction has not been established.
    • To constrain that limitation, the actual failing archive was compared with the pristine RPM archive: the bootstrap request/deadline function (tZ), retry owner (nx), synchronous bootstrap provider (nk), and endpoint wrapper (eT) are byte-identical. Their timeout/retry/bootstrap logic was left unchanged.

    User launch timing

    The primary window reported ready-to-show after 260 ms, and the native host critical path completed after 3573 ms. The renderer logged its initial React-root render request at 20:31:28 UTC+08, while runtime configuration and remaining renderer services resumed around 20:33:07 UTC+08: approximately 99 seconds later. These native and renderer measurements have different timing origins; this is an observed launch trace, not a controlled full-app-readiness benchmark.

    Actual desktop request capture in a separate reproduction

    An isolated KWin session using a snapshot of the renderer storage reproduced the loading state. Chromium NetLog captured the desktop-owned authenticated POST /backend-api/wham/statsig/bootstrap requests. The first six requests all received HTTP 200, with Brotli-compressed JSON response headers, and body data was still arriving before their approximately 10-second lifetimes ended.

    Attempt Time to response headers URL-request lifetime Encoded body bytes received Decoded body bytes received
    1 1.914 s 9.879 s 966,083 5,695,016
    2 2.285 s 9.998 s 912,963 5,674,782
    3 3.160 s 9.997 s 817,360 4,971,630
    4 5.123 s 9.997 s 483,310 2,370,562
    5 6.632 s 10.000 s 456,968 3,156,687
    6 4.040 s 9.999 s 1,087,930 5,594,218

    These are partial body counters, not complete payload sizes. A successful status/header did not mean the configuration had finished downloading. URL-request lifetimes exclude setup before the URL request starts, so they need not equal the outer timer exactly.

    Current RPM source inspection confirms the complete request/body operation races a 10,000 ms timer that aborts the request. Eligible failures permit five retries after the initial attempt, separated by 500 ms, while the provider renders its loading state. The resulting 62.5-second configured timer budget is consistent with the observed long foreground wait, before additional initialization.

    Routing and limits

    NetLog confirmed that these requests reached the configured local HTTP proxy. A later read-only proxy-controller check also showed current ChatGPT connections using the selected outbound proxy node. This establishes proxy use; it does not identify whether the transfer bottleneck is at the proxy, network path, intermediary, or server. No controlled alternate-route comparison or successful complete-body timing was collected in this reproduction.

    The launch trace and the isolated request capture are separate observations. Installation adaptations remain a confounding factor despite the byte-identical bootstrap functions. No claim is made that every Linux installation is affected or that the underlying network bottleneck has been isolated.

    Could maintainers investigate a bounded overall foreground startup budget and complete-body/progress-aware request handling? A response that is actively downloading can repeatedly lose its progress under the fixed deadline. Increasing each attempt's limit while keeping six blocking attempts could also multiply genuine outage waits, so the retry budget and UI readiness need to be considered together.

    Only sanitized version/timing/byte-count evidence is included. No credentials, account identifiers, proxy credentials, chat contents, raw network captures, response bodies, screenshots, or installed application code are attached.

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

    appbugconnectivityperformancewindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions