Codex Desktop OAuth token_exchange_failed immediately after automatic update to 26.810.41047 on macOS
What version of the Codex App are you using (From “About Codex” dialog)?
26.810.41047 Released Aug 14, 2026
What subscription do you have?
Pro
What platform is your computer?
MacBook Air M2 (Apple Silicon) macOS 15.6.1
What issue are you seeing?
Codex Desktop was working normally for more than a month. After the app automatically updated, existing conversations began repeatedly showing "Reconnecting" and eventually failed with:
stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
I signed out to troubleshoot. Since signing out, I can no longer sign back into Codex Desktop.
Browser authentication proceeds to the localhost callback, but Codex then displays:
token_exchange_failed
Token exchange failed: error sending request for url (https://auth.openai.com/oauth/token)
ChatGPT in Chrome continues to work normally.
The issue reproduces with two different ChatGPT accounts, on both Wi-Fi and a mobile hotspot.
Codex is correctly listening on the OAuth callback port:
codex ... TCP 127.0.0.1:1455 (LISTEN)
curl http://localhost:1455 returns Not Found, confirming the local callback server is responding.
env | grep -i proxy returns nothing, so no proxy environment variables are configured.
The problem started immediately following the automatic Codex Desktop update. No network, account or system configuration changes were made beforehand.
What steps can reproduce the bug?
Open Codex Desktop 26.810.41047 on macOS 15.6.1 / Apple Silicon M2.
Select Sign in with ChatGPT.
Complete authentication in Chrome.
Browser redirects to localhost:1455/auth/callback.
Codex fails to complete authentication.
Error displayed: token_exchange_failed.
Retrying produces the same result.
Reproduces using two separate ChatGPT accounts and both Wi-Fi and mobile hotspot.
What is the expected behavior?
After completing authentication in the browser, Codex Desktop should exchange the OAuth code, sign into my ChatGPT account and open normally.
Additional information
Troubleshooting already completed:
• Restarted Codex Desktop
• Force quit all Codex processes through Activity Monitor
• Signed out and attempted fresh authentication
• Tested a second ChatGPT account, same failure
• Tested Wi-Fi and mobile hotspot, same failure
• Chrome/ChatGPT web works normally
• Tested Chrome Incognito, same failure
• Confirmed Codex is listening on 127.0.0.1:1455
• Confirmed localhost callback server responds
• Confirmed no proxy environment variables are configured
• macOS: 15.6.1
• Hardware: MacBook Air M2 / Apple Silicon
• Codex Desktop: 26.810.41047, released Aug 14, 2026
Codex had been working normally on this Mac for more than a month. The issue began immediately after the automatic Desktop update.
I have deliberately not deleted Codex application data or project files because I do not want to risk losing local project/thread information.
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
I can reproduce this independently on a Mac Studio (Apple Silicon) with the current ChatGPT macOS app build 26.810.52044.
Environment / reproduction:
Sign-in failed: Login server error: Token exchange failed: error sending request for url (https://auth.openai.com/oauth/token)token_exchange_failedNetwork diagnostics from the affected Mac Studio:
curl -4 https://auth.openai.com/oauth/tokenreaches OpenAI successfullycurl -4 -X POST https://auth.openai.com/oauth/tokenreaches the endpoint and returns HTTP 400Missing required parameter: 'grant_type', demonstrating that HTTPS/TLS and POST connectivity to the token endpoint workThis appears highly consistent with the macOS Apple Silicon OAuth/client issue reported here. The problem is reproducible on the newer 26.810.52044 build as well.
I can reproduce the same issue on another Apple Silicon Mac, and in this case the failure continues even after authentication is restored.
Environment:
Observed sequence:
Reconnecting... waiting for networkand failed with:stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)localhost:1455/auth/callback, but the app failed with:token_exchange_failed: error sending request for url (https://auth.openai.com/oauth/token)~/.codex/auth.jsonusing the documented file credential store. Login then succeeded and the desktop UI could create chats, but every Codex request still failed at/backend-api/codex/responses.Troubleshooting already completed:
HTTP_PROXY,HTTPS_PROXY,ALL_PROXY,WS_PROXY, andWSS_PROXY/etc/hostsThis does not appear to be an account restriction or a generally blocked proxy endpoint, because the same account/network path works in the browser and on Windows. It appears specific to the macOS Apple Silicon desktop transport path.
Could a maintainer confirm whether additional logs are needed and whether a fixed desktop build or supported workaround is available?