Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
0.155.0-alpha.9.2
What subscription do you have?
ChatGPT Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
The Codex desktop app on Windows is unable to complete the account initialization/sign-in process.
The Codex CLI is installed correctly and authentication succeeds:
codex login status
Logged in using ChatGPT
However, when starting Codex, it fails during TUI bootstrap with:
Error: account/read failed during TUI bootstrap: account/read failed: duplicate workspace in routing discovery (code -32603)
I have already reinstalled Codex and verified that the runtime files referenced by config.toml exist.
I also performed a complete logout and login. Authentication completed successfully, but the exact same duplicate workspace in routing discovery error occurred immediately afterward.
What steps can reproduce the bug?
- Install/reinstall the Codex desktop app on Windows.
- Open PowerShell.
- Run:
codex login status
Authentication is reported as successful:
Logged in using ChatGPT
- Run:
codex logout
Result:
Successfully logged out
- Run:
codex login
Complete authentication in the browser.
Result:
Successfully logged in
- Start Codex:
codex
- Codex begins loading but immediately fails with:
Error: account/read failed during TUI bootstrap: account/read failed: duplicate workspace in routing discovery (code -32603)
The issue persists after reinstalling the application and performing a fresh authentication.
What is the expected behavior?
After successfully authenticating with my ChatGPT account, Codex should complete the account/workspace discovery process and start normally instead of failing during account/read.
Additional information
Codex CLI version observed during testing:
OpenAI Codex v0.155.0-alpha.9.2
I verified that the runtime paths referenced by the generated config.toml exist on disk.
The problem persists after:
- Reinstalling Codex
- Logging out completely
- Authenticating again successfully
- Verifying that
codex login statusreportsLogged in using ChatGPT
The error specifically occurs during account/workspace discovery:
duplicate workspace in routing discovery (code -32603)
This may be related to the workspace/account routing process rather than local authentication, since authentication itself completes successfully.
Activity
KongFxi commentedon Sep 21, 2026
I have also encountered such a situation.
kherona commentedon Sep 23, 2026
I have this problem too, somehow I have multiple workspaces when I try to login and cant see them or do anything about them, right now I cannot use codex on this account..
huangziwei01 commentedon Sep 23, 2026
I’m seeing the same issue on macOS with Codex CLI v0.156.1 and a ChatGPT Plus account that has multiple workspaces.
The error is:
Error: account/read failed during TUI bootstrap:
account/read failed: duplicate workspace in routing discovery (code -32603)
Authentication itself succeeds:
Successfully logged in
Logged in using ChatGPT
I’ve now reproduced the same failure through multiple independent login/configuration paths:
Normal OAuth login -> duplicate workspace in routing discovery
Fresh CODEX_HOME -> duplicate workspace in routing discovery
forced workspace ID -> duplicate workspace in routing discovery
device-auth login -> duplicate workspace in routing discovery
For the isolated test I used a completely fresh CODEX_HOME, so existing Codex state and account-switching tools were not involved.
I also tested:
forced_chatgpt_workspace_id = ""
and confirmed that the OAuth authorization request included:
allowed_workspace_id=
Authentication still succeeded, but account/read failed with the same duplicate workspace error.
I also tested:
codex login --device-auth
and the result was still the same duplicate workspace in routing discovery failure.
One additional data point: another ChatGPT account on the same Mac, with only one workspace, works normally in Codex. The affected account has multiple workspaces.
This makes it look increasingly likely that the failure is in workspace routing/discovery after successful authentication, rather than in the local credential store or a specific login method.
I’ve also opened an OpenAI Support case and they’ve requested codex login status, codex doctor, codex-login.log, a debug TUI log, and the workspace IDs for further investigation.
Koninec commentedon Sep 23, 2026
Reproduced on Codex CLI 0.156.1 on Windows x86_64.
--no-daemondoes not change the result:codex doctor --summaryreports:The same error also occurs with
codex exec:Output:
Login succeeds and
doctorreports auth/connectivity as healthy.MattSoares commentedon Sep 23, 2026
Hello,
I’m still unable to use Codex because of the duplicate workspace in routing discovery issue. I have checked my ChatGPT account and it shows only one account and one personal workspace, but Codex displays the same workspace twice and fails to start the session.
I’ve already checked that I’m using the latest version, but I still haven’t found a solution to this issue. I’m honestly very disappointed with this situation, especially because I’m paying for the service but currently cannot use one of its features properly.
I understand that bugs can happen, but I would really appreciate a clear solution or at least an update on when this issue is expected to be fixed.
Thank you, and I hope this can be resolved as soon as possible.
Koninec commentedon Sep 23, 2026
As a temporary workaround, you can downgrade to 0.154.0. This is not an official fix, but it worked in my case.
Windows 11 (PowerShell):
Linux:
curl -fsSL https://chatgpt.com/codex/install.sh | sh -s -- --release 0.154.0Then verify with:
Edit: this works for the CLI version of Codex, I haven´t tried fixing the GUI version
J-Amano commentedon Sep 30, 2026
Additional reproduction on Windows (Codex Desktop 26.924.2738.0; external codex-cli 0.159.0).
In my environment:
This looks like a Codex app-server/workspace-routing or Windows transport/sandbox interaction rather than an auth.json or repository-permission problem. The strongest differential is the execution context: clean standalone CLI succeeds, Desktop-inherited semantic execution fails. No credentials, tokens, private logs, or account identifiers are included here.
mallejsan-pixel commentedon Oct 3, 2026
I am experiencing the same issue on Windows with Codex CLI 0.160.0, and I have additional evidence that may help identify the root cause.
Most importantly, my ChatGPT account visibly shows TWO identical Personal workspaces for the same account/email address. In the ChatGPT mobile app, both entries are displayed as “Personal account / Personal”.
This appears to correlate directly with the Codex error:
Error: account/read failed during TUI bootstrap: account/read failed: duplicate workspace in routing discovery (code -32603)
Environment:
Authentication itself succeeds:
codex login statusreturns:Logged in using ChatGPTcodex logincompletes successfullycodex-login.logshows a valid callback and successful OAuth token exchangeI also performed a complete clean authentication reset:
codex logout~/.codex/auth.jsoncodex loginSuccessfully logged incodexThe same
duplicate workspace in routing discovery (code -32603)error still occurs.codex doctorcompletes with:Failing run: October 3, 2026, approximately 07:54 AM (UTC+3).
The important additional finding is that the ChatGPT UI itself displays two identical Personal workspaces. This suggests there may be a duplicate/stale Personal workspace association in the account/backend routing data rather than a local CLI authentication problem.
I can provide the redacted
codex-login.logand additional diagnostics if needed.Sanchit-Koul commentedon Oct 4, 2026
Encountering the same issue. Unable to login into codex cli or chat gpt windows app. Downgrading to 0.154.0 doesn't help either. I have raised a ticket but still awaiting any official workaround/fix. Here's my replication steps:
Problem:
When signing into ChatGPT/Codex, the workspace selector shows TWO identical entries, both named "Personal account". I did not create a second workspace.
ChatGPT Web:
Affected clients:
Exact Codex error:
"account/read failed during TUI bootstrap: account/read failed: duplicate workspace in routing discovery (code -32603)"
Environment:
C:\Program Files\nodejs\codex
C:\Program Files\nodejs\codex.cmd
I have already tried:
Important detail:
codex login --device-authreports "Successfully logged in", but immediately afterwardcodexfails with the duplicate workspace routing error.There is no CODEX_CLI_PATH environment variable configured.
The failure therefore appears to occur during account/workspace routing discovery rather than authentication itself.
If anyone has a workaround, please do share!
huawarrenm0-hash commentedon Oct 21, 2026
I want to know if you encountered this problem when you turned on a network proxy, especially in TUN mode. I ran into the same issue, and the timing was exactly after turning on TUN.I also tried submitting a ticket, but unfortunately OpenAI hasn’t replied to me for three weeks.
kherr-mediafly commentedon Nov 1, 2026
Same on macOS 26.7 arm64, ChatGPT Pro Lite, and still broken in 0.166.0. 0.154.0 works with the same auth.json, in both the TUI and
codex exec.The ID token's
organizationsclaim lists two orgs I own, both titled "Personal"; only one appears in the platform.openai.com UI. Renaming the visible one (the new title shows in the refreshed token) doesn't help, and neither doesforced_chatgpt_workspace_idset to my workspace UUID. OpenAI Support confirmed the hidden org can't be removed self-serve.Indayo commentedon Nov 10, 2026
Still reproducible on macOS as of Nov 10, 2026, now in the ChatGPT desktop app.
account/readfails withduplicate workspace in routing discovery, and the UI logsWorkspace routing is unavailable.auth.json: it has no workspace routing discovery.CODEX_CLI_PATHpointing to codex 0.155.1. It doesn't help: the app hangs at startup withDesktop startup policy read failed ... reason=protocol. So right now there's no way to use the desktop app with ChatGPT sign-in on an affected account./backend-api/wham/accounts/checkreturns the same personal account ID twice, and that they can't remove the duplicate from their side.Suggestion:
read_accountincodex-rs/app-server/src/request_processors/account_processor/workspace_routing.rsreturnsDuplicateWorkspacewhenever the account ID matches more than one entry. If the duplicate entries agree onworkspace_backend_originandaccount_routing_override, the client could use the first one instead of failing. That would unblock everyone here while the backend data gets fixed.