Skip to content

Windows Codex Desktop fails to load organization settings after update while CLI works normally #48747

Open

Description

@zhoudq198997-alt

What version of the Codex App are you using (From “About Codex” dialog)?

Codex Desktop: 26.924.20706 Codex CLI: 0.158.0-alpha.2

What subscription do you have?

ChatGPT Plus

What platform is your computer?

Windows 11 Professional (10.0.22631), x64

What issue are you seeing?

After updating the Codex Windows Desktop application, the app repeatedly displays the following error:

"Unable to load organization settings. The application has been paused until organization settings can be loaded safely."

The issue started after a Codex update on September 26, 2026.

Initially, Codex returned a 401 Unauthorized error referencing an sk-svcac API key, despite the fact that I was authenticated using my ChatGPT Plus account and had not configured an API key.

After restarting Windows, the application temporarily worked again. However, following another application update, the organization settings error returned.

Important findings:

  • Codex CLI works normally and successfully completes model requests.
  • Authentication mode is chatgpt.
  • No OPENAI_API_KEY or CODEX_API_KEY is configured.
  • WebSocket connectivity succeeds (HTTP 101 Switching Protocols).
  • ChatGPT account authentication works.
  • codex doctor reports healthy local databases and valid configuration.

Troubleshooting already performed:

  • Restarted Windows and Codex multiple times.
  • Signed out and signed back into ChatGPT.
  • Changed proxy/network settings.
  • Used Windows application Repair.
  • Backed up and regenerated the desktop application's Web user data.
  • Verified CLI functionality independently.
  • Inspected Codex logs for authentication and configuration errors.

None of these steps resolved the desktop application issue.

The Codex CLI remains functional, but the Windows Desktop App is blocked by the organization settings initialization error.

I suspect a desktop-specific initialization or authentication issue introduced during the update, although the exact root cause is currently unknown.

What steps can reproduce the bug?

  1. Install or update the Codex Windows Desktop App to version 26.924.20706.
  2. Sign in using a ChatGPT Plus account.
  3. Launch the Codex Desktop App.
  4. The application attempts to initialize and load organization settings.
  5. A blocking dialog appears: "Unable to load organization settings."
  6. Click "Retry". The same error continues to appear.
  7. Restart Windows and launch Codex again. The issue may temporarily disappear but has returned after another update.

Additional verification:

Running the Codex CLI independently succeeds:

codex exec --skip-git-repo-check "Reply only: Connection test successful. Do not read or modify any files."

The CLI successfully returns the expected response, while the Desktop App continues to fail.

What is the expected behavior?

The Codex Desktop App should successfully load organization settings and open the workspace normally after signing in with my ChatGPT Plus account.

Additional information

The CLI and Desktop App use the same local Codex environment. The CLI works, but the Desktop App fails during organization settings initialization.

Image

Activity

  1. added
    app
    on Sep 27, 2026
  2. added
    bug
    windows-os
    auth
    on Sep 27, 2026
  3. github-actions commented on Sep 27, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

  4. waibaba-fifi commented on Sep 30, 2026

    @waibaba-fifi

    I’m experiencing the same issue on a newer Windows Codex Desktop version: 26.928.1915.0.

    The app continuously shows “Unable to load organization settings” and cannot reach the main interface.

    Troubleshooting already performed:

    • Retry and sign out/sign in
    • Windows App Repair and Reset
    • Different network / phone hotspot
    • Checked %USERPROFILE%\.codex\config.toml (empty)
    • Cleared the app's LocalCache and TempState
    • ChatGPT web remains accessible

    The issue started immediately after updating Codex on September 30, 2026.

    This suggests the issue is still reproducible on 26.928.1915.0, not only the earlier 26.924.x builds.

  5. filipgalysz commented on Sep 30, 2026

    @filipgalysz

    What worked for me:

    Change
    C:\Users\YOUR_USER\ .codex
    to
    C:\Users\YOUR_USER\ .codex.backup

    Open the app and login. Tell it to bring back your past conversation from the backup (C:\Users\YOUR_USER\ .codex.backup)

  6. sunshuanglong20010414 commented on Oct 4, 2026

    @sunshuanglong20010414

    Hit this too, and burned a full working day on it. Posting what I found so the next person doesn't have to.

    Three things worth knowing up front:

    1. The logs are not missing. They're in %USERPROFILE%\.codex\logs_2.sqlite (SQLite, not text files). Everyone looks in %LOCALAPPDATA%\Codex\Logs, finds nothing, and concludes the app "fails silently before logging". That wrong conclusion is why this issue has dozens of replies and still no root cause.

    2. The real delta between stable and beta is the app-server transport. Beta 26.727 talks to the app-server over stdio

    codex-issue-48747-comment.md

    . Stable 26.930 talks to it over a WebSocket, which gets reset on every launch with os error 10054 (WSAECONNRESET). Same machine, same account, same CODEX_HOME, same network — beta works, stable doesn't:

    WARN codex_app_server_transport::transport::websocket
    websocket receive error: IO error: 远程主机强迫关闭了一个现有的连接 (os error 10054)
    WARN codex_app_server::transport
    dropping message for disconnected connection: ConnectionId(0..3)

    And in the very same session: GET https://chatgpt.com/backend-api/codex/models -> status=200 OK. So auth/DNS/TLS/egress are fine — it's the transport specifically. This also means no amount of local cleanup (config, socket, processes, reinstall, MSIX container, ACLs) can fix it, because the failing path is a transport beta never opens.

    1. Your chat history is recoverable, but not through the UI. The source of truth is sessions/**/rollout-*.jsonl; state_5.sqlite is just a version-coupled index. I tried deleting state_5 to force a re-migrate and tried copying a stable-era state_5 into beta — both give you titles with empty bodies, and in the second case new messages typed into an old thread silently vanish. Parsing the rollouts to Markdown is the only thing that actually worked (137 rollouts → 63 conversations / 2,344 messages). Details in the collapsed section.

    Workaround: use the beta channel. CLI (codex 0.160.0) is unaffected either way.

    Three asks for the maintainers, in priority order:

    1. Surface the real error. The dialog says "Unable to load organization settings"; the actual failure is the app-server WebSocket being reset. The current wording misdirects every single troubleshooting attempt in this thread.
    2. Log the WebSocket peer address/port. The log says only codex_app_server_transport::transport::websocket with no peer — no way to tell whether the app-server itself or something in between sent the RST. That one missing field is the difference between a diagnosable bug and a week of guessing.
    3. Don't hard-fail startup on this — and ship a supported stdio fallback when the WebSocket transport fails. Beta works for me purely because it never opens the failing transport.

    Happy to run a packet-level capture of the loopback WebSocket in 26.930 to identify who sends the RST, if a maintainer wants that data point.

    Full details: environment, everything ruled out, data layout, recovery attempts

    Environment: Windows 11 Enterprise, corporate-managed device, Trend Micro OfficeScan. ChatGPT Plus personal account (no Business/Enterprise workspace). OpenAI.Codex 26.930.3930.0 broken / OpenAI.CodexBeta 26.727.4816.0 fine. CLI 0.160.0 works. codex doctor: 0 failures. No VPN/proxy/tunneling.

    Extracting the log (kill codex processes first — the file is locked otherwise):

    powershell
    Get-Process codex -EA SilentlyContinue | Stop-Process -Force -EA SilentlyContinue
    $src = @()
    foreach ($f in "$env:USERPROFILE.codex\logs_2.sqlite", "$env:USERPROFILE.codex\logs_2.sqlite-wal") {
    if (Test-Path $f) { $src += [Text.Encoding]::UTF8.GetString([IO.File]::ReadAllBytes($f)) }
    }
    [regex]::Matches(($src -join "`n"), '(ERROR|WARN)[\x20-\x7e]{10,300}') | ForEach-Object { $_.Value } | Select-Object -Last 40

    Ruled out, with evidence:

    # Hypothesis Evidence
    1 Network / corporate proxy / VPN Fiddler live on 8888, zero captured requests; ProxyEnable=0 no change; /codex/models → 200
    2 config.toml NUL corruption (#49469) 867 bytes, 867 non-zero
    3 Missing plugin dirs All present, 274 files
    4 Remote plugin catalog is the cause All [features] gates off — dialog persists, logs still show plugins_enabled=true
    5 Daemon missing (#48820) Recreated; daemon version → running; dialog persists
    6 Sandbox service Stopped with -Force; dialog persists
    7 Two daemons fighting over app-server-control.sock Cleaned control dir, launched stable only → same dialog
    8 WDAC / CI policy All *PolicyRequired=0, no subkeys
    9 Disk / ACL / quota 249 GB free, FullControl, write + junction tests pass
    10 MSIX container shadowing No second .codex in any container path
    11 Windows Repair / Reset Repeated; reinstalled repeatedly; no effect

    Where your data lives

    codex-issue-48747-comment.md

    (both MSIX packages share one CODEX_HOME — there is no "sync" between stable and beta, it's the same directory):

    Layer Path
    Source of truth (message bodies) .codex\sessions\YYYY\MM\DD\rollout-*.jsonl
    UI index .codex\state_5.sqlite (threads, thread_sections, …)
    Desktop UI state .codex\.codex-global-state.json
    Memory / Goals .codex\memories_1.sqlite / .codex\goals_1.sqlite
    Your skills .codex\skills\<name>\SKILL.md + agents\openai.yaml
    Official skills (not yours) .codex\skills\.system\
    Remote recommendations (not local) .codex\vendor_imports\skills-curated-cache.json

    Recovery attempts:

    Attempt Outcome
    Delete state_5.sqlite, let beta re-migrate Regrew to ~9 MB, all 137 rollouts indexed — titles appear, bodies empty
    Copy stable-era state_5.sqlite into beta Titles render, bodies empty; new messages in old threads vanish after switching away or restart
    Restore skills\ from backup ✅ Works — 33 custom skills restored
    Restore .codex-global-state.json ✅ Works — project list + recent list return
    Parse rollout-*.jsonl → Markdown ✅ Only reliable path

    Why new messages vanish in old threads: the write reaches the filesystem (new rollout file), but state_5 isn't updated, so the new rollout never gets associated with the old thread_id. Switching back re-queries state_5, finds no new section, renders nothing. Not "storage blocked" — an index that no longer tracks the data. Treat old threads as frozen titles; do new work in new conversations.

  7. jag-a-i commented on Oct 7, 2026

    @jag-a-i

    This baloney has happened to me today, still doesn't seem to be fixed apparently

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

    appauthbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions