Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
Can't open the About dialog because the app never gets past the sign-in screen. Microsoft Store build (OpenAI.Codex), no updates available as of 4 Oct 2026.
What subscription do you have?
Personal ChatGPT account
What platform is your computer?
Windows 11
What issue are you seeing?
The desktop app can't get past the sign-in screen. The browser part of sign-in succeeds and says I can close the tab, but back in the app sign-in fails with:
workspace routing discovery timed out
It happens on every retry. It worked fine until 4 Oct 2026, and the same account works normally on chatgpt.com.
This matches the sign-in failure BochengYao described in #46382, but that issue was closed by its author after their own case turned out to be a CODEX_CLI_PATH override. My setup has no override or external runtime:
CODEX_CLI_PATHis not set at User or Machine scope- No
codexon PATH,npm ls -g @openai/codexis empty, and there's no~/.codex/packages/standalone
So the app should be using its bundled runtime.
What steps can reproduce the bug?
- Open the ChatGPT desktop app (Microsoft Store version) on Windows 11.
- Start sign-in and complete it in the browser with Google.
- The browser confirms sign-in.
- Back in the app, sign-in fails with
workspace routing discovery timed outand the app stays on the sign-in screen.
What is the expected behavior?
Sign-in should complete and the app should open normally, as it did before 4 Oct. If routing discovery fails, the app should show an actionable error instead of a timeout.
Additional information
- Personal ChatGPT account, signed in with Google. Region: Australia.
- Tried: ended all ChatGPT/Codex processes in Task Manager and retried several times; checked the Microsoft Store for updates (none available).
- Haven't reset or reinstalled, since people in [Windows][26.915.31029] Account/profile APIs fail with status 432 "Workspace routing is unavailable" #46382 report it doesn't help.
- Possibly unrelated: I've changed my Gmail address using Google's address-change feature. ChatGPT still shows the old address, and the web app works fine.
- Related: [Windows][26.915.31029] Account/profile APIs fail with status 432 "Workspace routing is unavailable" #46382 (closed, same error family), Windows desktop app incorrectly switches to ChatGPT Work and becomes unusable #46941.
Activity
github-actions commentedon Oct 4, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
seanyi0104 commentedon Oct 4, 2026
Thanks for the pointers. #49921 shows the same error, but there it's triggered by a local proxy that isn't passed to the bundled runtime (fixed by setting HTTP_PROXY/HTTPS_PROXY). I'm not using any proxy or VPN, so this looks like a different trigger on Windows. Leaving this open unless maintainers think otherwise.
Askir-Deioy commentedon Oct 9, 2026
I can reproduce this issue on Windows 10 with Codex Desktop package version
26.1002.7124.0.Browser authentication completes successfully, and
codex.exe login statusreportsLogged in using ChatGPT. However, the Desktop app cannot initialize the workspace.Desktop logs:
Workspace routing is unavailable(status 432)/settings/user,/wham/usageremote_connectionsCLI reproduction:
Using the bundled
codex.exewith--no-daemonproduces:Troubleshooting performed:
26.1002.7124.0CODEX_CLI_PATHis unset at both User and Machine levelslog_dirconfigurationThis affects both Desktop and the bundled CLI, even though the CLI reports an authenticated ChatGPT session.
Could the team investigate workspace routing discovery during
account/read? I would also appreciate a supported workaround that preserves existing local sessions and configuration.zpeoo commentedon Oct 9, 2026
有解决方案吗?我今天也遇到了相同的问题
Askir-Deioy commentedon Oct 9, 2026
mehrshadmollaafzal commentedon Oct 20, 2026
Potential workaround: sign out old ChatGPT sessions
I hit a very similar workspace-routing sign-in failure on Windows on 2026-10-20 and was able to get Codex Desktop working again after signing out of many existing ChatGPT sessions via ChatGPT Settings → Security → Sessions.
Environment
OpenAI.Codex 26.1013.4894.0codex-cli 0.161.0CODEX_CLI_PATHunset at User and Machine scopeSymptoms
Sign-in failed: workspace routing discovery failedcodex login statusreturnedLogged in using ChatGPTcodex --no-daemonfailed at TUI bootstrap:Unexpected token '<', '<!DOCTYPE' ... is not valid JSON.Things that did not help
What worked
I did not isolate which particular session (if any) caused the failure, nor establish whether the number of sessions itself was responsible. It may have been an account/session-state refresh triggered by the sign-outs. This is one successful user observation, not a confirmed root cause or universal fix. Sharing in case it helps others reproduce or diagnose the workspace-routing issue.
Askir-Deioy commentedon Oct 22, 2026
Update: What eventually worked for me (Windows 10, Codex Desktop + CLI, proxy environment)
I'm the user who reported the same issue here on October 9.
After a rather painful troubleshooting journey involving HTTP 401/432, workspace routing errors, OAuth failures, CLI problems, and multiple reinstalls, I eventually got Codex working again.
I wanted to share the steps and observations that helped me. This is my personal experience, not a universal fix. I still cannot confirm the exact root cause of the original Desktop issue.
1. Check your upstream network or proxy provider first
If you're using a VPN, proxy service, mobile hotspot, or another network provider, check whether your connection is being throttled or experiencing unusual latency or packet loss.
You may want to contact your upstream provider and ask about server congestion or speed restrictions.
In my case, I was using a mobile hotspot that had been throttled after exhausting its data allowance. My mobile plan renewed around the time Codex Desktop recovered.
However, I cannot prove this caused the recovery. I had also tested other networks, so the timing might have been coincidental.
2. If you use Anaconda, check SSL certificate environment variables
This was one of the most useful discoveries in my case.
My PowerShell environment contained:
SSL_CERT_FILE=D:\anconda\Library\ssl\cacert.pemIt was set at the Process level, while the Windows User and Machine values were empty.
Codex CLI sometimes failed with:
You can check your current PowerShell environment with:
$env:SSL_CERT_FILEAnd temporarily remove that variable with:
This does not delete Anaconda's certificate file or modify the permanent Windows environment settings.
After temporarily removing this variable, my CLI successfully completed OAuth authentication and could actually respond to prompts.
Interestingly, I later encountered
workspace routing discovery failed (code -32603)again, and removingSSL_CERT_FILEallowed the CLI to start successfully again.I eventually configured my PowerShell environment to stop reintroducing this variable.
If you use Anaconda, I strongly recommend checking this before reinstalling anything. You can also ask an AI assistant to help inspect your environment variables safely.
I cannot confirm that this caused every earlier HTTP 401/432 error, but the improvement in CLI behavior was repeatable on my machine.
3. Use a dedicated proxy-configured browser for CLI authentication
This step is especially relevant if your network requires a proxy.
In my case, I used Clash Verge with a local SOCKS5 proxy at:
7897 was my local proxy port. Yours may be different.
I configured a separate Microsoft Edge browser profile/instance specifically for authentication, with outbound internet traffic routed through my local proxy.
My goal was a fail-closed proxy setup: if the proxy became unavailable, external traffic should fail instead of silently falling back to a direct connection.
Be careful here: simply setting a browser proxy does not automatically guarantee fail-closed behavior. You should verify the actual routing and apply appropriate firewall or network rules if preventing direct external connections is important to you.
Also, remember that Codex's OAuth process uses a local
localhost/127.0.0.1callback. Local loopback communication must remain accessible, even when external direct connections are blocked.I then used PowerShell to perform CLI authentication instead of relying on the Desktop app's login button.
First:
Then, with my required proxy/TUN configuration active:
I copied the generated authorization URL and opened it in my dedicated browser.
During my troubleshooting, the first attempt sometimes failed, while another attempt succeeded without changing anything. I also occasionally saw a browser error involving
127.0.0.1, even though the terminal indicated successful login.Do not assume a localhost error is harmless. Check whether Codex actually completed authentication:
The result I was looking for was:
Once authenticated, I tested the CLI:
In my earlier tests, the first launch occasionally failed during
account/read, while the second succeeded. This was intermittent behavior I observed, not something I can guarantee for other installations.When it worked, I sent a simple prompt and received a normal model response.
At that point, I had verified that the account could authenticate, initialize a workspace through the CLI, and actually use a model in that environment.
That was useful evidence that the problem was not a total loss of Codex access on my account. However, it did not completely rule out account-side or Desktop-specific issues.
4. Back up your conversations, then consider a clean reinstall
Only consider this after less destructive troubleshooting has failed.
I used the working CLI to inspect and preserve local data. You can also back up your conversations and configuration using another trusted method.
Important locations may include:
There are also Codex application-package data directories on Windows.
Back up your conversation history, MCP configuration, and any other important settings before making changes.
I eventually:
A clean reinstall did not immediately fix the original workspace-routing failure in my case, so please don't assume it will solve yours.
5. Configure proxy environment variables for Codex, then authenticate through PowerShell
Another important part of my final setup was making sure Codex had explicit proxy configuration instead of depending entirely on Windows system proxy behavior.
For example, if your environment uses a SOCKS5 proxy, the relevant variables may include:
Here,
socks5hindicates SOCKS5 with hostname resolution handled through the proxy.For setups with a separate HTTP proxy listener,
HTTP_PROXYandHTTPS_PROXYcan also be configured to point to the appropriate HTTP proxy port.Some Codex versions and setups use a
.envfile under the Codex home directory, usually:However, make sure your particular CLI/Desktop version actually loads the file and that the port is valid. Environment inheritance can differ between PowerShell, the native Desktop app, and other runtimes.
A
.envfile by itself does not enforce a system-wide no-direct-connection policy.Once the proxy environment was configured, I used the official CLI login flow through PowerShell rather than repeatedly using the Desktop login UI.
In my experience, after CLI authentication succeeded and the local environment was configured correctly, I was eventually able to get Desktop working as well.
However, there was also a period when CLI worked while Desktop remained stuck on its sign-in screen. I cannot claim that successful CLI login will always fix Desktop.
I verified recovery by opening Desktop, entering the main interface, and successfully sending actual model requests.
My old conversations also eventually became usable again without an additional confirmed fix.
Important precautions
Please be careful with repeated sign-ins and proxy changes.
auth.json, or unredacted authentication logs.Finally, I have not tested the workaround mentioned above involving signing out of old ChatGPT sessions, so I cannot verify whether it would have helped in my particular case.
Final observations
My experience suggests that several different issues can produce very similar Codex errors:
The two most useful findings in my case were:
1. Removing the Anaconda-provided
SSL_CERT_FILErestored CLI functionality on more than one occasion.2. Carefully configuring the network/proxy environment and using PowerShell for authentication helped me reach a working setup.
The Desktop eventually recovered, but I still cannot identify one definitive action responsible for that recovery.
I hope this helps someone else spend less time troubleshooting and more time actually using Codex.
Good luck! :)