You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Windows Codex Desktop repeatedly displays “Unable to load organization settings” and blocks work. Reported starting September 27, 2026 and still present September 30 before the workaround below.
Environment
Windows (exact OS build not captured)
Microsoft Store package: OpenAI.Codex
Package version observed September 30: 26.928.2636.0
ChatGPT Plus account
Observations and attempted recovery
The same account can access Codex on the web.
The error also reproduces on a cellular hotspot.
Retry and Sign out did not recover the desktop app; the dialog repeated.
Windows Repair, application update and reinstall did not resolve it.
Renaming the packaged application's LocalCache/Roaming/Codex data directory to a timestamped backup did not resolve it.
September 30 app-server logs recorded repeated sampling retries and a final error: failed to load workspace requirements.
Earlier September 27 logs mentioned invalid UTF-8 in config.toml, but that file was absent when subsequently checked; its relationship to the current failure is unconfirmed.
The desktop log excerpts available after the later startup attempts ended at an earlier shutdown, so they do not establish the underlying cause.
User-confirmed workaround
The reporting user states that renaming the ENTIRE user-level %USERPROFILE%\.codex directory to %USERPROFILE%\.codex.backup, then reopening the app and signing in, restored access. This differs from renaming the packaged app's browser data directory.
The backup was retained to recover previous conversations. Conversation restoration has not been independently verified in this report.
Please investigate why persistent user-level state can block workspace requirements initialization and provide a recovery path that preserves sessions and configuration, with a more specific diagnostic error.
Note: a strict UTF-8 decode of this file succeeds (NUL is valid UTF-8), so encoding validation alone does not catch this. The same folder also had many leftover ..codex-global-state.json.tmp-* files, several exactly 524288 bytes and many 0 bytes, which suggests repeated interrupted writes.
Recovery that preserved my data
Starting from a clean .codex, I copied back from the backup (app closed): .codex-global-state.json (project list), sessions/, session_index.jsonl, state_5.sqlite with its -wal/-shm, thread_history_1.sqlite, memories/, AGENTS.md. Projects and conversation history came back. Only the settings in config.toml were lost. Caveat for others: do not leave a thread_history_1.sqlite-wal from the fresh profile next to the restored thread_history_1.sqlite; move it aside before launching.
Suggestions
Detect an unparseable or NUL-filled config.toml and show a specific error (with a "reset config" option) instead of the generic organization-settings / network dialog.
Write config.toml with flush + atomic rename and keep a last-known-good copy.
I found another cause on my Windows laptop: Tencent PC Manager’s File System Protection was interfering with Codex startup. Turning it off allowed Codex to launch normally. In the Chinese UI, the setting is 腾讯电脑管家 → 安全配置 → 文件安全 → 文件系统防护.
Confirmed another Windows occurrence on October 28, 2026: the preserved Codex config.toml contained exactly 7137 NUL (0x00) bytes out of 7137 total bytes (100%), verified with PowerShell. The error was config.toml:1:7138: key with no value, expected '='. Preserving and renaming the corrupted configuration, then relaunching Codex with a regenerated configuration, restored startup. Previous conversations and projects appear intact. The cause remains unknown; no unexpected shutdown has been confirmed in this case. Full technical report: #26421 (comment)
appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't workingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Sep 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
gagophysicist commentedon Oct 1, 2026
Same symptom here, and I found the root cause on my machine:
%USERPROFILE%\.codex\config.tomlwas 5702 bytes, every byte 0x00.Environment
26.928.3736.0Symptoms
chatgpt.comresolves,Test-NetConnection chatgpt.com -Port 443succeeds, WinHTTP proxy is direct, no proxy env vars, TLS issuer isCN=WE1, O=Google Trust Services(no interception).Diagnosis
.codexto.codex.backupand signing in again fixed it.config.tomlback brought the error back immediately.Note: a strict UTF-8 decode of this file succeeds (NUL is valid UTF-8), so encoding validation alone does not catch this. The same folder also had many leftover
..codex-global-state.json.tmp-*files, several exactly 524288 bytes and many 0 bytes, which suggests repeated interrupted writes.Recovery that preserved my data
Starting from a clean
.codex, I copied back from the backup (app closed):.codex-global-state.json(project list),sessions/,session_index.jsonl,state_5.sqlitewith its-wal/-shm,thread_history_1.sqlite,memories/,AGENTS.md. Projects and conversation history came back. Only the settings inconfig.tomlwere lost. Caveat for others: do not leave athread_history_1.sqlite-walfrom the fresh profile next to the restoredthread_history_1.sqlite; move it aside before launching.Suggestions
config.tomland show a specific error (with a "reset config" option) instead of the generic organization-settings / network dialog.config.tomlwith flush + atomic rename and keep a last-known-good copy.xyzzhuyuxing-collab commentedon Oct 6, 2026
I found another cause on my Windows laptop: Tencent PC Manager’s File System Protection was interfering with Codex startup. Turning it off allowed Codex to launch normally. In the Chinese UI, the setting is 腾讯电脑管家 → 安全配置 → 文件安全 → 文件系统防护.
sergiobm14 commentedon Oct 28, 2026
Confirmed another Windows occurrence on October 28, 2026: the preserved Codex
config.tomlcontained exactly 7137 NUL (0x00) bytes out of 7137 total bytes (100%), verified with PowerShell. The error wasconfig.toml:1:7138: key with no value, expected '='. Preserving and renaming the corrupted configuration, then relaunching Codex with a regenerated configuration, restored startup. Previous conversations and projects appear intact. The cause remains unknown; no unexpected shutdown has been confirmed in this case. Full technical report: #26421 (comment)