Skip to content

[Windows Desktop] Workspace routing fails during active use and persists after browser OAuth login (HTTP 432 / account/read -32603) #59344

Open

Description

@luckyboyrz

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

26.1029.7803.0

What subscription do you have?

ChatGPT Plus

What platform is your computer?

No response

What issue are you seeing?

The Codex Windows desktop application repeatedly fails with workspace routing discovery failed during normal active use.

The issue occurred on two consecutive days (November 3 and November 4, 2026), at approximately the same time each day.

The application was working normally immediately before the failure. Once the error occurred, the client returned to the login screen.

Browser-based OAuth authentication completes successfully, but returning to the desktop application consistently results in the same workspace routing error.

The ChatGPT website remains fully functional using the same account.

Observed errors from local diagnostic logs (sanitized):

workspace routing discovery failed
Workspace routing is unavailable
HTTP status: 432
Internal error code: -32603
Method: account/read
Endpoint: /wham/usage

Timed out waiting for MCP response to getAuthStatus
Timed out waiting for MCP response to account/read
account changed during workspace routing discovery

Troubleshooting already attempted:

  • Fully restarting the desktop application
  • Repeating browser-based OAuth login
  • Repairing and resetting the Windows application
  • Clearing previous login sessions

The problem persists after these steps.

Expected behavior:

The desktop application should maintain its authenticated session during normal use, or successfully recover after reauthentication without failing workspace routing discovery.

Additional observations:

The issue appears to recur around the same time on consecutive days, suggesting a possible session lifecycle, authentication refresh, or workspace routing initialization problem. The exact root cause has not been established.

Please investigate the interaction between account/read, authentication status retrieval, workspace routing discovery, and HTTP 432 responses.

Related issues: #50828, #49827.

What steps can reproduce the bug?

  1. Sign in to the Codex Windows desktop app.
  2. Use the application normally for an extended period.
  3. The application unexpectedly fails with a workspace routing error.
  4. Restart the application and initiate login.
  5. Complete authentication in the browser.
  6. Return to the desktop application.
  7. Observe "workspace routing discovery failed".
  8. Repeat login attempts; the error persists.
  9. Additional diagnostic details:
  • The issue occurred on November 3 and November 4, 2026, at approximately 15:00 (UTC+8) on both days.
  • The application was working normally immediately before the failure.
  • Browser-based OAuth login completes, but workspace initialization fails afterward.
  • The same account continues to work normally through the ChatGPT website.
  • The desktop application logs show:
    • workspace routing discovery failed
    • Workspace routing is unavailable (HTTP 432)
    • account/read (error -32603)
    • Timed out waiting for MCP response to getAuthStatus
    • account changed during workspace routing discovery
  • Restarting, repairing, resetting, and reauthenticating the desktop application did not resolve the issue.

Reproducibility: Intermittent during normal use, but persistent once triggered. The exact trigger is unknown.

No session IDs, authentication tokens, personal identifiers, or unredacted logs are included for privacy reasons.

What is the expected behavior?

The Codex Windows desktop application should remain authenticated and functional during normal use.

If the session expires or requires reauthentication, completing browser-based OAuth login should successfully restore the desktop session and initialize workspace routing.

A temporary workspace routing failure should not permanently block access to the application or force repeated unsuccessful login attempts.

Additional information

No response

Activity

  1. added
    app
    on Nov 4, 2026
  2. added
    bug
    windows-os
    auth
    connectivity
    app-server
    on Nov 4, 2026
  3. github-actions commented on Nov 4, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. 7yueapp-a11y commented on Nov 4, 2026

    @7yueapp-a11y

    Additional independent affected Windows installation (sanitized diagnostics). The issue persists despite numerous desktop app reinstalls. The same ChatGPT account works normally in the web browser, but Codex Windows Desktop cannot load the account or chat list.

    • Codex Windows app: 26.1029.7803.0 (same version reported above)
    • UI error (translated from Chinese): "Account authentication unavailable. The desktop cannot obtain usable account authentication information from the local Codex service (app-server)."
    • Codex chat list stays in loading/skeleton state; cannot proceed on desktop.
    • User has reinstalled the desktop app many times with no improvement.
    • Local app-server process was restarted successfully; replacement app-server started, no improvement.
    • System proxy: enabled, 127.0.0.1:7890, TCP port responds.
    • [features] respect_system_proxy = true applied with config backed up; no improvement.
    • Clash TUN mode was enabled/tested; no improvement.
    • Through the same local proxy, https://chatgpt.com responds HTTP 200 and https://auth.openai.com responds HTTP 302. These only demonstrate public HTTPS reachability, not complete app auth functionality.
    • Read-only desktop diagnostic examined 6 recent logs; 63 occurrences of Workspace routing is unavailable / HTTP 432, 9 account lookup unavailable/no account, 10 app-server transport/exit errors, 0 Cloudflare/connection errors and 0 auth token retrieval errors.

    This points toward desktop account/workspace discovery (or its backend integration) rather than a simple inaccessible proxy port. The diagnostics deliberately did not open auth.json, inspect tokens, or collect private account IDs, emails, full raw logs, or user data. Thus missing token workspace claims are not confirmed for this installation.

    Please investigate the Windows Desktop 26.1029.7803.0 account lookup/workspace routing path and advise a supported fix that does not require destructive credential clearing or another reinstall. Related: #59410.

  5. d453308406 commented on Nov 7, 2026

    @d453308406

    Additional affected Windows installation — sanitized reproduction, 2026-11-07 (UTC+08).

    Symptoms

    • Codex Windows desktop displays Couldn't load workspace settings, and later workspace routing discovery failed / Reconnecting 5/5; existing local projects and conversation titles remain visible but desktop chat is unusable.
    • During ChatGPT sign-in, the desktop app received HTTP 403 with a Cloudflare Just a moment... managed challenge on auth.openai.com/sign-in-with-chatgpt/codex/consent.data.
    • Cloudflare Ray ID (from the captured failure): a569302d6a601d41.
    • Windows OS build: 10.0.26340.9482; installed Windows package version: 26.1103.4239.0. (Package version, not separately verified About-dialog app version.)

    Controls / diagnostic results

    • Windows system proxy enabled through local HTTP proxy port 17891; localhost TCP connection test passed.
    • Explicit HTTPS request through proxy to https://chatgpt.com returned 200; unauthenticated https://api.openai.com/v1/models returned expected 401. These are basic reachability tests, not proof that desktop authentication and workspace routes succeed.
    • Codex CLI 0.154.0 successfully completed ChatGPT device-code login.
    • Two independent CLI codex exec --ephemeral --skip-git-repo-check -s read-only smoke tests returned OK, including one run with --ignore-user-config (official provider). This strongly suggests the problem is specific to the Windows desktop app or its account/workspace routing path, rather than complete loss of account/model access.
    • Separate Supabase/Notion MCP AuthRequired warnings were observed, but did not prevent CLI model responses.

    Recovery attempts already made (no lasting desktop recovery)

    • Desktop updated; built-in updater reports latest version.
    • Windows app Repair.
    • Browser ChatGPT login/security verification, desktop restart and Retry.
    • Enabled the experimental respect_system_proxy and system_proxy_fallback flags; no improvement in desktop.
    • ChatGPT device-code authentication succeeded for CLI but desktop workspace settings/routing failures persisted.

    Could maintainers investigate the Windows desktop app-server account/workspace discovery and whether managed Cloudflare challenges can be handled in the desktop authentication/settings session? In particular, please advise a supported recovery that preserves existing projects, sessions and local app data.

    No cookies, OAuth/device codes, access tokens, account IDs, project paths, proprietary content, or unredacted logs are included.

  6. Wionerlol commented on Nov 8, 2026

    @Wionerlol

    Additional affected Windows installation — November 8, 2026.

    I am experiencing a highly similar account initialization failure with the unified ChatGPT/Codex Windows desktop app.

    Environment

    • Windows 11
    • Windows package: OpenAI.Codex
    • Version: 26.1103.4239.0
    • ChatGPT Web works normally.

    Observed behavior

    The desktop app consistently displays:

    ChatGPT hit a snag — We couldn't load your account. Check your connection and try again.

    It cannot proceed beyond the account-loading error screen.

    Sanitized diagnostic logs

    [AppServerConnection] response_orphaned
    error={"code":-32603,"message":"workspace routing discovery timed out"}
    requestId=account/read:...
    
    [electron-message-handler] Received app server error
    error={"code":-32603,"message":"workspace routing discovery timed out"}
    

    Repeated account/read requests also returned errorCode=-32603 during subsequent startup attempts.

    I have not independently confirmed an HTTP 432 response.

    Troubleshooting already attempted without success

    • Windows application Repair and full Reset
    • Electron cache isolation
    • Authentication storage isolation
    • System proxy and TUN networking
    • Rule and Global proxy modes
    • Three proxy exit regions: Taiwan, US, and Singapore
    • Verified CODEX_CLI_PATH is unset
    • Confirmed WSL is accessible

    The failure persists across application restarts and network configuration changes.

    I also observed an Electron net::ERR_CONNECTION_CLOSED warning in the Windows release-marker check, although its relationship to the account initialization failure is unknown.

    Given the similar reports involving account/read and workspace routing discovery, could maintainers investigate whether the account initialization path is affected by authentication challenges, workspace routing service responses, or app-server session state?

    I can provide additional sanitized desktop logs if needed.

  7. arniksup commented on Nov 8, 2026

    @arniksup

    Additional Windows/WSL case: Desktop account loading recovered after manual app-server token refresh

    Environment

    • Codex Desktop MSIX: 26.1103.4239.0 (Windows x64)
    • Runtime: WSL2, Ubuntu 24.04
    • Bundled Codex app-server: 0.167.0-alpha.3.2
    • Date: November 8, 2026

    Initial failure

    Codex Desktop displayed "We couldn't load your account. Check your connection and try again."

    Desktop logs showed:

    initialize_handshake_result outcome=success
    Codex CLI initialized
    
    method=account/read errorCode=-32603
    
    desktop_fetch_auth_401 hadToken=true
    tokenSource=loaded willRetry=true
    target="POST https://chatgpt.com/ces/v1/rgstr"
    

    A separate runtime installation warning was also observed:

    marketplace `openai-primary-runtime` is reserved
    and cannot be added from this source
    
    primary_runtime_install_failed
    failureStage=sync_plugins
    

    Troubleshooting and recovery sequence

    1. The bundled CLI initially reported Not logged in.
    2. Completed codex login --device-auth. Authentication succeeded, but Desktop still failed.
    3. Confirmed that CLI authentication also succeeded with CODEX_HOME pointing to the Windows .codex directory.
    4. A manually launched codex app-server failed to initialize SQLite under /mnt/c/Users/<redacted>/.codex.
    5. Setting CODEX_SQLITE_HOME to a separate directory on the Linux filesystem allowed the manually launched app-server to start.
    6. Executed two JSON-RPC requests:
    {"id":1,"method":"account/read","params":{"refreshToken":false}}
    {"id":2,"method":"account/read","params":{"refreshToken":true}}

    Both succeeded and returned valid ChatGPT account information and workspace routing metadata.

    1. On the subsequent Codex Desktop launch, the account-loading error disappeared. The application opened normally.

    Important qualification

    This is an observed recovery sequence, not a confirmed root-cause fix.

    The successful refreshToken=true call may have restored shared authentication or routing state. However, a transient backend recovery, cache change, or application restart could also explain the outcome.

    The SQLite override was applied only to the manually launched app-server. There is no evidence that it modified Desktop's own SQLite configuration.

    The local logs confirmed account/read -32603, but the nested RPC error and HTTP 432 were not independently established.

    Suggested investigation

    Could maintainers examine how Desktop and manually launched WSL app-server processes share authentication, workspace routing, and SQLite state?

    In particular, can a manual account/read(refreshToken=true) recover a Desktop account initialization failure without clearing credentials or resetting application data?

    Related issues: #59344, #59439.

  8. arniksup commented on Nov 8, 2026

    @arniksup

    Recovery confirmed by before/after Desktop logs — Windows 26.1103.4239.0

    Following my earlier diagnostic investigation, the Codex Desktop account-loading issue has recovered.

    Before recovery (November 8, 2026, local time UTC+3):

    Desktop session start | account/read failures | HTTP 401 warnings | Runtime installation failures -- | -- | -- | -- 19:52 | 12 | 3 | 1 19:56 | 2 | 5 | 0 20:18 | 2 | 4 | 0

    All 16 account/read requests returned errorCode=-32603.

    After recovery (20:38):

    • account/read: 3 successful requests (errorCode=null).

    • account/read -32603: 0 occurrences.

    • desktop_fetch_auth_401: 0 occurrences.

    • App-server initialization: successful.

    • primary_runtime_install_failed: still occurred once.

    • Desktop UI loaded successfully.

    Notable observations

    1. The first successful Desktop session followed a manually executed account/read JSON-RPC request with refreshToken=true, which returned valid ChatGPT account and workspace routing information.

    2. This suggests that refreshing authentication/routing state may have contributed to recovery, but causality is not established.

    3. The primary-runtime installation error persisted in the successful session. Therefore, it is not necessarily a blocker for account initialization.

    4. No application reinstall, reset, or credential deletion was required.

    5. HTTP 432 was not independently observed in the collected logs, so this report does not claim it occurred.

    Conclusion

    Desktop account initialization transitioned from consistently failing (account/read -32603) to consistently succeeding in the observed recovery session.

    Could maintainers investigate whether the Desktop account initialization path can become stuck with stale authentication/workspace routing state and whether a successful manual token refresh can resolve that condition?

  9. Wionerlol commented on Nov 9, 2026

    @Wionerlol

    Update: Manual App Server account read and token refresh succeed, but Desktop still fails

    I performed additional diagnostics using the bundled Windows Codex CLI from ChatGPT Desktop 26.1103.4239.0:

    • Bundled CLI: codex-cli 0.167.0-alpha.3.2
    • codex login status: Logged in using ChatGPT
    • Manual App Server initialization: SUCCESS
    • account/read(refreshToken=false): SUCCESS
    • account/read(refreshToken=true): SUCCESS

    However, restarting the ChatGPT Desktop app still results in:

    We couldn't load your account.

    The Desktop logs continue to show:

    2026-11-09T08:50:44.232Z errorCode=-32603 method=account/read
    2026-11-09T08:55:05.627Z errorCode=-32603 method=account/read
    

    The second failure occurred after the successful manual token refresh.

    This provides a useful contrast with the recovery reported by @arniksup: a successful manual account/read(refreshToken=true) does not reliably recover the Desktop account initialization failure.

    Could maintainers investigate differences between the manually launched Windows App Server and the Desktop-managed App Server, particularly their runtime environment, authentication context, and workspace routing discovery?

    No credentials or account identifiers are included.

  10. jakegore commented on Nov 9, 2026

    @jakegore

    Manual token refresh suggested by @arniksup worked for me - thanks!

  11. JuanquiRubio commented on Nov 9, 2026

    @JuanquiRubio

    Recovery report — Windows Codex Desktop 26.1103.4239.0 (November 9, 2026)

    I had the same Desktop error:

    ChatGPT hit a snag — We couldn't load your account. Check your connection and try again.

    Before recovery

    • Windows package: OpenAI.Codex 26.1103.4239.0; bundled app-server: 0.167.0-alpha.3.2.
    • Desktop logs repeatedly showed method=account/read errorCode=-32603 and desktop_fetch_auth_401 hadToken=true tokenSource=loaded for POST https://chatgpt.com/ces/v1/rgstr.
    • Other log lines included Hosted AppServerManager identity is not ready and hasAccount=false hasUser=false.
    • ChatGPT in the browser worked. Repair/reset/reinstallation, signing out of all web sessions, and switching to a mobile hotspot did not fix Desktop.

    Sequence immediately preceding recovery

    1. Ran codex login status in PowerShell (reported "Logged in using ChatGPT").
    2. A real CLI request failed with 401 Unauthorized, refresh_token_invalidated, and "Your session has ended".
    3. Ran codex logout and codex login to reauthenticate.
    4. The old standalone CLI (0.104.0) then failed to decode the models catalog: unknown variant 'max'. It also rejected selected model requests.
    5. Upgraded the standalone CLI with npm install -g @openai/codex@latest; confirmed codex-cli 0.167.0.
    6. Successfully ran codex exec --skip-git-repo-check -m gpt-6.1-sol "Responde únicamente con OK"; the response was OK.
    7. Retried Codex Desktop: the account-loading issue was resolved.

    I did not manually call app-server account/read(refreshToken=true), edit tokens, or delete .codex.

    This is an observed recovery sequence, not proof that updating the standalone CLI alone fixes Desktop. Reauthentication, model-catalog compatibility, and/or restarting Desktop may have contributed. Sharing it because it may help other affected Windows users.

  12. Wionerlol commented on Nov 9, 2026

    @Wionerlol

    Recovery confirmed — Windows Desktop 26.1103.4239.0

    My ChatGPT Windows Desktop account-loading issue is now resolved.

    Root cause evidence

    Although the bundled Codex CLI reported Logged in using ChatGPT, an actual model request failed with:

    401 Unauthorized
    token_revoked
    Your refresh token was revoked.
    Please log out and sign in again.
    

    Successful recovery sequence

    1. Used the bundled Windows CLI (codex-cli 0.167.0-alpha.3.2).
    2. Ran codex logout followed by codex login.
    3. Verified codex login status reported a ChatGPT login.
    4. Successfully ran a real codex exec request, receiving OK without authentication errors.
    5. Restarted ChatGPT Windows Desktop — the application loaded successfully.

    Previously attempted Repair, Reset, cache isolation, proxy changes, and manual account/read(refreshToken=true) did not resolve the issue.

    Conclusion

    The successful recovery strongly suggests that stale or revoked Windows Codex authentication credentials contributed to the Desktop initialization failure.

    Checking login status or successfully calling account/read alone was insufficient to detect this condition. A real authenticated CLI request exposed the revoked token.

    Thanks to @JuanquiRubio for documenting the recovery sequence!

  13. Faramarz-Azad commented on Nov 27, 2026

    @Faramarz-Azad

    I am experiencing the same issue on Windows 11 with Codex Desktop.

    App version: 26.1120.6357.0

    Symptoms:

    • workspace routing discovery failed
    • Couldn't load workspace settings
    • Reconnecting 5/5

    Additional diagnostics:

    • ChatGPT works normally in the browser with the same account.
    • The issue persists when using a mobile hotspot.
    • VPN and Windows proxy are disabled.
    • Logs show repeated "Workspace routing is unavailable" errors with status 432.
    • The issue has previously recovered spontaneously and then returned.

    The OpenAI Help Center support chatbot also fails with:
    "There was an error while generating the assistant's response."

    Could the maintainers investigate whether this is related to the Windows desktop account/workspace initialization issue?

  14. Faramarz-Azad commented on Nov 27, 2026

    @Faramarz-Azad

    Additional important information:

    I cannot use Codex Desktop for ordinary conversations either.

    When the workspace routing error occurs:

    • I cannot start a new regular conversation.
    • I cannot send messages to the model.
    • The entire Codex Desktop app becomes unusable, not just the workspace features.

    This suggests the issue may affect the desktop app's overall account initialization or backend communication, rather than only workspace routing.

    Please investigate the broader desktop initialization and authentication flow.

  15. Faramarz-Azad commented on Nov 28, 2026

    @Faramarz-Azad

    I found the root cause of my issue.

    The problem is related to the Codex Pet feature.

    Steps to reproduce:

    1. Open Codex Desktop settings.
    2. Disable or hide the Mini & Pet feature.
    3. The app starts failing with:
      • workspace routing discovery failed
      • Couldn't load workspace settings
      • Reconnecting 5/5
    4. Enable the Pet feature again from Settings.
    5. The issue disappears and Codex works normally again after a few second.

    This strongly suggests a bug related to the Pet Show/Hid state or its interaction with workspace initialization.

    Please investigate why hiding the Pet feature causes the entire Codex Desktop app to become unusable.

  16. iacibarros commented on Nov 28, 2026

    @iacibarros

    User-confirmed workaround for a matching Windows Desktop failure (Norton 360 HTTPS/TLS inspection). A separate installation running 26.1120.6357.0 exhibited token_exchange_failed, workspace routing discovery failed, HTTP 432, account/read -32603, and Reconnecting 5/5 / waiting for network, despite successful browser and CLI access. Temporarily disabling Norton HTTPS inspection restored login/workspace loading; re-enabling it was followed by reconnect loops. After receiving instructions for narrow exclusions of official OpenAI hosts in Norton Safe Web, the user confirmed resolution. Full sanitized evidence, exact suggested exclusions, security caveats, and proposed non-destructive troubleshooting order: #58466 (comment) . Please prioritize checking endpoint web/TLS/WebSocket filtering before resets, reinstalls, or local history deletion. This is a confirmed recovery in one installation, not a universal root-cause claim.

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

    appapp-serverauthbugconnectivitywindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions