Repository navigation
Description
Desktop App WebSocket Connection Timeout After Upgrade to 26.924.2738.0
Summary
After upgrading from version 26.923.x to 26.924.2738.0, the Codex desktop application fails to load with the error message "Unable to load organization settings." The root cause is a WebSocket handshake timeout when connecting through a proxy server.
Environment
- OS: Windows 11 Home (Build 10.0.26200)
- Codex Desktop Version: 26.924.2738.0
- Previous Working Version: 26.923.x (exact version unknown, backup dated 2026-09-26)
- Network Setup: Behind proxy (Clash, 127.0.0.1:7890)
- System Proxy: Configured and enabled (127.0.0.1:7890)
Steps to Reproduce
- Install/upgrade to Codex desktop version 26.924.2738.0
- Launch the desktop application in a network environment requiring proxy access
- Application displays "Unable to load organization settings" error
Expected Behavior
The desktop application should successfully connect through the configured system proxy, as it did in version 26.923.x.
Actual Behavior
- Desktop application shows "Unable to load organization settings"
codex doctorreports:WebSocket handshake timed out- HTTP/HTTPS requests work normally (reachability tests pass)
- Only WebSocket connections fail
Diagnostic Information
From codex doctor:
⚠ websocket Responses WebSocket timed out; HTTPS fallback may still work
model provider openai
provider name OpenAI
wire API responses
supports websockets true
proxy env vars none
connect timeout 15000 ms
auth mode chatgpt
endpoint wss://chatgpt.com/backend-api/<redacted>
· handshake timed out
✓ reachability active provider endpoints are reachable over HTTP
reachability mode ChatGPT auth
ChatGPT inference URL https://chatgpt.com/backend-api/<redacted> reachable (HTTP 405)
Network Observations:
- Desktop app establishes connections to proxy port (127.0.0.1:7890) - verified via
netstat - 30+ ESTABLISHED connections to proxy port observed
- HTTP/HTTPS requests succeed through proxy
- Only WebSocket upgrade requests fail
Key Finding: CLI Works, Desktop App Doesn't
CLI (✅ WORKS):
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
export ALL_PROXY=http://127.0.0.1:7890
codex doctorResult: WebSocket connected (HTTP 101 Switching Protocols)
Desktop App (❌ FAILS):
Using system proxy configuration (same proxy settings)
Result: WebSocket handshake timed out
Investigation Summary
We conducted extensive troubleshooting to isolate the issue:
✅ Confirmed Working:
- Proxy server (Clash): Fully functional, supports WebSocket (CLI test confirms)
- Proxy nodes: Tested both Trojan and AnyTLS protocols - both work with CLI
- System proxy configuration: Properly set to 127.0.0.1:7890
- HTTP/HTTPS connections: Desktop app successfully makes HTTP requests through proxy
- Authentication: CLI uses tokens from
~/.codex/auth.jsonsuccessfully
❌ Ruled Out:
- WinHTTP proxy settings: Tested setting
netsh winhttp set proxy- no effect - Proxy protocol compatibility: Switched between different node types - same failure
- Cloudflare blocking: CLI succeeds, indicating server-side is not the issue
- config.toml proxy configuration: Desktop app doesn't read this file
- Network connectivity: General connectivity works, only WebSocket fails
🎯 Root Cause Analysis:
The desktop application and CLI handle proxy connections differently:
| Aspect | CLI (Works) | Desktop App (Fails) |
|---|---|---|
| Proxy detection | Environment variables → System proxy | System proxy only |
| Authentication | Reads ~/.codex/auth.json |
Uses encrypted local storage |
| WebSocket result | HTTP 101 Success | Timeout |
Evidence suggests: When the desktop app sends WebSocket upgrade requests through the proxy, the request either:
- Lacks necessary authentication headers/cookies, causing Cloudflare to return 403
- Uses a different network stack that doesn't properly handle proxy WebSocket connections
- Has a timeout value too short for the proxy round-trip time
Manual testing with curl through the same proxy shows WebSocket upgrade requests receive HTTP/1.1 403 Forbidden (Cloudflare challenge page), while CLI succeeds - suggesting the desktop app's requests are missing proper authentication context.
Temporary Workaround
Using the CLI with environment variables works:
export HTTP_PROXY=http://127.0.0.1:7890
export HTTPS_PROXY=http://127.0.0.1:7890
codex.exePrevious Version Behavior
Version 26.923.x (pre-upgrade):
- ✅ Desktop app worked normally with same proxy configuration
- ✅ No proxy configuration in config.toml needed
- ✅ Automatically used Windows system proxy settings
This suggests a regression in proxy/WebSocket handling in the new version.
Additional Context
- Backup verification: We have a complete backup from 2026-09-26 16:02 (pre-upgrade) with no proxy-related configuration, confirming the old version worked automatically
- Multiple proxy configurations tested: Both local subscription and remote subscription nodes tested
- Geographic considerations: Proxy necessary for accessing ChatGPT services from current location
- UWP app characteristics: Desktop app runs as UWP (package: OpenAI.Codex_2p2nqsd0c76g0), which may have different network isolation from CLI
Request
Could you please investigate why the desktop application no longer properly handles WebSocket connections through system proxies after the upgrade? This appears to be a regression from the previous version.
If additional diagnostic information is needed, please let me know what commands or logs would be helpful.
System Information
Version: 26.924.2738.0
OS: Windows 10.0.26200 (Windows 11 Core) [64-bit]
OS Language: zh-CN
CLI Version: 0.158.0-alpha.2.1
Auth Mode: chatgpt
Stored ChatGPT tokens: true
Activity
[-]Desktop App WebSocket Connection Timeout After Upgrade to 26.924.2738.0[/-][+][Windows Desktop] App WebSocket Connection Timeout After Upgrade to 26.924.2738.0[/+]ATlantisMo-Zhang commentedon Sep 28, 2026
I can reproduce this on the same Windows Desktop build and would like to add another data point.
Environment
Impact
codex doctor --summaryAdditional checks
https://chatgpt.comandhttps://auth.openai.com(TLS completes; curl reaches Cloudflare and receives 403 challenge as expected for curl).HTTP_PROXY,HTTPS_PROXY, andALL_PROXYtohttp://127.0.0.1:7897and launchedChatGPT.exefrom that same shell; the desktop app still showed the same organization-settings error.This strongly looks like the same 26.924.2738.0 Windows desktop proxy/WebSocket regression described here. A rollback build, hotfix, or guidance on any additional logs that would help would be appreciated.
lo12580 commentedon Sep 29, 2026
I can reproduce the same "Unable to load organization settings" failure on Windows Desktop 26.924.2738.0, but with one important difference from the original report: in my case, codex doctor shows the Responses WebSocket connection succeeding with HTTP 101 Switching Protocols.
Environment
Impact
codex doctor
Relevant results:
✓ config loaded
✓ auth auth is configured
✓ websocket connected (HTTP 101 Switching Protocols)
✓ reachability active provider endpoints are reachable over HTTP
Additional doctor checks also showed:
ChatGPT inference URL reachable (HTTP 405)
desktop assets CDN reachable (HTTP 200)
A real CLI request also succeeds:
codex exec --skip-git-repo-check "Reply only: OK"
...
OK
Additional checks
Why this may be useful
This looks related to the same 26.924.2738.0 Windows Desktop startup regression, but it does not reproduce the exact WebSocket-timeout signature from the original report.
In this case:
That suggests the user-visible error may also be triggered by a Desktop-specific organization-settings/bootstrap path after the WebSocket connection itself has already succeeded.
If useful, I can provide the full codex doctor output and relevant AppModel / AppX event logs.
lo12580 commentedon Sep 29, 2026
Update:
logs_2.sqliterebuild did not resolve itI tested the local diagnostic-log database rebuild workaround as well.
Before the test:
logs_2.sqlite: ~96.36 MBlogs_2.sqlite-wal: ~0.31 MBlogs_2.sqlite-shm: ~0.03 MBAfter fully closing Codex and moving those files aside, the Desktop app temporarily changed behavior: instead of showing the organization-settings dialog, it launched without a usable UI / appeared unresponsive.
The workaround did not restore Desktop functionality.
Without rebooting Windows, a subsequent Desktop launch returned to the original:
So this does not appear to be the large/corrupted
logs_2.sqlitecase reported by another user. Rebuilding the diagnostic log DB only changed the transient startup behavior and did not resolve the underlying issue.CLI, authentication, HTTP reachability, and the Responses WebSocket (
HTTP 101) remain healthy.Thymos2027 commentedon Oct 18, 2026
Related Windows Desktop result, with a narrower symptom than the OP's organization-settings failure:
On MSIX app
26.1007.2314.0/ app-server0.162.0-alpha.17.2, using a live FlClash HTTP proxy at127.0.0.1:7890, new Work/Codex turns repeatedly timed out on Responses WebSocket (1/5 through 5/5) before the HTTPS/responsesfallback returned 200. Launching the app from PowerShell withHTTP_PROXY/HTTPS_PROXY/ALL_PROXYalready set did not resolve it. The app-server had connections to the local proxy, but that did not establish the routing of its WebSocket attempts.%USERPROFILE%\.codex\.envwas absent. After adding those three proxy variables and loopbackNO_PROXYthere, then fully restarting the app, a new Work chat had no reconnect loop. Two WebSocket connections succeeded in the post-restart log window, with zero retry or HTTP-fallback entries. The built-inopenaiprovider was unchanged. The full before/after evidence and caveats are in #29958 (comment) .This confirms an effective Codex-scoped workaround on this machine, not the exact cause of the OP's separate organization-settings failure or a universal fix.