Skip to content

[Windows] Codex Desktop account authentication unavailable - Workspace routing error 432 #62572

Open

Description

@WJW1123

Bug Report: Codex Desktop Cannot Retrieve Account Authentication Information

Product: OpenAI Codex for Windows
Desktop Version: 26.1111.9664.0
Codex CLI Version: 0.169.1
Operating System: Windows
Date Observed: November 19, 2026

  1. Issue Summary

Codex Desktop displays a persistent orange warning:

"Account authentication unavailable: The desktop app could not retrieve usable account authentication information from the local Codex app-server. Sending messages and loading chats may be affected."

The desktop application cannot load chat history. Creating a new chat opens a window, but the input area keeps loading and I cannot send messages.

  1. Expected Behavior

Codex Desktop should retrieve account authentication information, load chat history, and allow me to create and send messages in new conversations.

  1. Actual Behavior

The desktop app remains stuck with an orange authentication warning.

Existing conversations do not load.

New Chat opens, but the input area keeps loading.

Messages cannot be sent.

  1. Troubleshooting Already Performed

Confirmed that ChatGPT authentication succeeds in Codex CLI.

Confirmed that the standalone CLI can successfully execute a model request.

Confirmed that the bundled CLI and standalone CLI are both version 0.169.1.

Confirmed that the desktop app automatically uses the standalone CLI executable.

Tested network and proxy settings, including Clash Plus and TUN mode.

Checked relevant environment variables and certificate configuration.

Restarted and retested the desktop application.

The issue persists.

Important: Codex CLI works, but Codex Desktop does not.

  1. Relevant Log Evidence

The desktop log repeatedly reports:

desktop_account_auth.unavailable
authMethod=chatgpt
reason=account_info_request_failed

Account lookup also reports:

accountInfoHttpStatus=0
accountsHttpStatus=0
authenticatedAccountPresent=false
authMethod=chatgpt
failureType=account_info_request_failed
result=failed

Additional repeated errors:

errorMessage="Workspace routing is unavailable"
routePattern=/wham/usage
status=432

These errors occurred repeatedly around November 19, 2026, 18:49–18:50 UTC.

  1. Questions for the Engineering Team

Why can Codex CLI authenticate and execute model requests while Codex Desktop cannot retrieve account authentication information?

Is this related to missing ChatGPT account or workspace routing information?

Why does the desktop application repeatedly fail on /wham/usage with status 432?

Is there a known issue or a recommended fix for this version of Codex Desktop?

  1. Request

Please investigate the desktop account authentication and workspace routing initialization process.

I would appreciate a recommended fix or a workaround that does not require reinstalling the application or deleting local data.

Thank you.

Activity

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

    @github-actions
    Contributor

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

    Powered by Codex Action

  3. sdh-dot commented on Nov 30, 2026

    @sdh-dot

    Recovery report: selecting a workspace restored Windows desktop connectivity

    I recovered from the desktop account-authentication warning on November 30, 2026 (KST). In my case, browser sign-in completed and the bundled CLI recognized the ChatGPT login, but the desktop remained stuck. The inspected authentication file had no nonempty tokens.account_id.

    Selecting an existing workspace through the bundled app-server's experimental accountSession/list and accountSession/switch APIs restored the desktop connection. I am sharing the sequence and helper below for people with a matching state. This is one successful workaround, not a general fix for every 432 or authentication error.

    Environment

    Component Observed value
    Windows application package OpenAI.Codex
    Desktop package version 26.1120.6357.0
    Package architecture x64
    Bundled CLI / app-server codex-cli 0.171.0-alpha.13.2
    Authentication ChatGPT browser sign-in
    Bundled executable location %LOCALAPPDATA%\OpenAI\Codex\bin\<build-folder>\codex.exe

    The executable was identified from the desktop's running process. codex was not available on PATH, so the CLI checks used that exact bundled executable.

    What happened

    1. The desktop remained in a loading state after updating the app.
    2. Troubleshooting included Windows app reset and backing up the existing auth.json by renaming it. The initial sign-in screen was eventually restored, but desktop connectivity was still not restored.
    3. Browser sign-in completed and a new authentication file was created, but the desktop showed an account-authentication warning and the chat list did not load.
    4. The bundled CLI reported a ChatGPT login, and its network-only doctor completed with no warnings or failures.
    5. Restarting the desktop's app-server produced a new process ID, but the same warning remained.
    6. A local presence check showed that the inspected auth.json did not contain a nonempty tokens.account_id.
    7. The workspace-selection procedure below restored the desktop connection.

    The app's warning said, in Korean, that usable account authentication could not be obtained from the local Codex app-server and that sending messages and loading chats could be affected.

    Diagnostics before recovery

    Commands were run against the bundled executable:

    --version
    codex-cli 0.171.0-alpha.13.2
    
    login status
    Logged in using ChatGPT
    
    doctor --network-only --summary --no-color
    config: loaded
    network: no proxy env vars
    websocket: connected (HTTP 101 Switching Protocols)
    reachability: active provider endpoints are reachable over HTTP
    4 ok / 0 warn / 0 fail
    

    Relevant desktop log fields, with identifying details omitted:

    account/read | errorCode=null
    cloud_picker_identity | hasAccount=false
    desktop_account_auth.unavailable | reason=account_info_request_failed
    desktop_account_auth.banner_shown | reason=account_info_request_failed
    sa_server_request_failed | Workspace routing is unavailable | status=432
    chatgpt-account-lookup | accountInfoHttpStatus=0 | accountsHttpStatus=0
    authenticatedAccountPresent=false | failureType=account_info_request_failed
    
    Local check: nonempty auth.json.tokens.account_id present = False
    

    The CLI checks above establish the reported login mode and the specific connectivity tests they ran. They do not establish that every desktop account endpoint worked, or that an actual CLI model request succeeded. The 0 values above are log fields, not an HTTP response status received from a server. errorCode=null is the observed log value; it does not establish that workspace routing was available.

    Interpretation

    The source for this exact app-server version allows account information to remain available while workspace routing is absent when no workspace has been selected. It does not automatically choose the backend's default workspace. This is consistent with the observations in my case, but I have not established why the selected workspace ID was missing in the first place.

    The account-session implementation can retrieve existing memberships before a selected workspace ID is available, provided it can identify a managed ChatGPT login. This requires a usable ChatGPT user identity. Cases where that identity is also missing may stop with no usable managed session and are not covered by this recovery result.

    Recovery procedure

    This uses an experimental API present in 0.171.0-alpha.13.2. Other versions may differ. The switch operation changes stored credentials and the selected workspace; it is not just a diagnostic read. If it fails or times out after being sent, do not assume the old state was restored or blindly repeat it. In particular, the implementation's rollback path requires a previous workspace ID, which may be missing in this failure state.

    1. Identify the exact bundled codex.exe used by the affected desktop app. While the affected app is still running, this local query can help:

      Get-CimInstance Win32_Process -Filter "Name = 'codex.exe'" |
          Where-Object {
              $_.CommandLine -match '(?i)(?:^|\s)app-server(?:\s|$)'
          } |
          Select-Object -ExpandProperty ExecutablePath -Unique

      Use the executable belonging to the affected desktop app. If the result is empty or ambiguous, identify the correct process before continuing; do not automatically substitute another installation from PATH.

    2. Fully quit the desktop app and finish or close any active Codex work using that installation.

    3. Under the same Windows account, run the helper below. Enter the bundled executable's full path, then choose the intended workspace from the returned membership list. Enter 0 to cancel if the entries are unclear.

    4. The helper requests a workspace switch with allowBrowserLogin=false, then reads the account to check for routing information. If the selected workspace requires another sign-in, it stops instead of attempting an additional browser flow.

    5. After the helper exits, reopen the desktop app and check the connection and chat loading.

    For app-server clients, the underlying sequence is:

    {"id":0,"method":"initialize","params":{"clientInfo":{"name":"workspace_repair","version":"1.0.0"},"capabilities":{"experimentalApi":true}}}
    {"method":"initialized","params":{}}
    {"id":1,"method":"accountSession/list","params":{"refreshWorkspaceMetadata":true}}
    {"id":2,"method":"accountSession/switch","params":{"sessionId":"<active-session-id-returned-by-list>","accountId":"<workspace-id-selected-from-returned-memberships>","allowBrowserLogin":false}}
    {"id":3,"method":"account/read","params":{"refreshToken":false}}

    This is a sequential exchange over the default stdio transport: wait for initialization before sending initialized, wait for each request's response, and obtain both IDs from the membership response. Do not paste these example lines as a complete one-way pipeline or invent IDs.

    PowerShell helper — expand to review and copy

    This is the helper used for the recovery, with the personal executable path replaced by a prompt and console messages translated to English. The protocol flow is unchanged. This public variant has not been independently tested on other machines.

    The helper uses only the returned membership IDs internally, drains stderr without printing it, and reports fixed status categories instead of raw response or exception text. Workspace names are displayed locally for selection. It closes only the diagnostic process it starts. No authentication tokens or IDs need to be posted to this issue.

    & {
        $ErrorActionPreference = 'Stop'
    
        $repairExe = (Read-Host 'Full path to the desktop bundled codex.exe').Trim().Trim('"')
        $repairProcess = $null
        $repairState = @{
            Stage   = 'prepare'
            Kind    = 'LOCAL_ERROR'
            RpcCode = '-'
        }
    
        function Invoke-WorkspaceRpc {
            param(
                [int]$RequestId,
                [string]$Method,
                [hashtable]$Parameters,
                [int]$TimeoutMs = 60000
            )
    
            $repairState.Stage = $Method
            $repairState.Kind = 'LOCAL_ERROR'
            $repairState.RpcCode = '-'
    
            $request = @{
                id     = $RequestId
                method = $Method
                params = $Parameters
            } | ConvertTo-Json -Depth 10 -Compress
    
            $repairProcess.StandardInput.WriteLine($request)
            $timer = [Diagnostics.Stopwatch]::StartNew()
    
            while ($true) {
                $remainingMs = $TimeoutMs - [int]$timer.ElapsedMilliseconds
                if ($remainingMs -le 0) {
                    $repairState.Kind = 'TIMEOUT'
                    throw 'Request stopped'
                }
    
                $pendingRead = $repairProcess.StandardOutput.ReadLineAsync()
                if (-not $pendingRead.Wait($remainingMs)) {
                    $repairState.Kind = 'TIMEOUT'
                    throw 'Request stopped'
                }
    
                $line = $pendingRead.Result
                if ($null -eq $line) {
                    $repairState.Kind = 'PROCESS_ENDED'
                    throw 'Request stopped'
                }
    
                $reply = ConvertFrom-Json -InputObject $line
    
                # Skip notifications; stop if the server requires a client request.
                if ($null -ne $reply.method) {
                    if ($null -ne $reply.id) {
                        $repairState.Kind = 'CLIENT_REQUEST_REQUIRED'
                        throw 'Request stopped'
                    }
                    continue
                }
    
                if ($null -eq $reply.id -or $reply.id -ne $RequestId) {
                    continue
                }
    
                if ($null -ne $reply.error) {
                    $repairState.Kind = 'RPC_ERROR'
                    $repairState.RpcCode = if ($null -eq $reply.error.code) {
                        'null'
                    } else {
                        [int]$reply.error.code
                    }
    
                    # Keep only fixed categories, not the raw error message.
                    switch -Regex ([string]$reply.error.message) {
                        'requires a new sign-in|Sign in to switch government' {
                            $repairState.Kind = 'SIGN_IN_REQUIRED'
                            break
                        }
                        'Failed to fetch workspace metadata|Workspace metadata request timed out' {
                            $repairState.Kind = 'WORKSPACE_LIST_FAILED'
                            break
                        }
                        'Workspace validation failed' {
                            $repairState.Kind = 'ROUTING_VALIDATION_FAILED'
                            break
                        }
                        'missing a user identity|Missing selected user' {
                            $repairState.Kind = 'USER_ID_MISSING'
                            break
                        }
                    }
    
                    throw 'Request stopped'
                }
    
                if ($reply.PSObject.Properties.Name -notcontains 'result') {
                    $repairState.Kind = 'INVALID_RESPONSE'
                    throw 'Request stopped'
                }
    
                return $reply.result
            }
        }
    
        try {
            if (-not (Test-Path -LiteralPath $repairExe -PathType Leaf)) {
                Write-Host '[STOP] The specified executable was not found.'
                return
            }
    
            $existingServers = @(
                Get-CimInstance Win32_Process -Filter "Name = 'codex.exe'" |
                    Where-Object {
                        $_.ExecutablePath -eq $repairExe -and
                        $_.CommandLine -match '(?i)(?:^|\s)app-server(?:\s|$)'
                    }
            )
    
            if ($existingServers.Count -gt 0) {
                Write-Host '[STOP] An app-server from this executable is still running. Fully quit the desktop app and active Codex work first.'
                return
            }
    
            $startInfo = New-Object System.Diagnostics.ProcessStartInfo
            $startInfo.FileName = $repairExe
            $startInfo.Arguments = 'app-server'
            $startInfo.WorkingDirectory = $env:USERPROFILE
            $startInfo.UseShellExecute = $false
            $startInfo.CreateNoWindow = $true
            $startInfo.RedirectStandardInput = $true
            $startInfo.RedirectStandardOutput = $true
            $startInfo.RedirectStandardError = $true
            $startInfo.StandardOutputEncoding = [Text.Encoding]::UTF8
    
            $repairProcess = [Diagnostics.Process]::Start($startInfo)
            $repairProcess.StandardInput.NewLine = "`n"
            $repairProcess.StandardInput.AutoFlush = $true
    
            # Drain stderr asynchronously without printing its contents.
            $stderrDrain = $repairProcess.StandardError.BaseStream.CopyToAsync(
                [IO.Stream]::Null
            )
    
            $null = Invoke-WorkspaceRpc 0 'initialize' @{
                clientInfo = @{
                    name    = 'workspace_repair'
                    version = '1.0.0'
                }
                capabilities = @{
                    experimentalApi = $true
                }
            }
    
            $repairProcess.StandardInput.WriteLine(
                '{"method":"initialized","params":{}}'
            )
    
            Write-Host '[RUN] Reading the active login and workspace memberships.'
    
            $sessionList = Invoke-WorkspaceRpc 1 'accountSession/list' @{
                refreshWorkspaceMetadata = $true
            }
    
            $activeSessions = @(
                $sessionList.sessions |
                    Where-Object {
                        $_.isActive -eq $true -and
                        $_.sessionId -eq $sessionList.activeSessionId
                    }
            )
    
            if ($activeSessions.Count -ne 1) {
                Write-Host '[STOP] Could not identify one active managed login. Kind=NO_UNIQUE_MANAGED_SESSION'
                return
            }
    
            $activeSession = $activeSessions[0]
            $workspaces = @(
                $activeSession.workspaces |
                    Where-Object {
                        -not [string]::IsNullOrWhiteSpace([string]$_.accountId)
                    }
            )
    
            Write-Host ("[CHECK] Workspace count: {0}" -f $workspaces.Count)
    
            if ($workspaces.Count -eq 0) {
                Write-Host '[STOP] No workspaces are available. Kind=NO_WORKSPACES'
                return
            }
    
            for ($i = 0; $i -lt $workspaces.Count; $i++) {
                $displayName = (
                    [string]$workspaces[$i].name -replace '[\p{Cc}\p{Cf}]', ' '
                ).Trim()
    
                if ([string]::IsNullOrWhiteSpace($displayName)) {
                    $displayName = 'Unnamed'
                }
    
                $displayKind = switch ([string]$workspaces[$i].kind) {
                    'personal'  { 'Personal' }
                    'workspace' { 'Organization' }
                    default     { 'Type unavailable' }
                }
    
                Write-Host ("  {0}. {1} ({2})" -f (
                    $i + 1
                ), $displayName, $displayKind)
            }
    
            $repairState.Stage = 'select workspace'
            $choice = 0
            $answer = Read-Host 'Select the intended workspace number, or 0 to cancel if unclear'
    
            if (
                -not [int]::TryParse($answer, [ref]$choice) -or
                $choice -lt 1 -or
                $choice -gt $workspaces.Count
            ) {
                Write-Host '[CANCEL] No workspace switch was requested.'
                return
            }
    
            $targetWorkspace = $workspaces[$choice - 1]
    
            Write-Host '[RUN] Switching the selected workspace and validating routing.'
    
            $switchResult = Invoke-WorkspaceRpc 2 'accountSession/switch' @{
                sessionId         = $activeSession.sessionId
                accountId         = $targetWorkspace.accountId
                allowBrowserLogin = $false
            } 120000
    
            $selectedSessions = @(
                $switchResult.sessions |
                    Where-Object {
                        $_.isActive -eq $true -and
                        $_.sessionId -eq $activeSession.sessionId -and
                        $_.selectedWorkspaceAccountId -eq $targetWorkspace.accountId
                    }
            )
    
            if ($selectedSessions.Count -ne 1) {
                $repairState.Kind = 'SELECTION_NOT_CONFIRMED'
                throw 'Selection not confirmed'
            }
    
            $accountResult = Invoke-WorkspaceRpc 3 'account/read' @{
                refreshToken = $false
            }
    
            $accountPresent = $null -ne $accountResult.account
            $routingPresent = $null -ne $accountResult.workspaceRouting
    
            Write-Host '[RESULT] Workspace selection confirmed: True'
            Write-Host ("[RESULT] Account present: {0}" -f $accountPresent)
            Write-Host ("[RESULT] Workspace routing present: {0}" -f $routingPresent)
    
            if ($accountPresent -and $routingPresent) {
                Write-Host '[NEXT] Reopen the desktop app and check connectivity and chat loading.'
            } else {
                Write-Host '[NEXT] Recovery is not confirmed. Keep the status lines above for diagnosis.'
            }
        }
        catch {
            if (
                $repairState.Stage -eq 'accountSession/switch' -and
                $repairState.Kind -in @('TIMEOUT', 'PROCESS_ENDED', 'LOCAL_ERROR')
            ) {
                $repairState.Kind = 'SWITCH_OUTCOME_UNKNOWN'
            }
    
            Write-Host ("[STOP] Stage={0}; Kind={1}; RPC={2}" -f (
                $repairState.Stage
            ), $repairState.Kind, $repairState.RpcCode)
        }
        finally {
            if ($null -ne $repairProcess) {
                try { $repairProcess.StandardInput.Close() } catch {}
    
                try {
                    if (-not $repairProcess.WaitForExit(3000)) {
                        $repairProcess.Kill()
                        [void]$repairProcess.WaitForExit(3000)
                    }
                }
                catch {
                    Write-Host '[CLEANUP] Could not confirm that the diagnostic process exited.'
                }
    
                $repairProcess.Dispose()
            }
        }
    }

    Interpret the fixed status categories as follows:

    Status Meaning
    All three [RESULT] checks are True This diagnostic app-server confirmed the selected workspace, an account object, and routing information. Verify the desktop UI after reopening it.
    NO_UNIQUE_MANAGED_SESSION The service could not identify one active managed ChatGPT login usable by this API.
    NO_WORKSPACES The returned list has no selectable workspace.
    WORKSPACE_LIST_FAILED Fetching workspace metadata failed or timed out.
    SIGN_IN_REQUIRED The target needs another sign-in; this helper does not perform that flow.
    ROUTING_VALIDATION_FAILED Validation failed during switching. The previous state is not guaranteed to have been restored.
    SWITCH_OUTCOME_UNKNOWN The final switch response was not received. The switch may already have taken effect; do not automatically repeat it.
    Other RPC_ERROR Keep the stage and numeric code for diagnosis. Do not post raw authentication data.

    Result and limits

    After the workspace-selection procedure, the desktop connection was restored in my environment. I have not yet established long-term persistence across repeated restarts or later app updates, or reproduced the recovery on other accounts.

    This report does not establish that the network, proxy, certificates, or OAuth token issuance caused the original failure. It identifies the state that was observed and the operation after which the desktop recovered. The recovery helper does not manually edit auth.json or JWT claims.

    Related reports: #59410 and #62498. In particular, some reports in #59410 also have missing ChatGPT user-identity claims; this helper requires a usable managed identity and should not be assumed to resolve those cases.

    References for maintainers

    The implementation references below are pinned to the bundled CLI version used in this case:

    Could the desktop offer a normal workspace-selection recovery step when a managed login exists but the selected workspace is absent? A more specific error for this state would also help distinguish it from transport failures and avoid repeated app resets.

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-serverauthbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions