Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1013.3656.0 (issue first appeared on 26.1007.9446.0)
What subscription do you have?
None - API-key auth with a third-party OpenAI-compatible provider via local proxy. No ChatGPT account. This setup worked daily until 2026-10-14.
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64 (Windows 11 Pro), WSL2 Ubuntu 24.04
What issue are you seeing?
Since the core-engine auto-update on 2026-10-14 ~16:44 local (binaries under %LOCALAPPDATA%\OpenAI\Codex\bin), launching the desktop app with the agent environment set to "Windows Subsystem for Linux" shows a blocking modal and the app never starts:
Unable to load organization settings
(The app is paused until organization settings can be safely loaded. Network, proxy, or firewall may be blocking access.)
[Retry] [Sign out] [Quit]
- Retry loops back to the same modal.
- "Sign out" completes (auth.json gets rewritten to just the API key) but the modal returns.
- With agent environment = Windows, the app starts normally on the same machine.
- Reproduced on app 26.1007.9446.0 and still on 26.1013.3656.0 (tested 2026-10-16).
What steps can reproduce the bug?
- Windows 11 Pro (26200, x64) + WSL2 Ubuntu 24.04. Codex App from Microsoft Store (package OpenAI.Codex).
- Use a custom model provider with API-key auth: config.toml has model_provider = "custom", base_url = http://127.0.0.1:/v1, requires_openai_auth = true; auth.json contains only OPENAI_API_KEY. No ChatGPT account login. This is how the app has been used for months, including on 2026-10-13 and 2026-10-14 with agent environment = WSL.
- Set agent environment to "Windows Subsystem for Linux" and restart the app.
- The "Unable to load organization settings" modal blocks the app (Retry/Sign out loop).
What is the expected behavior?
The app should start with the WSL agent environment under API-key / custom-provider auth, as it did on 2026-10-13/14 before the 2026-10-14 core-engine update.
Additional information
Diagnostics already done (to save triage time):
- Likely red herrings - the following appear at high volume on WORKING days (2026-10-13/14) as well:
- GET /wham/usage and /settings/user -> HTTP 432 "Workspace routing is unavailable" (hundreds/day)
- "Sign in to ChatGPT to start a durable thread" (tens of thousands/day)
- bundled_plugins_marketplace_add_failed "marketplace
openai-primary-runtimeis reserved and cannot be added from this source" (thousands/day)
- During a gated WSL launch, the local app-server does come up: hostId=local reaches connected, host-app-server-projects migration completes, thread/read is served. So the WSL core itself starts; the gating happens on the app/render side.
- Tried without success: removing stale [marketplaces.*] sections from config.toml; preferred_auth_method = "apikey" in config.toml.
- Resetting the embedded browser profile (LocalCache/Roaming/Codex/web/Codex/codex-browser-app renamed) stopped the modal in Windows agent environment, but WSL agent environment still gates afterwards.
- New in 26.1013 logs: "read remote plugin details: chatgpt authentication required for remote plugin catalog; api key auth is not supported" (method=plugin/read), 28 occurrences. It also appears in Windows mode without blocking there.
- Side bug: during some gated launches the desktop file logger creates no new session log files at all under LocalCache/Local/Codex/Logs//, which makes diagnosis much harder.
- Config drift: after gated launches, runCodexInWindowsSubsystemForLinux in config.toml was observed flipped back to false on its own.
Questions:
- With the account-required direction (plugin catalog), is desktop usage with a custom provider / API key still supported?
- If the WSL agent environment now requires ChatGPT auth, please surface that explicitly instead of the generic "organization settings" modal.
Activity
github-actions commentedon Oct 16, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
ilovehawaii007-usa commentedon Oct 18, 2026
Update after two more app/engine updates (tested 2026-10-18):
Versions: app 26.1013.3656.0 → 26.1013.4894.0, core engine re-shipped (2026-10-16 ~09:34). Issue persists: with agent environment = WSL the app still blocks on the "Unable to load organization settings" modal; agent environment = Windows starts fine on the same machine.
The WSL architecture changed in these builds. The engine now relocates/downloads a Linux core to
%USERPROFILE%\.codex\bin\wsl\<hash>\and launches it viawsl.exethrough the/mnt/cpath. The relocated Linux core itself is healthy — executing it directly in WSL (.../bin/wsl/<hash>/codex --version) printscodex-cli 0.163.0-alpha.10.2.New failure signature in
LocalCache/Local/Codex/Logs/<yyyy>/<mm>/<dd>/:The bubblewrap sandbox resources for the Linux core (
codex-resources) do not exist anywhere on this machine — not in the app package (C:\Program Files\WindowsApps\OpenAI.Codex_...\app\resources\), not under%LOCALAPPDATA%\OpenAI\Codex, not under~/.cache/codex-runtimes. Manually creating%USERPROFILE%\.codex\bin\wsl\codex-resources\does not help: the error isstat_source, i.e. the source file to relocate is missing entirely — the resource bundle appears to never have been downloaded/shipped. Core spawn viastdio_transport_spawned ... spawnCommand=wsl.exeis logged right before the app stops making progress.Relation to #54300: I believe this is the same underlying bug — same Windows build 26200, same app builds, same date window (2026-10-14/15), same "Unable to load organization settings" startup blocker. #54300's reporter uses a personal ChatGPT account while I use custom-provider/API-key auth (no ChatGPT login), so the trigger appears independent of the auth method. Happy to consolidate into #54300 if that is easier for triage.
moyumksmehappy commentedon Oct 18, 2026
Additional independent reproduction and local log evidence (2026-10-18):
Environment
26.1013.4894.0(from the local app log path)262002.6.1.0, kernel6.6.87.2-1Controlled A/B reproduction
[desktop]runCodexInWindowsSubsystemForLinux = false, Codex starts normally.falserestores normal startup. Repeated on the same machine.Local log signature during WSL startup
At 2026-10-18T03:26:14.266Z (and again at 03:29–03:30Z), the app logged:
The source
codex-resources\bwrapis missing from the installed package. The log also recordsstdio_transport_spawned ... spawnCommand=wsl.exe. The config is now back tofalseafter recovery.This appears to reproduce the same missing bundled
bwrapsource failure reported in this issue.rambllller commentedon Oct 20, 2026
Additional confirmation from another affected user on Codex Desktop 26.1013.4894.0, using ChatGPT account authentication.
I performed a read-only scan of 92 local Codex logs and confirmed the same WSL executable relocation failure signature reported here.
Log evidence:
bundled_executable_relocation_failed: 24 occurrences across 12 log filesoperation=stat_source: 24 occurrencescodex-resources\bwrap: 24 occurrencesAll three patterns occur together in the same log entries:
The destination directory does not currently exist. The source-file availability inside the installed package has not yet been independently verified.
Additional authentication symptom:
While the agent environment was set to WSL, Codex Desktop repeatedly failed to sign in with:
The Windows-hosted HTTP proxy was reachable from Windows, but the WSL-to-Windows localhost proxy path was identified as a separate connectivity issue.
Recovery:
After changing the agent environment back to Windows Native through a local configuration edit:
This is further independent evidence that the missing
bwraprelocation warning is associated with WSL startup in this build.I do not claim that the
bwrapfailure directly caused the OAuth token exchange failure. These may be two separate issues exposed by the WSL environment.It would be useful to investigate both the missing WSL sandbox resource and the application's failure to provide a recovery path when WSL initialization or networking prevents sign-in.
ilovehawaii007-usa commentedon Nov 3, 2026
Resolved for me after the 2026-10-30/31 core engine update — WSL agent mode starts normally again (no more organization-settings
modal).
shiyghoou commentedon Nov 13, 2026
Still reproducing on 26.1106.6628.0 (Microsoft Store), so later builds haven't fixed this.
Environment
%USERPROFILE%\.codex\bin\wsl\…:codex-cli 0.167.0-alpha.3.2(stale); Windows-side copied runtime:0.167.0-alpha.4.1Symptoms
runCodexInWindowsSubsystemForLinux = true, every launch shows the "Unable to load organization settings" modal. Log:Desktop startup policy read failed attempt=1 phase=policy-read reason=protocol retrying=false. Note that the reason isprotocol, nottimeout.falselets the app start normally. Toggling it back reproduces the modal.bundled_executable_relocation_failed destinationPath=%USERPROFILE%\.codex\bin\wsl\codex-resources\bwrap errorCode=ENOENT errorMessage="Bundled executable relocation failed during stat_source"Leading up to it (possibly related)
spawnCommand=wsl.exe) exited with code 4294967295 every 4–15 minutes. Before each exit, the desktop loggedFailed to parse app-server stdout JSONL message, and the payload was UTF-16LE text (a Japanese-locale Windows message) written to stdout. Eventuallywsl.exe --statusitself failed or timed out.wsl --shutdownrestored WSL, but the app still fails in WSL mode.Already ruled out
wsl -d Ubuntu -e bash -lic 'echo __OK__'prints only__OK__, so there is no shell-startup noise.config.tomlwith only the WSL flag set still fails, so the config contents aren't the cause.codexbinaries run--versionfine.Workaround: set the agent environment to Windows.