Repository navigation
Description
Version / platform
Desktop (Microsoft Store MSIX) OpenAI.Codex 26.930.3930.0 (x64), bundled CLI / app-server 0.160.0. codex doctor: 22 ok, 0 fail. ChatGPT Plus, personal workspace (no Business/Enterprise). Windows 11 build 10.0.26200, zh-CN. Internet access requires a local HTTP proxy (system proxy enabled, 127.0.0.1:9674).
What I am seeing
On every launch the desktop app shows the native modal "Organization settings could not be loaded" ("The app is paused until your organization settings can be loaded safely. A network connection, proxy, or firewall may be preventing access. Check your connection and try again, or sign out and use another account..."). Buttons: Retry / Sign out / Quit.
The app never renders its UI, and no Codex backend process is ever spawned.
Retry, Sign out and signing back in, switching proxy exit nodes, resetting the app package data (311.9 MB -> 3.9 MB), and even launching with a fresh empty CODEX_HOME all reproduce it. Codex CLI and Codex on the web work fine on this machine with the same account and network. This started right after the desktop app and the standalone CLI were updated.
Evidence
1. The app fails before its own logging subsystem initializes. Logs normally land in %LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\<yyyy>\<MM>\<dd>\codex-desktop-*.log. The last log file is from the last successful run and shows working requirements reads:
info [AppServerConnection] response_routed ... method=configRequirements/read ... durationMs=2 errorCode=null
info [AppServerConnection] response_routed ... method=configRequirements/read ... durationMs=97 errorCode=null
Every launch afterwards (8 launches, including after an app-package reset) produced zero new log files, even though that directory is writable by this user.
2. The app-server is never spawned. Sampling the process tree for 40 s after launch, only the Electron main process plus helpers exist (crashpad-handler, gpu-process, network.mojom.NetworkService, storage.mojom.StorageService):
5s: ChatGPT.exe 6 processes | codex.exe backend 0
10s: ChatGPT.exe 6 processes | codex.exe backend 0
...
30s: ChatGPT.exe 6 processes | codex.exe backend 0
No renderer process, no \\.\pipe\codex-*, no app-server-control.sock.
3. codex app-server daemon start fails deterministically - this is the exact operation the app needs during startup:
PS> codex app-server daemon start
Installing daemon from CLI version 0.160.0 into C:\Users\<user>\.codex\packages/app-server-daemon...
Error: 拒绝访问。 (os error 5)
PS> codex app-server daemon version
Error: failed to connect to C:\Users\<user>\.codex\app-server-control\app-server-control.sock
Caused by:
套接字操作遇到了一个已死的网络。 (os error 10050)
This is not a generic filesystem permission problem: the same user can write to that very directory, and the ACL grants FullControl (inherited) to SYSTEM, Administrators and the user:
OK C:\Users\<user>\.codex\packages\app-server-daemon\releases\_t.tmp
OK C:\Users\<user>\.codex\packages\app-server-daemon\_t.tmp
4. Cloudflare challenges the workspace-policy endpoint while a sibling endpoint succeeds. Using the account's stored ChatGPT token through the same proxy:
| Request | Result |
|---|---|
GET https://chatgpt.com/backend-api/codex/models?client_version=0.160.0 |
200 OK |
GET https://chatgpt.com/backend-api/accounts/{account_id}/workspace_policy |
403, Cf-Mitigated: challenge |
GET https://chatgpt.com/backend-api/me |
403, Cf-Mitigated: challenge |
GET .../workspace_policy without an auth header |
403, Cf-Mitigated: challenge |
Identical with a Chrome User-Agent, with a codex/0.160.0 User-Agent, and with no User-Agent at all; the body is the Cloudflare interstitial. The app-server itself does honor the system proxy and reaches the backend:
INFO codex_http_client::client: Request completed method=GET
url=https://chatgpt.com/backend-api/codex/models?client_version=0.160.0 status=200 OK
DEBUG reqwest::connect: proxy(http://127.0.0.1:9674/) intercepts 'https://chatgpt.com/'
What I already ruled out
config.tomlcorruption: 3837 bytes, 0 NUL bytes, no BOM, parses cleanly withtomllib;codex doctorreportsconfig.toml parse okandconfig loaded.- Local user-state corruption: launching with a brand-new empty
CODEX_HOMEreproduces the failure identically. - Database corruption:
codex doctorreportsrollout files and state DB thread inventory agree; all SQLite integrity checksok. - Auth:
stored auth mode: chatgpt, tokens present and valid. - App package data: reset via Windows Settings, relaunch -> same modal.
- Reinstall / app update: the issue survived both.
- Proxy node switch and sign out / sign in: no change.
Expected behavior
With healthy local data, valid auth and a working network path to the backend, the desktop app should load its workspace requirements and start, as it did before the update.
Suggestions
- Surface the underlying error (file/line, or the failing fetch with its HTTP status) instead of the generic network/proxy/firewall text - duplicate reports show users reinstalling and renaming data directories for hours.
- If organization settings cannot be loaded, fall back to unrestricted defaults instead of hard-blocking the app before the renderer starts.
- Investigate whether
codex app-server daemoninstallation can fail withos error 5on machines where the target directory is writable, and whether the desktop app reports that failure as a policy-load failure. - Treat a Cloudflare challenge (HTTP 403 +
Cf-Mitigated: challenge) on/backend-api/accounts/*/workspace_policyas retryable/transient rather than a hard block.
Activity
github-actions commentedon Oct 3, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
fei259 commentedon Oct 3, 2026
Follow-up: daemon install failure confirmed as part of this, and further narrowing
Adding hard evidence gathered on the affected machine. Two things: (a) the app-server daemon install genuinely fails at startup, and (b) the app still hard-fails after that is worked around, before it does anything observable.
1.
codex app-server daemon startfails deterministically — same root cause as #49449This is the operation the desktop app needs during startup. Per the analysis in #49449, the failing call is
std::fs::rename(stage, release)inprepare_install.rs—MoveFileExon a directory returnsERROR_ACCESS_DENIEDwhile something (scanner/handle) briefly holds a file inside the freshly-written ~427 MB tree. Staging is complete butreleases/stays empty.Workaround applied (from #49449 / #50285), which works: pre-stage the full vendor tree so
release.try_exists()is true and the warm path skips the rename:After that,
codex app-server daemon startno longer fails withos error 5, and the daemon metadata is created correctly:(It then stopped at "this Windows launcher prevents background processes from outliving it" when invoked through the PATH launcher — expected for a launcher shim, and not relevant to the desktop app, which uses its own bundled binary.)
2. The desktop app still fails hard, and does nothing observable
With the daemon metadata now in place, the app still shows the same modal on every launch, and:
...\LocalCache\Local\Codex\Logs\<yyyy>\<MM>\<dd>\) receives zero new files on every launch since the breakage — including after manually pre-creating the directory tree and verifying it is writable.reqwest::connect: proxy(http://127.0.0.1:9674/) intercepts 'https://chatgpt.com/'and gets/backend-api/codex/models→ 200. During app startup, nothing appears in the proxy log from the app or any Codex child process.codex.exe, no\\.\pipe\codex-*, noapp-server-control.sock.#32770dialog withCommandButton_100/101/102(Retry / Sign out / Quit), shown before any UI renders.3. Things ruled out by direct test on this machine
config.toml(per #49663, #50311)tomllib;codex doctor:config.toml parse okconfig.tomlcontent in general[desktop]section) and relaunchedCODEX_HOMEcurrentjunction +auto-update-version; verifiedLogs\<yyyy>\<MM>\<dd>tree, verified writablecodex doctor:stored auth mode: chatgpt, tokens valid; CLI reaches inference endpointcodex doctor:rollout files and state DB thread inventory agree; all SQLite integrityok4. Request
Two independent problems seem to be in play, and both deserve a fix:
std::fs::renamefailing withERROR_ACCESS_DENIED(Windows 0.159.2: daemon install os error 5 is at std::fs::rename(stage, release), not the junction in #48853 #49449, Windows daemon updater fails with Access denied (os error 5); manual package installation succeeds #50285). AMoveFileExretry loop, or staging on the target volume before populating, would make this robust — a partially staged release must never be indistinguishable from a working one, and the error should name the failing path/operation rather than surfacing a bareos error 5.unknown policy state != explicit policy decision— as raised in Desktop app stuck on "Organization settings could not be loaded" after auto-update to 26.930.2377.0 (works fine on 26.928.4866.0) #50254, the "policy absent / not applicable" case for a personal (non-managed) workspace should resolve to unrestricted rather than hard-blocking, and the UI should distinguish "policy unavailable" from "policy denied".Environment: Windows 11 build 10.0.26200 x64; Store MSIX
OpenAI.Codex26.930.3930.0; bundled CLI 0.160.0;codex doctor22 ok / 0 fail; ChatGPT Plus personal workspace.Related: #49449, #50285, #50254, #49663, #49469, #50311, #49845
edwardswhiskeyblues-alt commentedon Oct 4, 2026
Additional reproducible evidence from another Windows machine, using the same affected desktop build:
Environment
10.0.26300.0, x64OpenAI.Codex_26.930.3930.0_x64__2p2nqsd0c76g0OkDistinguishing evidence
A previous desktop build,
26.928.3736.0, had remained resident and usable since before the update. After installing26.930.3930.0:OpenAI.Codex_2p2nqsd0c76g0!Appproduces the blocking “Organization settings could not be loaded” modal.explorer.exe shell:AppsFolder\OpenAI.Codex_2p2nqsd0c76g0!Appreproduces the same failure. Therefore this is not caused by a stale shortcut or a versioned executable path.26.928.3736.0). No persistent root UI process from26.930.3930.0is present.The installer’s Open action can therefore mask the regression by reactivating an older surviving process, while every clean activation path for the newly installed build fails at the workspace-policy gate.
No reset, sign-out, or uninstall was attempted after identifying this, because the older resident instance is the only working session and contains ongoing work.
Assessment
This strongly suggests a build-specific workspace-policy/auth recovery regression rather than a general installation, shortcut, DNS, proxy, or firewall failure. It also exposes a side-by-side activation ambiguity: after an update, Open may focus an older resident process instead of proving that the newly installed package started successfully.
It would help if the dialog surfaced the actual failing endpoint/status and the running package version, and if the installer/update flow detected and handled an older resident instance explicitly.
MazDragon commentedon Oct 5, 2026
Adding a local native-Windows reproduction of the
app-server daemon versionfailure with OS error 10050 shown in section 3 of this report. The matching evidence is the default control-socket connection failure. The organization-settings dialog and the daemon installer's OS error 5 have not been reproduced in this test, so a shared root cause is unconfirmed.Environment and scope:
Minimal read-only reproduction:
codex app-server daemon versionResult, with the personal profile path redacted:
Observed on 2026-10-05 (UTC):
codex app-server proxyread attempt exited with code 1 and OS error 10050 before application-level initialization.app-server daemon versiondiagnostic reproduced the native control-socket connection failure.An earlier generic proxy-failure record exists from 2026-10-03 with 0.159.0-alpha.12.1. These observations do not establish a regression introduced specifically in 0.160.0.
Technical notes:
connect_at()callsUnixStream::connect()before the WebSocket upgrade; initialization follows only after that succeeds. The reported “failed to connect to” context identifies this earlier stage.codex_uds::UnixStreamand then relays bytes.uds_windows::UnixStream::connect()and an asynchronous wrapper. The error alone does not identify which Windows operation failed or establish a general internet/LAN outage.No daemon restart, alternate socket, network/security setting change, credential read, or transcript read was performed for this reproduction. No account or quota result was obtained.
Related symptom: #22965 reports the same default-socket OS error 10050 through
app-server proxy, but its reproduction uses Remote SSH. This comment adds a local reproduction without that SSH bootstrap layer.Is this a known native-Windows AF_UNIX/default-control-socket failure? A supported, non-mutating diagnostic that distinguishes an absent or stale daemon from a native socket/launcher problem would help, especially one that preserves active sessions and existing permissions.
xingyun-code commentedon Oct 5, 2026
Confirming this exact signature on a second machine, and adding the missing piece: a reboot after the MSIX update fixed it.
Environment
OpenAI.Codex_26.930.6422.0(x64), bundled CLIcodex-cli 0.160.0127.0.0.1:10792Timeline (local time, UTC+8)
18:41:40–18:41:42 — the update
26.930.3930.0→26.930.6422.0was registered. System event log:18:41 → 19:13 — every launch failed identically and quickly (~4 s):
%LOCALAPPDATA%\Packages\OpenAI.Codex_2p2nqsd0c76g0\LocalCache\Local\Codex\Logs\<yyyy>\<MM>\<dd>\(exactly as you reported)codex.exeapp-server process and no app-server handshake%LOCALAPPDATA%\OpenAI\Codex\bin\.staging-2ffcf3015ebd52b4-<random>— 12 accumulated, none ever became a real directoryRetrylooped (dialog dismissed and returned);Sign out/ relaunch did not helpResolution: reboot
The first lines of the new desktop log name the failing step
Suggested mechanism
The failing step is Windows core-runtime materialization: copy the bundled components into
%LOCALAPPDATA%\OpenAI\Codex\bin\<hash>via a.staging-<hash>-<random>directory followed by an atomic rename.After the update that copy never completed, so
<hash>\codex.exenever existed, the app-server was neverspawned, and the startup-requirements read failed with a message that (misleadingly) blames the network.
Two details that made this so hard to diagnose, and that may be worth fixing:
the "no logs" symptom is exactly what this failure should produce, not evidence of something exotic.
Please consider opening the log file, or buffering, earlier.
ChatGPTservice disabled, a new oneinstalled pointing at the new package path). That servicing state appears to need a restart to settle,
and the app has no visible way to recover from it short of a reboot.
Ruled out on this machine
config.toml: parses cleanly withtomllib, no duplicate keys, no malformed lines, no NUL bytes;mtime predates the update. Neither the "duplicate
notifykey" nor the "appearanceLightChromeThemesplit across lines" workarounds applied here.
codex.exeinto%LOCALAPPDATA%\OpenAI\Codex\succeeds in 0.14 s.
GET https://chatgpt.com/backend-api/codex/models→ 200 OK from the same machine throughthe same proxy. (
GET /backend-api/medid return 403Cf-Mitigated: challenge, but that is not whatblocked startup here.)
auth.json,.codex-global-state.json, and all SQLite DBs pass integrity checks.~\.codex\packagesand~\.codex\app-server-controldid not exist before the reboot, andcodex app-server daemon versionfailed withos error 10050. However on Windows the desktop app usesstdio transport (
[StdioConnection]in the log), so the daemon socket is likely a red herring for thissymptom.
Practical workaround for anyone hitting this
%LOCALAPPDATA%\OpenAI\Codex\bin. If you see only empty.staging-<hash>-<random>directories and noreal
<hash>directory, you are hitting this same step.LanceSandino commentedon Oct 7, 2026
I can't get it working on mac os intel
26.1002.52244I had issue with preivous version too. I'm stuck on
26.917.71314for now.Tried removing
.codexand nothing.Edit
I had a hook setting the
CODEX_CLI_PATHand that was breaking it... uninstalled and updated and working!