Skip to content

[Windows] Agent environment = WSL: app stuck on "Unable to load organization settings" modal since 2026-10-14 engine update #54478

Closed

Description

@ilovehawaii007-usa

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?

  1. Windows 11 Pro (26200, x64) + WSL2 Ubuntu 24.04. Codex App from Microsoft Store (package OpenAI.Codex).
  2. 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.
  3. Set agent environment to "Windows Subsystem for Linux" and restart the app.
  4. 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):

  1. 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-runtime is reserved and cannot be added from this source" (thousands/day)
  2. 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.
  3. Tried without success: removing stale [marketplaces.*] sections from config.toml; preferred_auth_method = "apikey" in config.toml.
  4. 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.
  5. 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.
  6. 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.
  7. 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

  1. added
    app
    on Oct 16, 2026
  2. added
    bug
    windows-os
    auth
    custom-model
    on Oct 16, 2026
  3. github-actions commented on Oct 16, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. ilovehawaii007-usa commented on Oct 18, 2026

    @ilovehawaii007-usa
    Author

    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 via wsl.exe through the /mnt/c path. The relocated Linux core itself is healthy — executing it directly in WSL (.../bin/wsl/<hash>/codex --version) prints codex-cli 0.163.0-alpha.10.2.

    New failure signature in LocalCache/Local/Codex/Logs/<yyyy>/<mm>/<dd>/:

    bundled_executable_relocation_failed
    destinationPath=C:\Users\PC\.codex\bin\wsl\codex-resources\bwrap
    errorCode=ENOENT
    errorMessage="Bundled executable relocation failed during stat_source"
    

    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 is stat_source, i.e. the source file to relocate is missing entirely — the resource bundle appears to never have been downloaded/shipped. Core spawn via stdio_transport_spawned ... spawnCommand=wsl.exe is 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.

  5. moyumksmehappy commented on Oct 18, 2026

    @moyumksmehappy

    Additional independent reproduction and local log evidence (2026-10-18):

    Environment

    • Codex Desktop for Windows (MSIX), version 26.1013.4894.0 (from the local app log path)
    • Windows 11, build 26200
    • WSL package version 2.6.1.0, kernel 6.6.87.2-1
    • The distro name/version was not available from the diagnostic shell.

    Controlled A/B reproduction

    1. With [desktop] runCodexInWindowsSubsystemForLinux = false, Codex starts normally.
    2. Enabling the setting to run the agent in WSL immediately brings up the blocking “Unable to load organization settings” modal.
    3. Setting it back to false restores 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:

    bundled_executable_relocation_failed
    destinationPath=%USERPROFILE%\.codex\bin\wsl\codex-resources\bwrap
    errorCode=ENOENT
    errorMessage="Bundled executable relocation failed during stat_source"
    operation=stat_source
    sourcePath=%WINDOWSAPPS%\OpenAI.Codex_26.1013.4894.0_x64__<package>\app\resources\codex-resources\bwrap
    

    The source codex-resources\bwrap is missing from the installed package. The log also records stdio_transport_spawned ... spawnCommand=wsl.exe. The config is now back to false after recovery.

    This appears to reproduce the same missing bundled bwrap source failure reported in this issue.

  6. rambllller commented on Oct 20, 2026

    @rambllller

    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 files
    • operation=stat_source: 24 occurrences
    • codex-resources\bwrap: 24 occurrences
    • First occurrence: 2026-10-19 14:05:51 (UTC+8)
    • Last occurrence: 2026-10-20 13:11:09 (UTC+8)

    All three patterns occur together in the same log entries:

    bundled_executable_relocation_failed
    destinationPath=%USERPROFILE%\.codex\bin\wsl\codex-resources\bwrap
    errorCode=ENOENT
    errorMessage="Bundled executable relocation failed during stat_source"
    executableName=bwrap
    operation=stat_source
    

    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:

    token_exchange_failed
    error sending request for url
    https://auth.openai.com/oauth/token
    

    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:

    • The desktop application became usable again.
    • ChatGPT login succeeded.
    • The bundled executable relocation errors stopped appearing in subsequent logs (zero occurrences after 13:26 local time on October 20).

    This is further independent evidence that the missing bwrap relocation warning is associated with WSL startup in this build.

    I do not claim that the bwrap failure 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.

  7. ilovehawaii007-usa commented on Nov 3, 2026

    @ilovehawaii007-usa
    Author

    Resolved for me after the 2026-10-30/31 core engine update — WSL agent mode starts normally again (no more organization-settings
    modal).

  8. shiyghoou commented on Nov 13, 2026

    @shiyghoou

    Still reproducing on 26.1106.6628.0 (Microsoft Store), so later builds haven't fixed this.

    Environment

    • Windows x64, WSL2 Ubuntu (default distro, version 2)
    • Desktop app: OpenAI.Codex 26.1103.4239.0 → 26.1106.6628.0 (release 26.1106.51428)
    • Copied WSL-side codex under %USERPROFILE%\.codex\bin\wsl\…: codex-cli 0.167.0-alpha.3.2 (stale); Windows-side copied runtime: 0.167.0-alpha.4.1

    Symptoms

    • With 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 is protocol, not timeout.
    • Setting it to false lets the app start normally. Toggling it back reproduces the modal.
    • WSL-mode launches log: 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)

    • From 2026-11-12 04:35 UTC, the WSL app-server (spawnCommand=wsl.exe) exited with code 4294967295 every 4–15 minutes. Before each exit, the desktop logged Failed to parse app-server stdout JSONL message, and the payload was UTF-16LE text (a Japanese-locale Windows message) written to stdout. Eventually wsl.exe --status itself failed or timed out. wsl --shutdown restored 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.
    • A fresh config.toml with only the WSL flag set still fails, so the config contents aren't the cause.
    • Both the Windows-side and WSL-side codex binaries run --version fine.

    Workaround: set the agent environment to Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthbugcustom-modelwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions