Skip to content

All projects vanished from codex side bar. Chat become scattered.... #60756

Open

Description

@virenchocha

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

v26.1007

What subscription do you have?

Plus

What platform is your computer?

Windows10

What issue are you seeing?

I am having sevral projects and chats inside each of them. One fine day, without any warning I could find only the last project i worked in the side bar and all other projects are gone from the project list. This is second time it happended. Now the fun part...all chats associated with those projects exists but I do not remember all of them i.e. which will belong to which project......This is very very annoying....Also codex do block recreation at app level even if i command it to do so with full access granted...

What steps can reproduce the bug?

Update ChatGPT and it messes...or I do not know how to reproduce but this is becoming deal breaker in using Codex vs Claude code seriously. Are you out of mind ! working so hard on project and then poof...everything vaporises...

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    appIssues related to the Codex desktop app
    on Nov 11, 2026
  2. added
    bugSomething isn't working
    windows-osIssues related to Codex on Windows systems
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Nov 11, 2026
  3. LuminairPrime commented on Nov 20, 2026

    @LuminairPrime

    Bug report from the agent that repaired my Codex install after a power outage broke the projects:

    Windows build 26.1117.3838.0 still shows an empty project list after both global-state JSON reads fail

    I’m Astra 6.2 xhigh, the Codex agent that investigated this installation. The user reported that Windows shut down abruptly during a power outage on November 20, 2026. I also reviewed an October recovery on the same PC with the same visible symptom. The evidence below is from the November incident.

    Environment. ChatGPT desktop in Codex mode, Windows 11 Pro 25H2 x64 (26200.9974), OpenAI.Codex package 26.1117.3838.0, desktop build 29513, bundled codex-cli 0.171.0-alpha.13.

    What I observed. Windows recorded Kernel-Power event 41 at 17:21:39 UTC and unexpected-shutdown event 6008 at 17:22:05. At 17:26:35.203 and 17:26:35.206, Desktop logged [global-state] Failed to load global state. Both errors reported an unexpected \u0000 at the start of the JSON input. The two stack traces correspond to the primary and backup reads in the installed loader.

    At 17:26:37.488, the same launch logged Local app-server project migration completed projectCount=15. A later launch logged 15 again. When I queried the running desktop app before repair, it returned zero local projects. The local-projects object in .codex-global-state.json was empty. I found all 15 project records in state_5.sqlite. Twelve belonged in the sidebar. The other three were empty duplicates retained after the October merge.

    What I recovered. SQLite still had project IDs for 75 main chats. For 29 more, I inferred the assignment by matching the original session folder to a project root. I couldn’t establish when those 29 database fields became null. I wrote and tested an offline repair, and the user ran it with Desktop closed. After relaunch, the app listed all 12 intended projects. I verified that all 104 saved sidebar assignments agreed with SQLite, including 11 archived chats. The repair also filled 71 helper-record memberships. SQLite’s PRAGMA integrity_check returned ok.

    There is one remaining discrepancy. The desktop history-list API returned the matching project ID for 48 of those chats, a null ID for 55, and omitted one. I verified all 104 stored assignments, but I did not inspect every chat in the rendered sidebar.

    Where I’d investigate. This build reads .codex-global-state.json, tries .codex-global-state.json.bak on failure, and returns an empty map if both reads fail. Its save path serializes the current state once and writes that payload to each file in succession using a temporary file and rename. That refreshes both copies to the same generation. I found no explicit flush to durable storage in that path. The logs establish that both reads failed. The exact sequence that put NUL bytes on disk remains unknown.

    Suggested regression test. In a disposable Windows profile, create two chats with known project assignments and one intentionally projectless chat. Leave the SQLite records intact, put a leading NUL in both global-state JSON files, and relaunch. I’d expect Desktop to recover the known assignments or offer recovery before saving an empty sidebar, while keeping the projectless chat projectless. A separate interruption test between the primary and backup replacements would check whether a previous valid generation survives power loss.

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

    appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions