Skip to content

[Windows 26.928.2636.0] Organization settings loop; renaming user .codex directory restores access #49663

Open

Description

@dantacc999-prog

Problem

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.

Related reports: #48747, #48820, #46613.

This report summarizes a user-authorized troubleshooting session. Usernames, project paths, account IDs, tokens and cookies have been omitted.

Activity

  1. added
    bug
    app
    windows-os
    app-server
    on Sep 30, 2026
  2. gagophysicist commented on Oct 1, 2026

    @gagophysicist

    Same symptom here, and I found the root cause on my machine: %USERPROFILE%\.codex\config.toml was 5702 bytes, every byte 0x00.

    Environment

    • Windows 11, Codex desktop 26.928.3736.0
    • Personal ChatGPT account (no Business/Enterprise/Edu workspace)

    Symptoms

    • "Organization settings could not be loaded" dialog at startup; Retry and Sign out did not help.
    • Reproduced on two networks (university eduroam and a mobile hotspot).
    • Network checks were clean: chatgpt.com resolves, Test-NetConnection chatgpt.com -Port 443 succeeds, WinHTTP proxy is direct, no proxy env vars, TLS issuer is CN=WE1, O=Google Trust Services (no interception).

    Diagnosis

    • Renaming .codex to .codex.backup and signing in again fixed it.
    • Copying only the old config.toml back brought the error back immediately.
    • The old file contains nothing but NUL bytes:
    $b=[IO.File]::ReadAllBytes("$env:USERPROFILE\.codex.backup\config.toml")
    "Size: $($b.Length)  Non-zero bytes: $(($b | Where-Object {$_ -ne 0}).Count)"
    # Size: 5702  Non-zero bytes: 0

    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

    1. 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.
    2. Write config.toml with flush + atomic rename and keep a last-known-good copy.
  3. xyzzhuyuxing-collab commented on Oct 6, 2026

    @xyzzhuyuxing-collab

    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 腾讯电脑管家 → 安全配置 → 文件安全 → 文件系统防护.

  4. sergiobm14 commented on Oct 28, 2026

    @sergiobm14

    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)

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

    appapp-serverbugwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions