Skip to content

ChatGPT Windows Desktop: Codex shows “Unable to load organization settings” before composer/session, while Web + CLI work #48324

Open

Description

@GuanXinTang

Codex inside the ChatGPT Windows desktop app fails immediately with “Unable to load organization settings” and stops before the Codex composer loads. Because the composer never appears, no desktop Codex session is created and I cannot type / to submit feedback or obtain a desktop session ID.
Environment

  • OS: Windows 11
  • ChatGPT Windows Desktop (MSIX/AppX) version: 26.924.1866.0
  • Codex CLI present on system: 0.158.0-alpha.2
  • Auth: ChatGPT OAuth

Steps to reproduce

  1. Launch ChatGPT Windows desktop app
  2. Sign in successfully
  3. Open Codex
  4. Immediately see dialog: “Unable to load organization settings” (Retry / Sign out / Exit)
  5. Retry repeats indefinitely

Expected
Codex loads and shows the composer.

Actual
Codex stops at organization-settings initialization; composer never renders; no desktop session is created.

Comparison (same account)

This appears isolated to the Codex integration in the ChatGPT Windows desktop app (desktop-specific org-settings fetch/init path).

Troubleshooting performed

  • Windows app Reset + full reinstall
  • Re-authenticated (fresh %USERPROFILE%.codex\auth.json created)
  • Verified no proxy / WinHTTP proxy
  • Removed stale .codex junction from older migration; removed old switcher config
  • Confirmed no local policy/config files exist:
    • %USERPROFILE%.codex\config.toml (absent)
    • %USERPROFILE%.codex\managed_config.toml (absent)
    • %ProgramData%\OpenAI\Codex\requirements.toml (absent)
  • %USERPROFILE%.codex\sessions contains only CLI sessions (originator: codex_exec); archived_sessions empty (no desktop session is created)

Request
Please advise how to collect Windows desktop app logs/telemetry for this failure mode (when Codex UI fails before session creation), or investigate the desktop org-settings initialization/loading path.

Attachments
Screenshot of the “Unable to load organization settings” dialog available on request.

Activity

  1. added
    bug
    app
    windows-os
    on Sep 26, 2026
  2. 26716296 commented on Sep 26, 2026

    @26716296

    I hit the same error on Windows with version 26.924.1866.0 , though I’m using API-key auth rather than ChatGPT OAuth.

    What worked for me was rebuilding the local diagnostic log database , without resetting or reinstalling the app:

    1. Fully exit the app and any Codex processes.
    2. Back up%USERPROFILE%\.codex and the desktop app profile.
    3. Move these files from.codex into a separate backup folder, keeping them together:
      • logs_2.sqlite
      • logs_2.sqlite-wal
      • logs_2.sqlite-shm
    4. Launch the app normally so it creates a fresh log database.
      My old log files totaled about 6.6 GB. After moving them, the app opened normally and my existing conversations were accessible. History checks against the backup matched, and no auth or configuration changes were needed.

    Not sure whether the cause was corruption, size, or something else, but the “organization settings” message seems misleading in my case. Might be worth checking whether a local logging initialization failure can trigger this dialog.

  3. theo-logic commented on Sep 26, 2026

    @theo-logic

    Thank you @26716296
    For me the solution was very similar, I needed to rebuild state_5.sqlite and thread_history_1.sqlite corrupted by the update.
    I use ChatGPT OAuth, not a key.

  4. Wolterhon commented on Sep 26, 2026

    @Wolterhon

    Didn't help. I deleted the .codex folder altogether, still get this error even after reinstalling the app.

  5. jiaweing commented on Sep 27, 2026

    @jiaweing

    same issue here even signing out and reinstalling does not fix it

  6. Wolterhon commented on Sep 27, 2026

    @Wolterhon

    For me the issue is non ASCII characters in my profile folder. Creating another profile fixes it but properly fixing it for the devs is way easier than having to constantly switch between users or starting it as another user.

    Actually I just checked, the update 26.924.2738.0 fixed it for me.

  7. wnjyw commented on Sep 27, 2026

    @wnjyw

    OS: Windows 10
    Desktop version: 26.924.2738.0

    Same account:

    • ChatGPT Web: works
    • Web Codex: works
    • Codex CLI: works

    Desktop behavior:

    • "Unable to load organization settings"
    • Retry loops indefinitely

    Already tried:

    • Windows App Reset
    • Full reinstall
    • Direct connection
    • Clash Verge TUN
    • Fresh Electron/Web profile
    • Fresh auth.json
    • AppUserModelID direct launch

    Runtime:

    • codex.exe --version works
    • codex.exe app-server --help works
    • bundled CLI/runtime staging directories exist normally
    • no CODEX_CLI_PATH or NODE_REPL_NODE_PATH overrides

    Processes:

    • ChatGPT main process exists
    • GPU process exists
    • NetworkService exists
    • StorageService exists
    • no --type=renderer process
    • no codex.exe app-server process is spawned
  8. Wolterhon commented on Sep 27, 2026

    @Wolterhon

    @wnjyw have you tried creating another user with just latin letters in its name and running the app as it? Like testcodex

  9. wnjyw commented on Sep 27, 2026

    @wnjyw

    @wnjyw have you tried creating another user with just latin letters in its name and running the app as it? Like testcodex

    tried it——still doesn't work.

  10. Wolterhon commented on Sep 27, 2026

    @Wolterhon

    If I were you I'd try another VPN, it might be it.

  11. jiaweing commented on Sep 27, 2026

    @jiaweing

    i asked deepseek to troubleshoot for me because there was so many files to look through in the .codex folder like the other solutions

    mine was a corrupted config file and its resolved for me

    Image
  12. Tatonta commented on Sep 27, 2026

    @Tatonta

    I can reproduce this issue as well on Codex Desktop for Windows.

    Environment:

    • Codex package version: 26.924.2738.0
    • Package: OpenAI.Codex_26.924.2738.0_x64__2p2nqsd0c76g0
    • Windows build: 26200
    • ChatGPT subscription: Plus

    The application displays the "Unable to load organization settings" error and is unusable.

    I initially suspected that Windows organization/device-management policies were blocking the application, but I have ruled that out:

    AzureAdJoined    : NO
    EnterpriseJoined : NO
    DomainJoined     : NO
    WorkplaceJoined  : NO
    

    CODEX_CLI_PATH is also not set at Process, User, or Machine level.

    There are no AppLocker packaged-app execution events.

    Windows itself successfully activates the Codex MSIX application. The TWinUI log reports:

    Event ID: 1621
    OpenAI.Codex_2p2nqsd0c76g0!App
    Status: 0
    The operation completed successfully.
    

    The AppModel Runtime log shows the following startup sequence:

    20:53:48 - Event 210
    Desktop AppX container created
    
    20:53:48 - Event 211
    Codex process added to the Desktop AppX container
    
    20:53:48 - Event 201
    Codex process created successfully
    
    20:53:53 - Event 217
    Desktop AppX container destroyed
    

    So Windows successfully launches the application, but Codex terminates approximately five seconds later.

    This appears to happen after MSIX activation, during Codex's own startup / account / organization bootstrap rather than because Windows is preventing execution.

    I am happy to provide additional sanitized logs if useful.

  13. 29 remaining items

  14. adamzhangji commented on Oct 6, 2026

    @adamzhangji

    I can reproduce the same issue on Windows, and it still occurs on the newer Stable build 26.930.6422.0.
    Version history tested

    • Stable 26.930.2377.0 — fails with “Unable to load organization settings”
    • Stable 26.930.3930.0 — same failure
    • Stable 26.930.4958.0 — same failure
    • Stable 26.930.6422.0 — same failure
    • Beta 26.727.4816.0 — works
    • Codex CLI — works and successfully completes model requests
      Troubleshooting already completed
    • Retry — no change
    • Sign out and fresh sign-in — no change
    • Full uninstall/reinstall of Stable 26.930.6422.0 — no change
    • Fresh/renamed %USERPROFILE%.codex — no change
    • Windows Codex policy registry checked — no policy configured
    • Proxy enabled/disabled — Desktop failure persists
    • codex app-server daemon start succeeds
    • app-server 0.160.0 runs successfully
    • ChatGPT authentication is valid
    • WebSocket handshake succeeds with HTTP 101
    • ChatGPT inference endpoint is reachable
    • Desktop assets CDN (persistent.oaistatic.com) is reachable with HTTP 200
    • Local Codex databases pass integrity checks
      On my recent codex doctor, the app-server was healthy and running, provider endpoints were reachable, and the report showed 0 failures, but Stable Desktop still immediately blocks startup with “Unable to load organization settings”.
      The same Windows machine, network, and OpenAI account work with Beta 26.727.4816.0 and Codex CLI, which makes this appear isolated to the Stable Windows Desktop organization/workspace-policy initialization path.
      I have also tested multiple Stable updates (2377 → 3930 → 4958 → 6422), and none resolved the issue.
      I can provide a redacted codex doctor --json report, screenshots, or additional diagnostics if that would help.
  15. hemalshah28 commented on Oct 9, 2026

    @hemalshah28

    Open config.toml in notepad. you can find. "$env:USERPROFILE\.codex\config.toml"

    [desktop]
    followUpQueueMode = "queue"
    integratedTerminalShell = "wsl"
    runCodexInWindowsSubsystemForLinux = true
    

    Change it to

    [desktop]
    runCodexInWindowsSubsystemForLinux = false
    integratedTerminalShell = "powershell"
    

    This solves the issue. It looks like if you are using WSL then it has some issue.

  16. jiannanya commented on Oct 15, 2026

    @jiannanya

    Same error, and I fix it by delete the sqlite files mention above and execute the script below:

    $pkg = Get-AppxPackage OpenAI.Codex
     
    if ($null -eq $pkg) {
        Write-Host "Can not find OpenAI.Codex"
        exit 1
    }
     
    $codexPath = Join-Path $pkg.InstallLocation "app\resources\codex.exe"
     
    if (Test-Path $codexPath) {
        [Environment]::SetEnvironmentVariable(
            "CODEX_CLI_PATH",
            $codexPath,
            "User"
        )
     
        Write-Host "CODEX_CLI_PATH already update:"
        Write-Host $codexPath
    } else {
        Write-Host "Can not find codex.exe:"
        Write-Host $codexPath
    }
  17. gitjake commented on Oct 15, 2026

    @gitjake

    My case was solved by removing approval_policy = "untrusted" from config.toml.

    Log:
    info [AppServerConnection] app_server_connection.closed code=1 connectionId=1 hasReason=true reason="Error: approval_policy = \"untrusted\" is no longer supported; remove this setting" signal=null transport=stdio

  18. archon810 commented on Oct 22, 2026

    @archon810

    I'm on 26.1013.4894.0, and after sleeping my laptop and waking it up, I get this error. A full kill/restart of ChatGPT doesn't fix it.

    I don't have approval_policy in my config.toml.

    Reinstalling ChatGPT for Windows doesn't help either.

    Edit: Alright, looks like something crashed in WSL2. wsl --shutdown and wsl did the trick. I run Codex's agent environment as WSL. The error couldn't have been more cryptic though.

  19. wuji1020 commented on Oct 22, 2026

    @wuji1020

    I found a deterministic config.toml trigger for this issue on Windows.

    Environment:

    • Windows 11 x64
    • Codex Desktop: 26.1016.51333

    Reproduction:

    1. Fully exit Codex Desktop.
    2. Open %USERPROFILE%\.codex\config.toml.
    3. Remove only this entry:
    notify = [ "C:\\Users\\<user>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\2fbcd108736f9c20\\bin\\node_modules\\@oai\\sky\\bin\\windows\\codex-computer-use.exe", "turn-ended" ]
    1. Start Codex Desktop.
    2. Desktop starts normally.
    3. During the session, Codex automatically writes the same notify entry back into config.toml.
    4. Close Codex Desktop.
    5. Start it again.
    6. The app fails with “Unable to load organization settings”.
    7. Remove only the notify entry again.
    8. Desktop starts normally again.

    This reproduces every time.

    Important detail: the referenced executable is not missing. I verified:

    Test-Path "$env:LOCALAPPDATA\OpenAI\Codex\runtimes\cua_node\2fbcd108736f9c20\bin\node_modules\@oai\sky\bin\windows\codex-computer-use.exe"

    Result:

    True
    

    node_repl.exe in the same runtime also exists.

    So in my case this does not appear to be a stale-path issue. It looks like the Windows Desktop app is generating a valid-looking notify entry that then causes the next startup to fail.

    Workaround:

    • remove/comment only the notify = [...] line before startup.

    It may be worth checking the Windows parsing/initialization path for notify, especially since the app itself regenerates the entry after a successful launch.

  20. wuji1020 commented on Oct 22, 2026

    @wuji1020

    I found a second independent trigger for the same “Unable to load organization settings” error on Windows.

    Environment:

    • Windows 11 x64
    • Codex Desktop: 26.1016.51333

    I can currently reproduce two separate failure paths.

    Case 1: automatically generated notify entry

    If this entry exists in %USERPROFILE%\.codex\config.toml:

    notify = [ "C:\\Users\\<user>\\AppData\\Local\\OpenAI\\Codex\\runtimes\\cua_node\\<runtime-hash>\\bin\\node_modules\\@oai\\sky\\bin\\windows\\codex-computer-use.exe", "turn-ended" ]

    Codex Desktop fails on the next launch with:

    Unable to load organization settings
    

    Removing only the notify line allows Desktop to start normally.

    However, after a successful launch, Codex automatically writes the same notify entry back into config.toml, so the failure returns on the next restart.

    The referenced codex-computer-use.exe exists, so this is not a missing-path case.

    Case 2: WSL Agent Environment

    There is another independent failure mode.

    After removing the notify entry, Codex starts successfully when the Agent Environment is Windows native.

    However, if I configure:

    Settings
    → General
    → Agent Environment
    → WSL
    

    then Codex Desktop again fails on startup with:

    Unable to load organization settings
    

    This happens even when the notify entry has already been removed.

    Switching the Agent Environment back to Windows native allows the application to start again.

    So in my environment:

    Windows Native + no notify  -> PASS
    
    Windows Native + notify     -> FAIL
    
    WSL + no notify              -> FAIL
    

    This suggests at least two separate Desktop startup/init paths can trigger the same generic “Unable to load organization settings” dialog:

    1. notify initialization
    2. WSL Agent Environment initialization

    It would be very helpful if the Desktop app exposed the actual underlying startup error instead of mapping these unrelated failures to the organization-settings/network dialog.

  21. bruniversamente commented on Oct 23, 2026

    @bruniversamente

    I can confirm the same issue on a newer Codex Desktop build.

    Environment

    • Windows
    • Codex Desktop: 26.1016.62342
    • Authentication: ChatGPT

    Symptom
    After updating Codex Desktop, the app became stuck on:

    Unable to load organization settings

    Retrying did not resolve it.

    I checked the following:

    codex login status

    Result:

    Logged in using ChatGPT
    

    The local state database exists:

    Test-Path "$env:USERPROFILE\.codex\state_5.sqlite"

    Result:

    True
    

    I also checked the backfill state:

    python -c "import sqlite3,os; p=os.path.expanduser('~/.codex/state_5.sqlite'); c=sqlite3.connect(p); print(c.execute('SELECT * FROM backfill_state').fetchall()); c.close()"

    The result showed:

    complete
    

    So this was not caused by a stuck database backfill.

    My config.toml contained a generated notify entry pointing to codex-computer-use.exe.

    I verified that the referenced executable actually exists with Test-Path, and the result was:

    True
    

    So this was not a stale or missing executable path.

    I then fully closed Codex Desktop, removed only the following notify entry from %USERPROFILE%\.codex\config.toml:

    notify = [ "...\\codex-computer-use.exe", "turn-ended" ]

    After saving the file and reopening Codex Desktop, the app started normally and the organization settings error disappeared immediately.

    So I can independently confirm that, at least on build 26.1016.62342, a valid notify entry pointing to an existing codex-computer-use.exe can still trigger the organization-settings startup failure.

    Removing only that entry resolved the issue without reinstalling, resetting the app, deleting the SQLite database, or signing in again.

  22. robertBryant2019 commented on Oct 24, 2026

    @robertBryant2019

    Confirmed Windows recovery: remove a stale CODEX_CLI_PATH override

    Sharing a successful recovery on October 24, 2026 for another cause of the same misleading "Unable to load organization settings" dialog. This is one possible fix, not a universal fix for every case in this thread.

    Environment

    • Windows 11 x64, Microsoft Store OpenAI.Codex / ChatGPT desktop 26.1021.3705.0
    • On launch: "Unable to load organization settings"; both Retry and Sign out returned to the dialog immediately
    • App Repair/Reset, uninstall/reinstall, session sign-out, and temporarily isolating config.toml did not fix it
    • Sandbox service was running; local database backfill_state was complete
    • The bundled codex.exe app-server independently returned OK for initialize, configRequirements/read (requirements: null), and account/read

    Decisive desktop startup log in %LOCALAPPDATA%\Codex\Logs:

    windows_core_runtime_component_resolved ... component=codex consumer=app-server ... executablePath=C:\Users\<user>\AppData\Local\Programs\OpenAI\Codex\bin\codex.exe source=override
    Desktop startup policy read failed attempt=1 phase=policy-read reason=protocol retrying=false
    

    The user-level CODEX_CLI_PATH environment variable pointed to that external codex.exe. The installed desktop app's bundled backend could answer the relevant requests, while the desktop launcher was selecting the override. This strongly implicated the external executable/protocol path (we did not isolate a specific protocol-field incompatibility).

    What fixed it

    1. Fully close ChatGPT/Codex.

    2. In PowerShell, check all scopes:

      foreach ($scope in 'Process','User','Machine') {
          [pscustomobject]@{
              Scope = $scope
              Value = [Environment]::GetEnvironmentVariable('CODEX_CLI_PATH', $scope)
          }
      }
    3. If an unexpected/stale user-level override exists, save its value first, then remove only that user-level override:

      $old = [Environment]::GetEnvironmentVariable('CODEX_CLI_PATH', 'User')
      # Save $old somewhere safe before proceeding if you need this custom CLI for other tools.
      [Environment]::SetEnvironmentVariable('CODEX_CLI_PATH', $null, 'User')
      Remove-Item Env:CODEX_CLI_PATH -ErrorAction SilentlyContinue
    4. Restart Windows so newly launched GUI processes inherit the updated environment.

    5. Relaunch the desktop app. In this case the blocking organization-settings dialog disappeared. Initial startup was slow, then sign-in succeeded (a transient Cloudflare 403 at the OAuth consent page cleared after Retry).

    Outcome: The desktop app is now working. The user-level override removal followed by reboot was the change correlated with eliminating the startup dialog. Reinstalling the application never removed the persistent Windows environment variable. Please check the resolved backend path and source=override in the actual desktop startup log before applying this workaround; other causes clearly exist.

    Suggestion to maintainers: When source=override is active and the startup policy read fails with reason=protocol, surface the selected CLI path and diagnostic reason instead of only generic proxy/network guidance.

  23. TiandadidaHGL commented on Oct 25, 2026

    @TiandadidaHGL

    Confirmed recovery on Windows Codex Desktop 26.1021.3705.0 (October 25, 2026)

    Adding an independent successful confirmation of the CODEX_CLI_PATH workaround.

    Symptoms: Codex Windows Desktop was blocked at “Unable to load organization settings”, while the VS Code Codex extension continued to work. Windows reported the installed OpenAI.Codex package as Status: Ok. App repair, restarting, and temporarily isolating config.toml did not resolve the desktop login issue. The machine had an active local proxy listener, but no *PROXY* environment variables or WinHTTP proxy.

    Diagnostic finding: CODEX_CLI_PATH was set in both Process and User scopes (not Machine), pointing into an npm installation of @openai/codex, specifically its codex-win32-x64 package. (Personal username and exact path omitted.)

    Successful workaround: Back up the User-scoped value, remove only the User-scoped CODEX_CLI_PATH override, clear it in the current shell, and restart Windows. After applying these steps, Codex Desktop launched successfully according to the affected user. No application reinstall, deletion of .codex, or machine-wide environment-variable changes were required.

    Suggested product fix: When Desktop detects CODEX_CLI_PATH pointing to an incompatible external CLI, validate the path/version and show a specific, actionable error (or fall back safely to the bundled backend) instead of “Unable to load organization settings”. This is a confirmed workaround for this case, not a universal cause of that generic message.

  24. Manuel-Castellon commented on Oct 26, 2026

    @Manuel-Castellon

    Same root cause as robertBryant2019 / TiandadidaHGL: a stale user-level CODEX_CLI_PATH. In my case it pointed at an old copied runtime, %LOCALAPPDATA%\OpenAI\Codex\bin<hash>\codex.exe, from June. The desktop log showed source=override followed by reason=protocol. Removing that binary got the app started, because the app-server fell back to the bundled copy. Browser-use still used the override, though (codexCliPathSource=env-override), and it stayed broken until I removed the variable and signed out and back in. The thing to check is CODEX_CLI_PATH; deleting files only works around it.

  25. javisar commented on Oct 27, 2026

    @javisar

    Are you going to fix it, now the app is unusable. Can you please stop breaking things or adding new shit before fixing old bugs?

  26. psfbc commented on Nov 13, 2026

    @psfbc

    I encountered the same recurring "Organization settings could not be loaded" error on Codex Desktop for Windows 11.

    After extensive troubleshooting, I isolated a workaround that restored the application without reinstalling it or resetting the entire .codex directory.

    Controlled test:

    • Restored a previously working .codex backup.
    • With the original auth.json, Codex consistently failed to start.
    • Clicking Sign out closed the dialog temporarily, but the same error returned without prompting for authentication.
    • I confirmed that auth.json remained unchanged after Sign out.
    • Renamed only %USERPROFILE%\.codex\auth.json to auth.json.save.
    • Relaunched Codex, completed a fresh browser-based authentication, and accepted the restart to apply workspace settings.
    • Codex started successfully, with all other profile files preserved.

    This suggests that, at least in some cases, unusable persisted authentication state can trigger the organization-settings error, while the desktop client's Sign out/recovery mechanism fails to replace that state.

    I recognize that other users in this issue have identified different causes, and that refreshing authentication did not resolve every reported case.

    I documented the detailed findings and workaround in #56680.

    Security note: auth.json contains sensitive authentication tokens and should not be shared publicly.

  27. santi62148 commented on Nov 17, 2026

    @santi62148

    Additional occurrence on Windows, observed on November 17, 2026.

    Opening the ChatGPT/Codex desktop app brings up a dialog titled Codex before the workspace or composer loads. The Spanish message is «No se pudo cargar la configuración de la organización» (Unable to load organization settings). The dialog says the app is paused until it can load the settings securely. The available actions are Reintentar, Cerrar sesión, and Salir (Retry, Sign out, Exit).

    ChatGPT on the web works in Microsoft Edge on the same computer with the same personal Pro account. The exact desktop build and cause are unconfirmed. The startup block prevents sending feedback or getting a session ID from the desktop composer.

    What startup diagnostic information can be collected when the desktop app is blocked at this dialog?

  28. mohub6 commented on Nov 17, 2026

    @mohub6

    In my case running the Agent Environment through WSL seems to be the problem. Fix was to change "runCodexInWindowsSubsystemForLinux" to "false" inside %USERPROFILE%.codex\config.toml

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

    appbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions