Skip to content

ChatGPT desktop: Work Cloud fails with local executor HTTP 403 and no Cloudflare challenge recovery #50034

Open

Description

@Lelby

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

ChatGPT desktop for macOS 26.928.31416, build 12553.

What subscription do you have?

The current local ChatGPT sign-in reports the plan claim prolite.

What platform is your computer?

macOS 26.3.1 (25D2128), Apple Silicon / arm64.

uname -mprs: Darwin 25.3.0 arm64 arm

What issue are you seeing?

Starting Work with Cloud selected fails with:

Local Work executor registration failed (HTTP 403)

Related ChatGPT backend requests repeatedly receive HTTP 403 with an HTML Cloudflare challenge containing "Enable JavaScript and cookies to continue", "cf_chl", and "challenge-platform" markers. Affected routes include /models, /conversation/init, /settings/user, and conversation listing. The desktop client does not present an interactive verification flow for these background requests.

Opening https://chatgpt.com/ in the same application's built-in browser automatically completes the Cloudflare challenge and loads the ChatGPT sign-in page. This does not recover the application's background requests: fresh 403 challenge responses continue afterwards.

What steps can reproduce the bug?

  1. Sign in to ChatGPT in the desktop app.
  2. Select Work and Cloud and start a new task while the app's backend requests are being challenged by Cloudflare.
  3. Observe the local executor registration error above.
  4. Open https://chatgpt.com/ in the built-in browser and let its challenge complete.
  5. Observe that the desktop app's background requests still fail with HTTP 403 challenge HTML.

The Cloudflare trigger may depend on network or client signals. It has not been isolated, and a clean-network reproduction is not claimed.

Confirmed diagnostic evidence

Observed on 2026-10-01; timestamps below are UTC.

  • 15:24:35.680: [tpp-local-executor] Local Work executor startup failed attempt=136, errorMessage="Local Work executor registration failed (HTTP 403)".
  • 16:43:36: the built-in browser obtained a non-expired cf_clearance cookie for .chatgpt.com after passing the challenge.
  • 16:50:08: the application's /settings/user and other backend requests still returned HTTP 403 with "Enable JavaScript and cookies to continue".

Read-only inspection of cookie names and expiry metadata, without reading or exporting cookie values, showed:

  • App Default/Cookies: no cf_clearance cookie for chatgpt.com; non-expired _devicecheck and __cf_bm cookies were present.
  • Built-in browser Default/Partitions/codex-browser-app/Cookies: a non-expired cf_clearance cookie for .chatgpt.com was present.
  • DeviceCheck attestation generation succeeded in the app logs. This makes a complete failure of native DeviceCheck token generation an unlikely explanation for the observed background challenge responses.

Read-only inspection of the installed desktop bundle showed:

  • Local executor registration uses POST /flora/cca/executor through the application's network layer / Electron net.fetch.
  • The registration path reports non-2xx responses as registration failures and treats HTTP 403 as non-retryable.
  • The backend request helper retries HTTP 401 after refreshing authentication, but does not render or recover from a Cloudflare HTML challenge on HTTP 403.
  • The built-in browser uses a separate persistent browser session from the default network session used for registration.

The registration response body and headers were not recorded in the log, so its exact 403 response must still be verified by maintainers. The session separation and continuing Cloudflare challenges on related backend requests are independently confirmed; the causal connection to that particular registration response is a working hypothesis.

What is the expected behavior?

Work Cloud should either start or provide an actionable explanation. When HTTP 403 represents a Cloudflare challenge, the client should detect the challenge response, allow verification in the relevant network session, and retry the original request after verification succeeds. This should be distinguished from actual permission or region denials. A recoverable challenge should not leave the local executor stopped without a recovery action.

Please investigate Cloudflare rule coverage for desktop API requests and the separation between browser clearance and the registration network session. A supported "Verify connection / Retry registration" action would also make recovery possible without changing networks or restarting the app.

Reference: Cloudflare documents that full HTML Challenge Pages are incompatible with requests expecting API data:
https://developers.cloudflare.com/cloudflare-challenges/challenge-types/challenge-pages/#compatibility-limitations

Additional information

Related but distinct: #47197 concerns a Windows daemon failing account discovery under Cloudflare challenges; #49111 concerns raw 403/HTML presentation in Work on macOS under a reported region restriction. This report specifically concerns local executor registration and recovery after successful browser verification, with separate cookie-session evidence.

No raw logs, authentication tokens, cookie values, account identifiers, machine names, or private conversation contents are included in this report.

Activity

  1. added
    bug
    app
    connectivity
    on Oct 1, 2026
  2. Lelby commented on Oct 1, 2026

    @Lelby
    Author

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

    Powered by Codex Action

    I believe those issues are relevant but still differ from stated above. The issue involves ChatGPT Work mode in this case, not Pages/Space/VS Code extension.

  3. litequark commented on Oct 3, 2026

    @litequark

    Same issue, please fix it

  4. justoneapi-labs commented on Oct 4, 2026

    @justoneapi-labs

    Same issue, please fix it.

  5. ArshyaAI commented on Oct 5, 2026

    @ArshyaAI

    Additional reproduction on ChatGPT desktop 26.930.31730 (build 12947), macOS 27.0 (26A5425a), on 2026-10-04.

    The exact error persists:
    Local Work executor registration failed (HTTP 403)

    Selected desktop-log timestamps (UTC):

    • 10:16:37.164: registration fails with HTTP 403.
    • 14:37:40.921: executor connects to rendezvous.
    • 14:38:50.876: registration fails again with HTTP 403.
    • Around 20:48: setup fails again in the UI, but no fresh executor-start or registration event appears in the 20:46–20:50 log window. Related API requests still report cloudflare_challenge. The registration response headers/body were not retained, so its exact rejection source remains unconfirmed.

    Additional static observation from this installed build: the connect_computer setup action can only inspect executor readiness and return failure when no environment is ready. It does not itself start registration. The connection UI can then display the manager's previously stored error. This provides a plausible explanation for repeated setup failures without a new registration attempt; the exact runtime click sequence was not captured.

    Suggested narrowly scoped client fix:

    1. Offer an explicit, single-flight Retry registration action after a failed start, with clear in-progress and fresh-result states. Do not automatically retry every 403 or replace the existing computer assignment.
    2. Preserve only allowlisted diagnostics: registration stage, HTTP status, challenge classification, x-request-id / x-oai-request-id and CF-Ray when present. Do not log auth headers, cookies or arbitrary response bodies.
    3. Distinguish an edge challenge from an authorization denial; any verification must use a supported flow for the relevant network session, without bypassing access controls.

    Suggested regression coverage: a failed start followed by manual retry performs one new registration; duplicate clicks do not start concurrent requests; a fresh result replaces the stale error; a genuine authorization denial does not enter a retry loop; secrets and arbitrary response bodies never enter diagnostics.

    The affected desktop implementation is absent from the public openai/codex main checkout inspected at de3721a, so this is a proposed fix and regression specification, not a tested patch. No raw private logs, account/device/dot identifiers or credentials are included.

  6. Eugi6 commented on Oct 24, 2026

    @Eugi6

    Still reproducible after updating ChatGPT desktop for macOS to 26.1021.22027 (build 21747).

    Fresh reproduction on 2026-10-24 (timestamps below are UTC):

    • 00:00:58.624, 00:01:05.151, 00:01:05.361 and 00:02:23.017: GET /tbo/by-thread/{thread_id} failed with HTTP 403 / cloudflare_challenge.
    • 00:01:05.549: GET /tbo/{tbo_id} failed with the same classification.
    • The UI displayed “Couldn't open this conversation / This conversation is no longer available.” The logged failures are challenges, not evidence that the conversation was deleted.
    • Account lookup reported authenticatedAccountPresent=true and result=succeeded shortly before these failures. This establishes account discovery, not successful conversation access.

    A bounded route comparison was also performed without signing out or changing the application session:

    • Canada → an existing USA node at 2026-10-23 21:43:09.002 UTC.
    • Actual new Work service connections were verified on the USA route.
    • 26 sa_server_request_failed entries classified as HTTP 403 / cloudflare_challenge occurred during the 43.6-second USA window.
    • Canada was restored and verified at 21:43:52.575 UTC, including reconnection of the affected OpenAI flows. Four further challenge failures were recorded during the following 65.5 seconds.
    • Request volume and reconnect activity differed between windows, so these counts are not a controlled comparison of failure rates. The result only shows that this route substitution did not resolve the failure. No direct/non-proxy clean-network reproduction is claimed.

    There was also a distinct HTTP 500 devicecheck_registration_http_failed on POST /f/conversation/prepare at 2026-10-23 23:20:31.856 UTC. Local “DeviceCheck attestation generated” events followed. Local token generation must not be interpreted as successful server registration, and this 500 has not been established as the cause of the separate Cloudflare 403 responses.

    The updated application passed full code-signature verification with the OpenAI Developer ID and a stapled notarization ticket.

    Please investigate recovery for challenged desktop background requests and the misleading unavailable-conversation state when the underlying request is a Cloudflare challenge. Updating and restarting did not establish a durable recovery.

    No IP addresses, credentials, cookie values, account/conversation identifiers, screenshots, or private conversation contents are included.

  7. litequark commented on Oct 24, 2026

    @litequark

    Please kindly consider thumbing up the main issue (react with a 👍), since OpenAI might be tracking the priority of issues by the number of thumbs😂

    That may help resolving our issue faster (just maybe).

  8. ozin-he commented on Oct 25, 2026

    @ozin-he

    Successful recovery of the dot entry and local executor on build 21828

    Additional observation on ChatGPT desktop for macOS 26.1021.31345 (build 21828). The dot entry successfully returned in the web app first, and then in the desktop app after a desktop restart. Desktop logs also confirmed recovery of the local executor.

    All times below are October 25, 2026, America/Los_Angeles (PDT, UTC−07:00). This is an observed recovery sequence, not a controlled root-cause experiment.

    Discovery and recovery sequence

    1. Before recovery, the desktop dot entry was unavailable and local executor registration returned HTTP 403. At 04:53:35.977, the executor incident explicitly recorded responseClassification=cloudflare_challenge, httpStatus=403, and retryable=false. Meanwhile, the durable WebSocket connected at 04:53:36.654. A connected durable transport therefore did not establish that the HTTP registration path was usable.
    2. A previously installed local-development CA was removed from the current user's login keychain/trust settings, along with its local certificate/key files. The filesystem cleanup completed at approximately 04:57:05. The system keychain was not changed. The user subsequently confirmed that the web dot entry had recovered; its exact recovery time was not instrumented.
    3. That web recovery was distinct from desktop background recovery. In the still-running desktop process, challenge responses continued, and local executor registration still returned HTTP 403 at 04:58:14.247 and 05:00:12.069. Some desktop dot room/history reads also succeeded during this interval. These observations do not negate the successful web entry recovery.
    4. The user restarted the desktop app and confirmed that the desktop dot entry also recovered. The new process started at 05:03:35.667.
    5. Post-restart logs confirmed local executor recovery at 05:03:50.092: outcome=recovered, readinessSource=rendezvous, and Local Work executor connected to rendezvous. Subsequent connection samples at 05:04:44.961 and 05:05:44.966 reported connected time equal to the entire eligible sampling interval.
    6. Desktop dot emitted client.ready outcome=success at 05:03:55.064, 05:04:58.331, 05:05:44.201, and 05:06:04.290. Room/history reads succeeded, with no client-stage failure recorded in the inspected post-restart window.

    What remained, and verification limits

    • One Cloudflare challenge remained at startup: 05:03:40.441, on /accounts/check/{version}. No additional challenge was logged through 05:06:27.129, the end of this bounded inspection. This is short-window recovery, not proof of a permanent fix.
    • The durable transport connected at 05:03:43.838, without a subsequent disconnect in that window. No ASB HTTP read failed (403) or HTTP 401/expired error was found there.
    • A separate background thread/read / thread_hydration problem remained: code=-32003, message="thread access denied" entries appeared between 05:03:45 and 05:04:11. This is distinct from the recovered dot entry and executor connection.
    • During startup, the executor briefly hit ENOENT while unlinking <app-support>/executor-plugins/codex-app-tools/.mcp.json. Its automatic retry then connected successfully.
    • No new task was dispatched to test end-to-end execution. Verification was read-only log inspection plus the user's confirmation of the restored entries.

    Interpretation / recovery guidance

    The successful outcome was recovery of both dot entries and the desktop executor connection after the sequence above. However, earlier node changes/restarts had not immediately resolved the problem, and the CA removal, elapsed time, and final restart were not isolated experimentally. This does not establish that the development CA caused the challenge or that deleting certificates is a general fix.

    Before removal, separate strict TLS probes to the relevant OpenAI hosts showed publicly issued certificates, not the development CA; those probes were not captures of the application's existing TLS sessions. Certificate removal also disables the dependent local development HTTPS setup, so it should not be presented as routine troubleshooting.

    A supported, single-flight Retry local executor registration action that preserves existing tasks and computer association would still be useful, along with a supported recovery flow for challenged background requests. Please distinguish restored UI access, executor rendezvous readiness, and background thread-access denials in diagnostics.

    Account/device/thread identifiers, CA identity and fingerprints, local user/project paths, node details, credentials, cookies, and private conversation content are omitted. No app package modification, sign-out, app-data reset, or deliberate removal of the computer association was used for this recovery.

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

    appbugconnectivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions