Skip to content

Windows desktop startup bootstrap timeout disables language/browser/plugins #54229

Open

Description

@riki-forsure

Environment

  • Date: 2026-10-15. Times below are UTC+8.
  • Windows desktop package: OpenAI.Codex 26.1007.9446.0.
  • Application reported release: 26.1007.71326, build 20398.
  • Bundled CLI: 0.162.0-alpha.17.2.
  • Electron dependency declared by the installed app: 42.3.0.
  • Browser: Microsoft Edge; ChatGPT extension installed and enabled.
  • Windows system HTTP proxy is configured to a local loopback listener. No proxy credentials or account identifiers are included here.

Problem and timeline

  1. Failed desktop startup at 14:43: the local startup critical path completed in 1198 ms. React root render was requested at 14:43:33.418. At 14:44:39.884, the post-login Statsig bootstrap failed on attempt 6 with Timed out while fetching post-login Statsig bootstrap. Subsequent initialization continued around 14:45:12.729, approximately 100 seconds after initial rendering.
  2. Browser availability then became available=false reason=statsig-disabled. The bundled marketplace contained only codex-app-tools, latex, and visualize. An earlier startup automatically uninstalled unified-computer-use with reason=not_in_bundled_marketplace_plugin_names.
  3. A normal startup at 15:03 using the same app release completed the feature initialization path in approximately 7.4 seconds. Browser availability was true, eight bundled plugins appeared, and the user confirmed that UI language and language switching worked normally. Browser control requests nevertheless still failed later.
  4. A startup at 15:56 with explicit per-process proxy settings reproduced the failed state: local startup 803 ms, Statsig bootstrap attempt 6 timed out after approximately 65 seconds, and browser availability became false approximately 100 seconds after React initialization. The bundled plugin list again dropped to three entries. This startup method did not solve the problem and has been withdrawn.

Additional observed errors

  • Remote plugin catalog: error decoding response body.
  • Desktop cloud app-server connection: repeated failureReason=open_timeout.
  • App list: Failed to parse JSON response after approximately 60 seconds.
  • Edge control API: nodeRepl.fetch request failed after approximately 21 seconds, including list-tabs requests. Extension/native-host metadata checks passed. Reloading the browser extension, reinstalling the managed Browser/Chrome plugins, and recreating the control session did not restore page control.
  • The extension panel showed ChatGPT is ready / start the local app server.

Diagnostics and limits

  • codex doctor --json reported successful provider HTTP reachability, assets CDN HTTP 200, and Responses WebSocket HTTP 101. These are different requests from the desktop feature-bootstrap and cloud app-server requests, so they do not establish that the failing desktop paths are healthy.
  • The same doctor run reported that the desktop app was not running, although its main process was present. This limits the desktop-specific results from that run.
  • A connection sample showed the desktop main process opening a direct TCP connection to the address cached for codex-cloud-backend.chatgpt.com, remaining in SYN-SENT despite a system proxy being enabled. The sampled connection's proxy handling merits investigation; it is not proof that every failed request uses this path.
  • No account tokens, cookies, user files, raw session transcripts, or full unredacted logs are included in this report.

Requested investigation

Please investigate why a failed post-login bootstrap changes the visible language/browser/plugin state, why startup reconciles the bundled plugin list and uninstalls components after such a failure, and why the desktop cloud connection path behaves differently from successful CLI Responses WebSocket diagnostics.

Please also investigate the browser control request timeout despite passing extension/native-host metadata checks, and the Windows desktop process detection used by doctor.

Activity

  1. added
    bug
    app
    windows-os
    connectivity
    skills
    on Oct 15, 2026
  2. ltuswwnnwnw-blip commented on Oct 17, 2026

    @ltuswwnnwnw-blip

    In-app Feedback ID: 43f5f8d7-d6c2-45b2-b3b6-f40c43918439

    Additional reproduction and code-level diagnostics from Windows Codex Desktop 26.1013.4894.0.

    Environment:

    • Windows 11 x64
    • Codex Desktop package: 26.1013.4894.0
    • Bundled codex-cli: 0.163.0-alpha.10.2

    Cold-start timing:

    • React root requested: 15:22:36.088Z
    • Statsig post-login bootstrap attempt 6 timed out: 15:23:41.701Z
    • React root -> final Statsig timeout: 65.613 s
    • Codex runtime config selected: 15:24:17.299Z
    • React root -> runtime config: 101.211 s

    Local renderer analysis:

    • Each post-login Statsig attempt has a 10 s total deadline.
    • There are up to 6 attempts with 500 ms retry intervals.
    • The startup gating chain in this build reaches:
      OGl failure path -> wGl -> TGl identity-loading gate -> EGl async Statsig/user synchronization gate.
    • No supported user-level setting was found that bypasses this gate after Statsig failure.

    Apps directory failures in the same cold start:

    • app/list: 60.528 s -> -32603 "Failed to parse JSON response"
    • app/list: 60.248 s -> same error
    • queueWaitMs was 0-1 ms
    • plugin/list later succeeded in 210 ms, so the app-server itself was responsive.

    Independent HTTP capture of:
    /backend-api/connectors/directory/list
    showed a ~6.9 MB valid JSON response that can take longer than 60 s to fully arrive.

    The matching codex source uses a 60 s DIRECTORY_CONNECTORS_TIMEOUT which covers body consumption/JSON decoding, and forceRefetch bypasses a fresh cache and does not fall back to stale data on failure.

    Remote plugin catalog paths also fail separately:

    • /backend-api/ps/plugins/list -> "error decoding response body"
    • previous same-build plugin/read calls to /backend-api/ps/plugins/installed took ~95.3-95.6 s and ended with "error decoding response body"
    • source behavior is consistent with serial pagination and per-request timeouts.

    This appears to be multiple blocking discovery/bootstrap paths rather than a general app-server stall.

    Requested fixes:

    1. Do not gate the main desktop UI/AppRoutes on completion of the full Statsig retry budget.
    2. Fail open immediately after bootstrap failure and allow runtime config/UI initialization to continue.
    3. For app/list force refresh, return stale cached directory data when the remote refresh misses its deadline.
    4. Avoid immediately repeating the same failing app/list request from the renderer.
    5. Treat response-body timeout separately from JSON parse failure so diagnostics are accurate.

    I can provide additional Procmon traces and local bundle-level evidence if needed.

  3. SiarheiKZ commented on Oct 17, 2026

    @SiarheiKZ

    In-app Feedback ID: 01a14140-ef79-7000-b315-efe1fe901300
    Related macOS report: #54600

    Additional reproduction and code-level diagnostics from macOS, related to #54229.

    Environment:

    • macOS 27.0.1, Apple Silicon (arm64)
    • Desktop release: 26.1013.40934, build 20770
    • Bundled codex-cli: 0.163.0-alpha.10.2 (verified with the bundled executable)
    • Observed on 2026-10-17; all log timestamps below are UTC.

    Cold-start timing:

    • React root requested: 17:55:18.709Z
    • Statsig post-login bootstrap attempt 6 timed out: 17:56:24.851Z
    • React root -> final Statsig timeout: 66.142 s
    • Codex runtime config selected: 17:56:57.472Z
    • React root -> runtime config: 98.763 s
    • The local startup critical path completed in 1.978 s according to its own startup timer. This is a separate timing origin from the React-root measurements above.
    • A preceding cold start on the same build showed 66.009 s to the final Statsig timeout and 98.615 s to runtime config selection.

    Local renderer analysis:

    • Inspected asset: app-initial-90eb42395b7d.js.
    • nWl uses a 10,000 ms deadline (rWl=1e4) around the post-login Statsig bootstrap request.
    • kGl permits five retries for eligible request failures (six attempts total), with 500 ms intervals (WGl=5, GGl=500). Authentication failures have a separate retry counter.
    • The failure path in this macOS build is OGl -> wGl -> TGl -> EGl: identity loading and asynchronous Statsig/user synchronization can continue to gate rendering after the primary bootstrap fails.
    • In the legacy app-list path, Rgr immediately repeats the same read once after an exception: try { return await a() } catch { return a() }. This is consistent with the paired app/list failures in the logs.

    App-list failures in the same process:

    • 17:57:58.296Z: app/list duration 60.013 s, queueWaitMs=88, errorCode=-32603.
    • 17:58:58.318Z: app/list duration 60.015 s, queueWaitMs=0, errorCode=-32603.
    • 18:11:45.480Z: app/list duration 60.011 s, queueWaitMs=1, errorCode=-32603.
    • 18:12:45.503Z: app/list duration 60.014 s, queueWaitMs=0, errorCode=-32603.
    • Corresponding renderer errors: "failed to list apps: Failed to parse JSON response".
    • plugin/list succeeded in 112 ms with queueWaitMs=0 in the same process. Several plugin/read calls also succeeded. This does not look like a complete local app-server stall.

    Matching-version source analysis:
    Source tag: rust-v0.163.0-alpha.10.2
    Commit: 4ebc485

    • chatgpt/src/connectors.rs sets DIRECTORY_CONNECTORS_TIMEOUT to 60 seconds and passes it to the directory GET request.
    • chatgpt/src/chatgpt_client.rs applies the request timeout and wraps errors from response.json().await as "Failed to parse JSON response". The HTTP response wrapper delegates to reqwest's JSON/body consumption. This generic message can therefore obscure a response-body read failure; it does not by itself establish malformed server JSON.
    • connectors/src/lib.rs bypasses the fresh in-memory directory cache when force_refetch=true. Once directory fetching fails, this function propagates the error rather than returning stale cached data. The logs do not establish the forceRefetch value for every failing call.

    Independent HTTP measurements and limits:

    • A separate compressed POST to /backend-api/wham/statsig/bootstrap completed with HTTP 200 and valid JSON in 24.736 s; first byte at 3.054 s.
    • Transferred body: 1,357,733 bytes; decoded response: 7,310,399 bytes. Browser's feature gate was true in the returned payload.
    • A separate GET to /backend-api/connectors/directory/list?external_logos=true returned HTTP 403 with an HTML body in 2.021 s. Therefore, the large valid directory response reported on Windows was NOT reproduced here, and no directory-download duration or size is claimed from this probe.
    • These requests were issued outside the app. They are not captures of the failing desktop requests and may differ in cookies, headers and routing.
    • No "error decoding response body" failures for the remote plugin catalog were found in the two inspected cold starts. The Windows report's plugin-endpoint failures are not independently confirmed on this Mac.
    • No browser availability event was logged in the latest cold start. An earlier same-build launch did reach available=true after a bootstrap timeout; primary bootstrap failure does not prove that every fallback path fails.

    Requested improvements:

    1. Allow the main UI to render while feature configuration is loading or temporarily unavailable, instead of blocking it through the full Statsig retry budget. Keep authorization and entitlement checks enforced for protected actions.
    2. Consider a configurable or at least 90-second background bootstrap request budget for slower complete-body transfers, with recovery after connectivity improves. Increasing the timeout should not extend a blocking startup screen.
    3. Return appropriately scoped stale directory metadata when a refresh times out, without treating cached metadata as authorization.
    4. Avoid immediately repeating the same failing app/list request without backoff or a changed condition.
    5. Distinguish response-body timeout, HTTP failure and JSON syntax/schema failure in diagnostics; retain the underlying error classification.

    The observations are consistent with blocking bootstrap/discovery paths, but do not establish the underlying network bottleneck or prove that every symptom has the same cause. No installed app files were changed during this investigation. No credentials, account identifiers, user files or raw chat transcripts are included.

    Source references:

    const DIRECTORY_CONNECTORS_TIMEOUT: Duration = Duration::from_secs(60);

    pub(crate) async fn chatgpt_get_request_with_timeout<T: DeserializeOwned>(

    pub async fn list_all_connectors_with_options<F, Fut>(

    pub async fn json<T: DeserializeOwned>(self) -> Result<T, HttpError> {

  4. ltuswwnnwnw-blip commented on Oct 20, 2026

    @ltuswwnnwnw-blip

    Additional reproduction evidence from Codex Desktop on Windows 11.

    Versions:

    • Codex Desktop AppX: 26.1013.4894.0
    • Bundled codex-cli: 0.163.0-alpha.10.2
    • Chrome bundled plugin: 26.1013.40934

    We now have same-run timing evidence that the first-stage Statsig bootstrap directly gates the functional UI subtree (runtime config / language / plugins / Browser), rather than the Electron window itself.

    Representative debug run:

    • React root: T+0
    • Statsig P1 client Ready: T+35,193 ms
    • Runtime config selected: T+35,372 ms

    The gated subtree appeared only 179 ms after Statsig became Ready.

    The Electron ready-to-show event occurs earlier and should not be confused with functional UI readiness.

    The bootstrap behavior also matches the client implementation:

    • each attempt has an approximately 10 second deadline
    • the deadline includes reading the complete response body
    • timed-out attempts restart the download from zero
    • retries can therefore turn a marginally slow response into 30–70+ seconds of functional UI delay

    Network-path A/B:

    Same machine, same account, same AppX/plugin build, same VPN exit node.

    A) iPhone hotspot + commercial VPN:
    React root -> runtime config:
    18.2s, 30.9s, 35.4s, 43.1s
    median: ~33.1s

    B) non-hotspot network + same VPN exit node:
    React root -> runtime config:
    4.1s, 2.8s, 3.5s, 2.7s, 2.7s
    median: ~2.8s

    Feature availability was also sent much earlier on the faster path.

    This indicates that network-path quality is a reproducible trigger/amplifier for the fixed 10s full-body bootstrap deadline, but not the product root cause.

    A separate failure mode was also observed after bootstrap failure:

    • feature availability was not sent to the main process for the rest of the session
    • plugin reconciliation was repeatedly skipped
    • native Browser / cua_repl capabilities were therefore not registered

    Suggested fixes:

    1. Do not gate the functional UI on downloading the complete Statsig bootstrap body within a fixed ~10s deadline.
    2. Prefer cached bootstrap data / fail-open behavior for non-safety UI features.
    3. Avoid restarting the complete body download from zero after timeout.
    4. Always publish a fallback feature-availability state after bootstrap failure.
    5. Re-run plugin reconciliation if feature availability later recovers.
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

    appbrowserbugconnectivityskillswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions