Skip to content

[macOS] Statsig bootstrap times out after 10 seconds, intermittently disabling Browser #54600

Open

Description

@SiarheiKZ

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

26.1013.31256 (build 20586)

What subscription do you have?

ChatGPT Pro

What platform is your computer?

macOS (Apple Silicon)

What issue are you seeing?

Settings intermittently fail to load at startup, and Browser may become unavailable with the message "Disabled by your organization or unavailable in your region".

The desktop logs show:

Timed out while fetching post-login Statsig bootstrap
attemptNumber=6
browser_use_availability_resolved available=false reason=statsig-disabled

The app list has also failed to load with:

failed to list apps: Failed to parse JSON response

The relationship between the app-list error and the bootstrap timeout has not been established.

Separate authenticated requests to /backend-api/wham/statsig/bootstrap returned HTTP 200 and complete valid JSON with Browser enabled. Full downloads took approximately 7–60 seconds, while the bootstrap timeout in the inspected app build is 10 seconds. These measurements were taken outside the app and are not a capture of its failing requests.

What steps can reproduce the bug?

Feedback ID: 01a14140-ef79-7000-b315-efe1fe901300

What is the expected behavior?

Settings should recover after transient network failures. A temporary bootstrap timeout should be distinguished from an explicit organization or regional restriction.

Could you consider increasing the bootstrap timeout from 10 seconds to at least 90 seconds to accommodate slower or fluctuating connections? Retrying in the background after a timeout could also help restore settings without requiring an app restart.

Additional information

Possibly related: #50377 and #51074 (reported on Windows). This report provides macOS observations; a shared root cause has not been independently confirmed.

Representative full-response timings from separate compressed HTTP requests: 7.39 s, 10.17 s, 31.93 s, and 42.96 s. The transferred response was approximately 1.38 MB.

Activity

  1. added
    app
    on Oct 16, 2026
  2. added
    bug
    connectivity
    on Oct 16, 2026
  3. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. SiarheiKZ commented on Oct 16, 2026

    @SiarheiKZ
    Author

    This appears closely related to #54229. This report adds observations from macOS on version 26.1013.31256, including successful standalone bootstrap downloads taking 7–60 seconds versus the app’s 10-second timeout.

    Could a maintainer confirm whether these reports share the same root cause and should be consolidated? I’m happy to close this issue as a duplicate once the macOS findings are linked to the main report.

  5. SiarheiKZ commented on Oct 17, 2026

    @SiarheiKZ
    Author

    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> {

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

    appbrowserbugconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions