Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.1021.2667.0
What subscription do you have?
ChatGPT Pro
What platform is your computer?
Microsoft Windows NT 10.0.26300.0 x64
What issue are you seeing?
Description
After updating Codex Desktop to version 26.1021.2667.0 on October 24, 2026, the application stopped working.
Every launch displays the following error:
"Failed to load organization settings."
The application remains blocked. Clicking Retry does not resolve the issue.
The problem started immediately after updating and restarting Codex Desktop. The application worked normally before the update.
Troubleshooting Performed
I performed the following troubleshooting steps, but the issue persists:
- Restarted Codex Desktop and Windows.
- Signed out of Windows and signed back in.
- Attempted Windows application repair.
- Disabled the
notifysetting inconfig.toml. - Temporarily disabled
config.tomlentirely. - Temporarily renamed the entire
.codexdirectory to test with fresh user configuration. - Verified Codex CLI authentication and reauthenticated successfully.
- Verified connectivity to
chatgpt.comandapi.openai.com. - Ran DISM and SFC. SFC found and successfully repaired corrupted Windows system files.
- Completely uninstalled Codex Desktop, restarted Windows, and reinstalled it from Microsoft Store.
- Reauthenticated through the browser.
None of these steps resolved the startup error.
Codex Primary Runtime Problem
Before reinstalling the application, Windows reported:
Package: OpenAI.CodexPrimaryRuntime.v26-1007-641-0
Version: 26.1007.641.0
Status: NotAvailable
IsPartiallyStaged: False
User installation state: Installed
Windows Event Viewer also recorded multiple AppX deployment failures.
Error 0x80073D02
The Primary Runtime package could not be removed because Windows reported that the package was in use.
This occurred repeatedly on October 23–24, 2026.
Error 0x80073D3C
Attempting to re-register the runtime resulted in:
HRESULT: 0x80073D3C
Deployment blocked because the package or another
package in the same family has pending removal.
Signing out and restarting Windows did not resolve this condition at the time.
After Reinstallation
After uninstalling Codex and restarting Windows, both Codex packages disappeared from the AppX package list.
I reinstalled Codex using:
winget install --id 9PLM9XGG6VKS -s msstore
The installation completed successfully.
The current package state is:
Name: OpenAI.Codex
Version: 26.1021.2667.0
Status: Ok
However, OpenAI.CodexPrimaryRuntime is no longer listed, even when checking packages for all users.
Codex Desktop still displays exactly the same organization settings error.
Authentication and Network
Codex CLI works normally:
Codex CLI version: 0.147.0
Login status: Logged in using ChatGPT
Network connectivity tests:
chatgpt.com:443 — TCP connection successful
api.openai.com/v1/models — HTTP 401 (expected without API credentials)
Browser-based authentication also completed successfully.
However, Codex Desktop still cannot start.
Additional Information
The Codex SQLite logs repeatedly contained:
unknown feature key in config: prefer_mxc
The current configuration file does not contain this setting, and disabling the configuration file entirely did not resolve the issue.
The database backfill status was:
[(1, 'complete', None, 1783071186, 1783071186)]
Expected Behavior
Codex Desktop should initialize normally after updating and allow the user to access existing projects and conversations.
Actual Behavior
Codex Desktop remains completely unusable due to the organization settings loading error.
Codex CLI continues to work normally.
Questions
- Is this a known regression in Codex Desktop version 26.1021.2667.0?
- Could the missing or previously unavailable Primary Runtime package cause this failure?
- Is there a supported procedure to reinstall or repair Codex Primary Runtime independently?
- Are there additional startup diagnostic logs that could help identify the actual cause?
What steps can reproduce the bug?
- Install Codex Desktop on Windows 11.
- Update Codex Desktop to version
26.1021.2667.0. - Restart the application.
- The following error immediately appears: "Unable to load organization settings."
- Click "Retry." The same error appears again.
- Close Codex completely and restart it. The error persists.
The issue also persists after restarting Windows, successfully reauthenticating with ChatGPT, temporarily renaming the entire .codex directory, and completely uninstalling and reinstalling Codex Desktop from Microsoft Store.
No prompt or code execution is required to reproduce the problem.
A session ID cannot be obtained because the application is blocked during startup, before any conversation can be opened.
What is the expected behavior?
Codex Desktop should successfully load organization settings after updating and start normally.
The application should display the main interface and allow access to existing projects, conversations, and Codex features.
If the organization settings cannot be loaded, the application should provide a diagnostic error describing the underlying problem rather than remaining permanently blocked.
Additional information
Related Issues
This issue appears related to:
- ChatGPT Windows Desktop: Codex shows “Unable to load organization settings” before composer/session, while Web + CLI work #48324
- [Windows] Codex blocked by “Unable to load organization settings” before sign-in #49887
- [Windows 10] Codex Desktop 26.1013.4894.0 stuck on "Unable to load organization settings" despite working CLI and app-server #55207
All three reports describe a similar "Unable to load organization settings" error on Windows.
However, my case includes additional Windows AppX deployment failures involving Codex Primary Runtime.
Before reinstalling Codex Desktop, the runtime reported:
- Version:
26.1007.641.0 - Status:
NotAvailable - IsPartiallyStaged:
False
Windows Event Viewer recorded:
0x80073D02— Package in use during removal or registration.0x80073D3C— Package removal pending, preventing re-registration.
After uninstalling Codex and restarting Windows, the Primary Runtime package disappeared from the AppX package list.
Reinstalling Codex Desktop succeeded, and OpenAI.Codex now reports Status: Ok. However, the Primary Runtime package is still not listed, and the startup error persists.
I cannot confirm whether the runtime deployment errors are the root cause of the organization settings failure.
I would appreciate guidance on collecting startup diagnostics and safely restoring the desktop application without losing existing sessions or project data.
Activity
github-actions commentedon Oct 24, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
yoshi131 commentedon Oct 24, 2026
Thanks for identifying #56122.
I reviewed that issue. Although the startup error is the same, my case includes additional Windows AppX deployment errors (
0x80073D02and0x80073D3C) and a Codex Primary Runtime package that previously reportedNotAvailable.The error also persists after a complete uninstall, Windows reboot, fresh installation, and successful reauthentication.
I cannot confirm whether both issues share the same root cause, so I would prefer to keep #56620 open until this is clarified.
shiropwd commentedon Oct 24, 2026
I encountered the same "Unable to load organization settings" error on Windows 11 with Codex Desktop
26.1021.2667.0, and I was able to resolve it.In my case, the problem was strongly associated with a user-level
CODEX_CLI_PATHenvironment variable that overrode the desktop application's default runtime selection.My startup logs showed:
The overridden executable existed and returned
codex-cli 0.154.0, but Codex Desktop could not start.I checked the environment variable using PowerShell:
It returned a path to my local
codex.exe.What fixed it for me:
I completely closed Codex Desktop, then ran:
After restarting Windows, Codex Desktop launched successfully. No reinstallation or deletion of local data was required.
Your case may have a different underlying cause, especially given the AppX deployment errors involving
CodexPrimaryRuntime. However, since your report does not mention checkingCODEX_CLI_PATH, it may be worth verifying whether this environment variable is set.I hope this helps with troubleshooting.
automute22-code commentedon Oct 24, 2026
살려주세요
automute22-code commentedon Oct 24, 2026
제발
vivi310310 commentedon Oct 24, 2026
I am experiencing the same Windows Codex Desktop startup issue.
Environment
Issue
After restarting Windows while Codex Desktop and Proton VPN were still open, Codex Desktop became stuck on "Unable to load organization settings."
Previously, clicking "Retry" would recover the application. Now, neither Retry nor Sign Out restores access.
Troubleshooting results
codex doctor --summaryreports 21 OK, 5 notes, 4 warnings, and 0 failures. WebSocket connectivity succeeds (HTTP 101), and the provider endpoints are reachable.codex app-server daemon startsuccessfully starts the background server, but Codex Desktop still cannot load organization settings..codex/logdirectory.Could the maintainers investigate this Windows desktop startup failure and provide a confirmed, data-preserving recovery procedure?
I need to restore the desktop application without losing existing local sessions or project files.
RickNeedsMoreCoffee commentedon Oct 26, 2026
+1 to this issue. having it on windows 10 after update
yoshi131 commentedon Oct 26, 2026
Thanks for the detailed suggestion, @shiropwd. In my case, a clean reinstall of Codex Desktop (now 26.1021.3705.0) resolved the startup error. I later found that a user-level CODEX_CLI_PATH was also set on my machine, pointing to an npm-installed codex.exe that I had since removed, so it may well have been part of the cause. If the error comes back, I will try clearing that variable first.
@vivi310310 For a data-preserving recovery: before uninstalling, I backed up %USERPROFILE%.codex (sessions, archived_sessions, session_index.jsonl, history.jsonl, state_5.sqlite, thread_history_1.sqlite, config.toml, rules, skills, automations). After reinstalling, with Codex fully closed, I copied them back and all past conversations reappeared. The project list did not come back, because it is also stored in .codex-global-state.json, which I had not backed up. I rebuilt the projects from each thread's working folder (cwd), and the threads now appear under their projects again. So if you reinstall, back up the whole .codex folder, including .codex-global-state.json. Also check whether CODEX_CLI_PATH is set, as @shiropwd described.
GerryWong168 commentedon Oct 27, 2026
I had the same “Organization settings could not be loaded” error on Windows immediately after an update. Repairing and reinstalling the app did not fix it, and Sign out also failed.
In my case, the user-level "CODEX_CLI_PATH" environment variable pointed to an npm-installed Codex executable. I saved its value, removed the variable, and restarted Windows. The app then opened and worked normally.
This may help others with the same setting. Save the original value before removing it so it can be restored if needed.
1356917724-crypto commentedon Oct 28, 2026
Confirmed another successful recovery on October 28, 2026 for the Windows Codex Desktop "Unable to load organization settings" startup error.
One desktop PC was blocked by the error while another laptop using Codex worked normally. The following non-destructive, user-level environment-variable fix restored the desktop app without reinstalling or deleting local Codex data:
Result: Codex Desktop launched and worked normally after this procedure.
This is a confirmed success for one affected machine, not a guaranteed fix for all causes of this error. If the variable is absent, this particular workaround may not apply. It avoids deleting sessions or app data and the original variable can be restored from the backup if needed.
LongerYan commentedon Oct 29, 2026
Reproduced on a newer Windows build with a clean user-state test.
Current app state
26.1023.6621.0Important clean-state reproduction
The failure persists after all of the following:
127.0.0.1:3425openai_base_url = "http://127.0.0.1:3425/backend-api/codex"entries are commented outmodel_provider = "magpie"26.1023.6123.0to26.1023.6621.0; the same startup error remains.%USERPROFILE%\.codexdirectory and launched 26.1023.6621.0 with a completely fresh Codex user state. The exact same "Unable to load organization settings" dialog still appears.This last test seems especially important: the problem reproduces with a fresh
.codex, so it does not appear to depend on existing local conversations,config.toml, SQLite state, plugins, or previous Magpie configuration.Earlier observations on the same machine
On
26.1023.6123.0, the bundled runtime had initially failed to relocate/deploy. After deploying the matching runtime and fixing local config, the app could temporarily open. The problem later returned after subsequent Desktop updates.At one point, while Magpie was still configured, logs showed
0.165requests to:returning:
while direct requests to:
returned
200 OK.However, Magpie has now been fully removed from the active request path and the 6621 clean-state reproduction still fails, so the current startup failure is not dependent on Magpie.
Other troubleshooting already performed
CODEX_CLI_PATH: unset.codex: no changeExpected
Codex Desktop should initialize normally with a fresh user state when the Windows package is healthy and the ChatGPT CLI authentication is valid.
Actual
Desktop remains blocked before the main UI with Unable to load organization settings, while the CLI authentication path remains functional.
This looks like a Windows Desktop startup / organization-settings initialization regression rather than corrupted local Codex state.
If useful, I can provide additional startup diagnostics or filtered
logs_2.sqliteoutput.RickNeedsMoreCoffee commentedon Oct 31, 2026
Confirming the
CODEX_CLI_PATHfix on Windows 10 (19045) with Codex Desktop 26.1027.3384.0.A full uninstall/reinstall didn't help, because the problem was a user-level environment variable and an entry in
config.toml. A reinstall doesn't touch either one.What I found
CODEX_CLI_PATHpointed at an old build placed by an earlier local repair:%LOCALAPPDATA%\OpenAI\Codex\local-repairs\computer-use-2026-10-09\codex.exe(codex-cli 0.162.0-alpha.2)%USERPROFILE%\.codex\config.tomlunder[mcp_servers.node_repl.env]:node_replat the stale binary.Fix (no data loss)
%USERPROFILE%\.codex\config.tomland.codex-global-state.json, and save the current variable value:CODEX_CLI_PATH = ...line fromconfig.tomlif it points anywhere outside the current%LOCALAPPDATA%\OpenAI\Codex\bin\<hash>\folder.Result
Codex started on its bundled runtime (
%LOCALAPPDATA%\OpenAI\Codex\bin\<hash>\codex.exe) and rewrote thenode_replsection ofconfig.tomlwith current paths and version.logs_2.sqliteshows successful account reads, rate-limit updates and thread start, with no organization-settings error. All sessions and history were preserved.The app should probably check that a
CODEX_CLI_PATHoverride isn't stale (version mismatch, or alocal-repairspath) before using it. It would also help if the startup error mentioned the override.mdruy commentedon Nov 12, 2026
I keep receiving the same boot / Codex event errors in Windows lately
Current package: (OpenAI.CodexPrimaryRuntime.v26-1111-570-0_26.1111.570.0_x64__3k8sg7r9htsxt
I can't get rid of these errors (either on boot or when opening the Codex/CHAT GPT app)
First of all following errors occur on booth when CodexSandboxService.OpenAI.Codex is not Automatic (DELAYED) in stead of Automatic:
Every boot:
When opening Chat GPT/Codex App :
On reboot/exit desktop:
AppXDeployment-Server:
Latest Windows-update also introduces:
mdruy commentedon Dec 1, 2026
Yeah 1 month later and not even a single boot or session without 2/3 same errors.
Already tried 4 hard PC resets and even installed Chat GPT the sasme way on another device fresh on a fresh installatio,. No exception. Chat GPT keeps calling to remove its package that doesnt exist while being in use as Runtime and triggers crashes and such.
These 0x80073D02 (ERROR_PACKAGES_IN_USE) errors cannot be resolved on the user side—regardless of any troubleshooting. They only disappear when uninstalling ChatGPT and immediately reappear upon reinstallation:
At every boot (AppXDeployment-Server - 3 errors):
Error 0x80073D02: The request cannot be processed because package OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt is in use.
Deployment Remove operation with target volume C: on Package OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt from: (OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt) failed with error 0x80073D02.
AppX Deployment operation failed for package OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt with error 0x80073D02. The specific error text for this failure is: Error 0x80073D02: The request cannot be processed because package OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt is in use.
Every time the ChatGPT / Codex app is opened (AppXDeployment-Server - 2 errors):
Error 0x80073D02: The request cannot be processed because package OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt is in use.
Deployment Remove operation with target volume C: on Package OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt from: (OpenAI.CodexPrimaryRuntime._x64__3k8sg7r9htsxt) failed with error 0x80073D02.
The is a placeholder for the current version/package number as they keep updated , but the error does not get resolved.
Side Error 0x80073D02: Failure in the DynamicDependenciesInUse state handler.
These errors were already appearing occasionally before these update (for months) on exits/reboots as Codex/OpenAI tries to start this system service early (along with the Codex OpenAI Sandbox service not being able to complete the function - error OS 1800 on the subsequent boot):
AppXDeployment (2) : Failed to start system service: appxsvc with error: 0x8007045B (2)
CodexSandboxService.OpenAI.Codex (2, sometimes 4) : unable to restore package uninstall listener: open the logged-in user's token and os error 1008
(last error records disappeares when DelayedStart 1 is added to the service).
The only way to fix these errors is by uninstalling the Deskotp ChatGPT app but it comes back again after reinstalling - i have been through any troubleshoot step.
Occasional crashes or slow loading on opening Chat GPT happens as well since these errors became a bug.
What steps can reproduce the bug?
Boot up Windows and sign in : 0x80073D02 - AppXDeployment-Server (2-3 errors)
Open/ or start Chat GPT Desktop app : 0x80073D02 - AppXDeployment-Server (3 errors)
The same errors and frequency of them are reproducable accross multiple devices and regardless of clean (re-)installation Windows. Clean reset for PC and Windows did not help either.
Removing or letting the Chat GPT for Windows app uninstalled does not reproduce any errors.
Depending on current build/package version, the errors change the version in the event viewer errors.
What is the expected behavior?
Booting up to Windows or opening the Chat GPT for Windows app should not trigger these errors consequently - regardless of the app or any service running in background or not.
Additional information
Clean PC/Windows reinstall did not help. Moreover, Chat GPT started to regularly crash/auto-close at certain times since a November update.
The 0x80073d02 errors keep returning on every session for: OpenAI.CodexPrimaryRuntime
The only difference is that versions number change every now and then but the deployment operations keep failing on boot (even when not any services or Codex/Chat GPT app is running); In fact opening on every Chat GPT opening it trigger the exact same 3 errors consequently. Besides this 2-3 errors on boot every time (even when closed or not running any services); theres no way to not get the AppXDeployment-Server errors at any time.
Besides this the following others errors were already appearing occasionally before these update (for months) on exits/reboots as Codex/OpenAI tries to start this system service early (along with the Codex OpenAI Sandbox service not being able to complete the function - error OS 1800 on the subsequent boot):
AppXDeployment (2) : Failed to start system service: appxsvc with error: 0x8007045B (2)
CodexSandboxService.OpenAI.Codex (2, sometimes 4) : unable to restore package uninstall listener: open the logged-in user’s token and os error 1008
(last error records disappeares when DelayedStart 1 is added to the service).