[Windows] Signing out shows “Oops, an error has occurred” after AppServer RPC disconnect
Summary
Signing out of the Codex desktop app completes successfully, but the app does not transition to the normal signed-out screen. Instead, it immediately reaches the global error boundary and displays:
Oops, an error has occurred
The application log reports:
AppServerManager RPC is not connected
Environment
- App: OpenAI Codex desktop app
- Version: 26.818.5229.0
- Installation source: Microsoft Store
- Package status: OK
- OS: Windows 25H2, OS build 26200.9168
- Architecture: x64
Microsoft Store currently reports that this is the latest version available for my release channel.
Steps to reproduce
- Open the Codex desktop app.
- Sign in with a ChatGPT account.
- Open the account menu/settings.
- Select Sign out.
- Wait for the app to switch to the signed-out screen.
Expected behavior
After signing out, the app should display the normal signed-out screen with the option to continue and sign in again.
Actual behavior
The sign-out operation succeeds, but the UI displays a generic error page:
Oops, an error has occurred
A Try again button is shown.
Reproduction frequency
This has reproduced consistently during recent sign-out attempts. Local logs indicate that the same AppServerManager RPC is not connected error has occurred immediately after multiple sign-out operations since approximately August 19, 2026.
Sanitized log excerpt
The following timestamps are in UTC:
2026-08-24T01:43:22.615Z
AppServerConnection response_routed
method=account/logout
errorCode=null
2026-08-24T01:43:23.127Z
desktop_fetch_auth_401
hadToken=false
skipRetryReason=no_token_attached
2026-08-24T01:43:23.225Z
error boundary
errorMessage="AppServerManager RPC is not connected"
errorName=Error
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Additional Windows reproduction on newer desktop builds
I can confirm that this still reproduces on the current Windows desktop build
26.820.9563.0(x64), as well as on26.820.7780.0.Environment:
26200.9168, Professionalja-JPSanitized event sequence on
26.820.9563.0(UTC):The logout request succeeds and the token is cleared, but the renderer reaches the RPC error boundary 331 ms after the logout response. The background process then continues unauthenticated usage polling until the Codex process tree is terminated.
The earlier reproduction on build
26.820.7780.0had the same ordering, with the RPC error 326 ms after the successful logout response and unauthenticated polling continuing for about 30 minutes.This supports an ordering/race issue in the logout transition: the App Server RPC lifecycle appears to be torn down before all renderer consumers have switched to the signed-out state.
Workaround: wait for active tasks to finish, terminate the Codex desktop process tree, relaunch the app, and sign in again. No cache or configuration reset is required.
The excerpt above contains no account IDs, conversation IDs, request IDs, access tokens, usernames, local paths, or full stack traces.
Additional Windows evidence: successful logout followed by cleanup-time RPC access
Independent confirmation on Windows 11 Pro x64 (build 26200), official Desktop 26.820.9563.0. Two owner-initiated logout attempts on August 27 produced this ordering:
AppServerManager RPC is not connected.This is not, by itself, evidence of a backend crash or SQLite corruption.
Read-only inspection of the packaged frontend found a plausible cleanup path: the review-pane snapshot-metrics component calls an RPC accessor after its AppServer manager has disconnected. In the affected bundle,
webview/assets/app-initial-BHiyAZSX.js, the component/accessor symbols areIrl/qg. The same accessor/cleanup pattern was present in the separately inspected 26.820.10647.0 package. These are version-specific observations and a candidate cause, not a maintainer-confirmed diagnosis.Could the signed-out transition detach/disable RPC consumers before disconnecting the manager, and make unmount cleanup tolerate an already-disconnected manager? A regression should verify successful logout reaches the sign-in view without an error boundary, while preserving local history.
The machine is now on 26.825.3734.0, but logout has not been deliberately reproduced on that build, so I am not claiming current-build reproduction or a verified fix. A separate history-projection recovery succeeded; that does not establish that this logout bug is fixed.
No signed application files were patched. No account/session IDs, private paths, tokens, raw logs, or conversation contents are included.