Skip to content

Projects are missing after the latest update #58397

Open

Description

@mkrivokapic

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

Version 26.1027.30824

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Windows 11 Home 25H2 — OS build 26200.9711, 64-bit (x64)

What issue are you seeing?

On launch, I was prompted to select my interests even though I've been using the app for quite a while now.
After that, all the projects were missing while the chats related to them are present.

The local data is still present:
•⁠ ⁠state_5.sqlite contains 9 existing projects and 159 conversations with valid project associations.
•⁠ ⁠SQLite integrity and foreign-key checks pass.
•⁠ ⁠JSON-RPC project/list returns all 9 projects.
•⁠ ⁠Desktop startup logs report Local app-server project migration completed projectCount=9.
•⁠ ⁠However, .codex-global-state.json has an empty local-projects catalog and project-order.
Inspection of the bundled code suggests the sidebar reads the frontend catalog, while project/list populates a separate backend map without restoring missing frontend entries. Restarting does not resolve the issue.

Workaround: After backing up and fully closing Codex, restored local-projects, project-order, and thread-project-assignments in .codex-global-state.json from the existing SQLite records, and removed 32 conflicting projectless markers. After restart, verification confirmed all 9 project IDs and 159 conversation associations were preserved. No database edits or migration-flag resets were needed.

What steps can reproduce the bug?

Launching the ChatGPT app after the newest update.

What is the expected behavior?

All projects intact.

Additional information

No response

Activity

  1. added
    app
    on Oct 30, 2026
  2. added
    bug
    windows-os
    session
    on Oct 30, 2026
  3. joshtrimerge commented on Oct 30, 2026

    @joshtrimerge

    Same issue on my end no-active-thread-01a18df6-eb33-76d1-aa48-bccc2bb210fb

  4. github-actions commented on Oct 30, 2026

    @github-actions
    Contributor
  5. mkrivokapic commented on Oct 30, 2026

    @mkrivokapic
    Author

    3. Same issue on my end no-active-thread-01a18df6-eb33-76d1-aa48-bccc2bb210fb

    Should not take them long to fix it. It's a trivial issue. I've also noticed plenty of settings were reverted back as if it's a first time setup/install. Most likely linked to the aforementioned issue.

  6. joshtrimerge commented on Nov 2, 2026

    @joshtrimerge

    Yet days later still no fix. @codex what is the delay on fixing this bug?

  7. rusosnith commented on Nov 3, 2026

    @rusosnith

    I had the same issue. In my laptop, the app got updated and almost all of the projects folders went missing. Only one (a somewhat old one) survived.
    In the browser/chat version, same thing.

    But in my desktop, where the chatgpt app hasn´t updated yet, the project/folders are still there, and functional.

    ¿there is no fix for this yet?

  8. joshtrimerge commented on Nov 3, 2026

    @joshtrimerge

    Correct, still no fix @codex review

  9. NoxxGames commented on Nov 4, 2026

    @NoxxGames

    Another occurrence on Windows 10, observed around a desktop update on 4 November 2026. This case adds a concrete global-state read failure preceding the empty desktop catalog.

    Review note, 7 November 2026: the initial shutdown history is corrected below using Windows events and the user's later recollection. The dated recovery-pending statements describe the status when each update was written; the final recovery section records the completed 7 November repair. This remains a recovery workaround, with the original cause unresolved.

    Environment:

    • Windows 10 Pro 22H2, build 19045.6466, x64.
    • Installed desktop version reported by the app: 26.1029.61003, build 24614, production channel.
    • Windows package: OpenAI.Codex_26.1029.7803.0_x64.
    • Bundled running CLI/app-server: 0.166.0-alpha.6.

    Observed behavior:

    • All previously visible PC-local projects disappeared from both the sidebar and the new-chat project selector.
    • Existing chats remained accessible in Recents.
    • Initially the user recalled only a normal update. Later review found a Windows Kernel-Power 41 record at 01:41:50 UTC on 4 November, shortly before the settings-read errors, showing startup after an unclean shutdown. The user now recalls that it may have been a power cut. The event does not establish the shutdown's cause, and its timestamp is the startup record, not the power-cut time.
    • The user created one new local project afterward to start this investigation. That was the only local project returned by the desktop list_projects tool. Separate ChatGPT projects remained available.

    Read-only findings and chronology:

    1. At approximately 01:43:08 UTC, startup logs repeatedly reported:
      [global-state] Failed to load global state
      with a JSON SyntaxError containing Unexpected token '\u0000' and is not valid JSON.
    2. These initial errors came from the previously installed package 26.1027.6604.0. They therefore establish corruption encountered during the update/restart sequence, not that the subsequently installed build caused the corruption.
    3. At 01:43:20 UTC, the app logged Local app-server project migration completed projectCount=23.
    4. At 01:49:54 UTC, the newly installed app again logged projectCount=23.
    5. The surviving state_5.sqlite contains 24 project records and 26 project roots, including the one newly created project. Every registered folder exists. The 23 older records comprise 20 PC-folder projects and 3 historical local backing records for ChatGPT projects.
    6. SQLite PRAGMA quick_check returns ok. The database contains 2,230 thread records, including internal/subagent records; 93 have desktop source vscode.
    7. Both current global-state files parse successfully but now contain just the newly created project in local-projects. The earlier unreadable file contents were no longer available when this investigation started.
    8. The current host checkpoint is projectsMigrated=true, threadAssignmentsMigrated=false. All SQLite threads.project_id values are NULL. Those values alone do not prove that assignments were erased: an older valid September global-state snapshot already had the same incomplete assignment checkpoint, and this installation also uses working-directory-based grouping.
    9. Every surviving project has exactly one original desktop ID in project_idempotency_keys. The 17 IDs present in the older valid global-state snapshot match those durable mappings.

    Inspection of the installed desktop bundle is consistent with the explanation in this issue: project initialization reads the server project list into backend maps, while the desktop catalog comes from local-projects. The ordinary storeProject path does not recreate a missing desktop catalog entry for a project with empty metadata. This is source inspection, not an isolated reproduction of the original null-byte write.

    Recovery status when the original report was submitted:

    • Consistent SQLite backups and copies of the current global-state files were made before any repair.
    • A targeted offline repair was prepared and tested against those copies. It restores only local-projects, project-order, and the original desktop/server ID mapping, preserving the newly created entry and unrelated settings.
    • It does not edit SQLite, transcripts, explicit chat assignments, or migration flags. It rejects ambiguous identities and refuses to write while the desktop is running.
    • At submission time, live application and post-restart UI verification are still pending. A populated preview file is not being presented as successful recovery.

    Please investigate both the null-byte settings failure/fallback behavior and the failure to reconcile intact server project records into the desktop catalog. A supported recovery path should preserve original identities and verify visible project and chat grouping.

    Submitted at the affected user's request. Private project names, personal paths, account/thread identifiers, conversation contents, credentials, and raw logs/databases are omitted.

    Update: recovery verified after restart, 4 November 2026

    The offline catalog repair applied successfully, and the user confirms the projects are visible again.

    Post-restart verification:

    • The desktop list_projects interface now returns all 21 PC-folder projects, including the one created after the incident. Separate ChatGPT projects are also returned.
    • The global catalog contains all 24 expected entries, including the 3 historical ChatGPT backing records. All original desktop IDs, names, root paths and desktop/server ID mappings match the recovery preview.
    • Direct comparison with the immediate pre-repair database snapshot confirms unchanged rows in projects (24), project_roots (26), and project_idempotency_keys (24). All 2,230 original thread IDs remain present, and SQLite quick_check passes.
    • Sampled existing chats again resolve to their expected projects in the desktop interface. No claim is made that every historical custom chat assignment has been audited.
    • Explicit chat assignments and migration checkpoint values were preserved by the repair.
    • Previous local-project pins were not recovered. Their settings were already absent immediately before the repair, and the user accepts repinning manually.

    A separate one-time offline recovery-helper limitation should not be confused with the application bug: after successfully applying the settings repair, direct relaunch of the Windows Store executable failed with WinError 5: Access is denied. The app is now open and the recovery has been verified. The helper log preserves both events, and its status handling was corrected to distinguish a launch failure from a completed repair.

    This confirms a local recovery workaround for the missing catalog. It does not resolve the underlying null-byte write or the desktop's failure to rebuild missing catalog entries from surviving project records.

    Recurrence on 6 November 2026

    The affected user reports two stages on the same Windows PC. Around a subsequent desktop update they could initially see only two projects. The user later clarified that these were older established projects in regular use, not newly created replacements. This partial disappearance preceded a later power cut, after which no PC-local projects were visible. We have no settings snapshot from the partial-loss phase.

    • Desktop version 26.1103.31037, build 25241, Windows package 26.1103.3517.0. At 04:23 UTC the previous app-server reported 25 projects. At 04:24 the updated app-server (0.167.0-alpha.3.2) also reported 25. We have the user's observation of two visible projects around the update, but no contemporaneous desktop inventory for that stage.
    • Windows recorded startup after an unclean shutdown at about 12:41 UTC (events 41 and 6008); Event 6008 separately reports the prior unexpected shutdown at 12:38:46. At 12:43 the updated client logged six global-state JSON read failures mentioning a null byte. Seconds later its project migration logged projectCount=25.
    • Later that day, the running desktop returned zero PC-local projects. Its current global-state file and its immediate backup both parsed and contained an empty local-projects registry. The SQLite database passed quick_check and still held 25 project records, 25 original-ID mappings and 27 existing root directories. All 24 records from the previous incident are accounted for, plus one project added since recovery. The database retained all 2,230 thread IDs from the earlier comparison and contained 2,239 thread rows in this inspection.
    • A new offline recovery was prepared and exercised on copies of the current files. The preview reconstructs 22 PC-folder projects and 3 historical ChatGPT backing records. At the time of this update, application to the live profile and confirmation in the restarted desktop are pending.

    The timeline establishes that the post-power-cut startup encountered unreadable state while the project database survived. The cause of the earlier two-project display and the operation that originally wrote the null bytes remain unknown.

    Follow-up after another update, 7 November 2026

    The recovery prepared on 6 November did not apply. Its log records a timeout at 20:02:58 UTC because the desktop had not fully exited within the two-hour waiting period. No live state was changed by that attempt. The continuing missing projects after today's update therefore do not demonstrate that the update undid that repair.

    • The currently running desktop reports version 26.1103.32239, build 25471, Windows package 26.1103.4239.0. The app-server still reports 0.167.0-alpha.3.2.
    • At 10:12:29 UTC today's startup again logged projectCount=25. No global-state JSON load failure was found in today's collected desktop startup log.
    • The desktop still returns zero PC-local projects. Both current global-state files parse successfully, and the project catalog remains empty. The project-related settings match yesterday's saved baseline.
    • A consistent SQLite snapshot passes quick_check. All rows in projects (25), project_roots (27), and project_idempotency_keys (25) are identical to yesterday's snapshot, and all 27 registered folders exist. All 2,239 prior thread IDs remain, with 23 additional records, for 2,262 total. These counts include internal/subagent records.
    • Inspection of the newly installed bundle still shows the ordinary storeProject path populating backend maps without recreating absent desktop catalog entries for these empty-metadata records. This is source inspection, not a reproduction of the original corrupt write.
    • The user also reports that more CLI chats are visible in the desktop after the update. The cause of that visibility change has not been established. The expired recovery helper did not modify chat discovery or filters.

    A fresh backup and revised offline recovery have been prepared. Tests on isolated copies restore the same 22 PC-folder projects and 3 historical ChatGPT backing records with their original identities, preserve unrelated settings, refuse an altered project inventory or account, and roll back an injected settings-write failure. Live application and post-restart verification remain pending. The replacement one-time helper allows 24 hours for a full desktop exit and rechecks the profile and project inventory before any write.

    Recovery verified and additional appearance symptom, 7 November 2026

    The replacement helper applied at 10:25:51 UTC, and Windows reopened the desktop successfully. The user confirms the projects are visible again.

    • The desktop now returns all 22 PC-folder projects. The 25 catalog entries and original desktop/server mappings match the reviewed recovery output.
    • Direct comparison with the immediate pre-apply backup confirms unchanged project, root and original-ID mapping tables. All 2,262 pre-repair thread IDs remain, and SQLite quick_check passes.
    • Twelve sampled chats resolve to five expected projects. This is a sample, not an audit of every historical assignment.
    • Reconstructing the exact applied file from the immediate backup produces the SHA-256 recorded by the helper. This confirms that only local-projects, project-order, and the desktop/server ID mapping changed. All other settings in that file, including its stored appearance analytics snapshot, were preserved.

    Additional user-observed symptom: updates regularly leave the Appearance contrast slider at its previous position while the displayed contrast appears to ignore it. Moving the slider and returning it to the desired position makes the contrast apply again. The user observed the same symptom after this repair/restart and has already corrected it by adjusting the slider.

    The contrast symptom occurred during the recovery/restart sequence. Its cause is unconfirmed. The user had corrected the display before this follow-up inspection, so no failing render was captured or independently reproduced. A startup failure to apply an already-retained appearance preference is one hypothesis worth investigating. A shared root cause with the missing-project catalog has not been established.

    The one-time helper has exited, and a verified recovered-state snapshot is retained locally. This remains a recovery workaround, not a fix for the underlying application bugs.

    Later investigation note, 7 November: a separate continuous flush/backup helper was briefly introduced after the successful recovery. It very likely triggered an EPERM settings-backup replacement failure at 11:41:57 UTC and was withdrawn. It is stopped, removed from startup and blocked from restarting. This was an investigation side effect, not evidence of the original 4/6 November corruption. It is distinct from the one-time offline catalog repair described above. No permanent prevention fix is established.

  10. NoxxGames commented on Nov 4, 2026

    @NoxxGames

    Correction, 7 November 2026: I overstated this as a "simple fix." What worked on my PC was a targeted catalog recovery, and the disappearance later recurred. It was not a permanent application fix or a guarantee that the same procedure works for everyone.

    My original project records and chat records survived locally, which made recovery possible: back up the state, fully close the desktop, restore the catalog using the original project identities, and verify the result after reopening. Another report here has missing records on the affected PC, so it needs a different investigation.

    Start with diagnosis and backups. The detailed timeline and recovery checks and investigation prompt explain the conditions for this workaround. A particular model or turnaround time does not establish that a repair is safe or complete.

  11. rusosnith commented on Nov 5, 2026

    @rusosnith

    Would you explain de procedure or share the prompt @NoxxGames ?

  12. NoxxGames commented on Nov 5, 2026

    @NoxxGames

    Revised 7 November 2026 to keep this conditional on the evidence. This is a prompt for investigation and possible recovery, not a confirmed explanation for every disappearance:

    After updating Codex on Windows, my local projects disappeared from the sidebar and the new-chat project picker. My chats remain in Recents. Please investigate and recover the projects if the original records survive.
    
    In a similar case, startup logs showed null-byte errors loading .codex-global-state.json. The original project IDs and folder paths survived in the local SQLite database, but the desktop catalog was empty. That cause is not confirmed on my PC.
    
    Identify the running app's actual data folder and account. Compare its logs, saved project catalog, backups and any inactive account-scoped catalog with the original database records. Preserve the current files and take a consistent database backup before changing anything.
    
    If the same catalog/database mismatch is confirmed, make a targeted recovery using the original project IDs, roots and desktop/server mapping. Preserve unrelated settings and existing chat associations; do not reset migration flags or remove assignment markers without evidence. Apply settings changes only while the desktop is fully closed, then verify both project lists and sampled existing chats after restart.
    
    If the original records or chat history are missing, investigate that separately rather than assuming catalog reconstruction will restore them.
    

    Detailed case history. The successful recovery in that case did not establish a permanent fix.

  13. rusosnith commented on Nov 5, 2026

    @rusosnith

    UPDATE: Chats and project groupings missing on desktop and web, but accessible on another PC

    Existing conversations are inaccessible, not just missing from the project list. On one Windows PC, I can open a chat inside its project. Copying its codex://threads/… link to the affected PC fails with:

    Failed to resume chat — no rollout found for thread id …

    Searching the web interface for that chat’s title also returns no result. The browser shows the same incomplete project list as the affected desktop app. The other PC still displays the missing projects and opens their chats.

    Read-only findings:

      | Affected PC | Working PC -- | -- | -- Global-state project entries | 1 | 11 SQLite project records | 1 | 11 SQLite thread records | 3 | 164
    • Both PCs report package version 26.1027.3384.0. An update-related cause is unconfirmed.

    • Both databases pass quick_check; global-state JSON files and their backups parse successfully.

    • The tested chat’s database record and history file exist on the working PC.

    • The affected database does not retain the missing project records, unlike the previously reported catalog-only failure.

    • The working state is backed up, including 24 hash-verified history files. Another 140 recorded paths remain unresolved.

    No repair has been attempted. The working app remains open. The chats survive there, but their absence elsewhere remains unexplained.

    Please investigate the missing conversations and project groupings across desktop and web, and provide a recovery path preserving their identities and associations.

  14. rusosnith commented on Nov 5, 2026

    @rusosnith

    14. > 13. Would you explain de procedure or share the prompt @NoxxGames ?

     Sure, give either GPT-6 Astra or GPT-6.1 Sol on Max this prompt:
     ```
     After updating Codex on Windows, my local projects disappeared from both the sidebar and the project picker for new chats. 
     The chats are still in Recents.
     
     In a similar case, startup logs showed that null bytes made `.codex-global-state.json` unreadable. 
     The original project IDs and folder paths survived in `state_5.sqlite`, but Codex didn’t rebuild the desktop project list from those records.
     
     Please check the startup logs and compare the saved project list with the database on my PC. 
     If you find the same mismatch, back up the app state and restore the list using the original project IDs, preserving existing chat associations. Apply any settings-file repair with Codex fully closed, then verify the projects appear in both places after restart.
     
     This post may also help: https://github.com/openai/codex/issues/58397#issuecomment-6620550509
     ```
     
     
         
       
     That should work.
    

    Thanks for sharing this. We checked, but my case appears different: both global-state JSON files parse correctly, and the affected PC’s SQLite database contains only 1 project and 3 threads, versus 11 projects and 164 threads on my working PC.

    More importantly, a chat that still opens on the working PC fails on the affected PC through its direct link with “no rollout found for thread id.” It also doesn’t appear when searching by title on the web. The web shows the same incomplete project list as the affected app.

    Both PCs report the same package version. We’ve backed up the working state but haven’t attempted a repair. Is there a recovery path for this case, where the affected database itself lacks the records, rather than just the desktop catalog?

  15. Oscar-SQG commented on Nov 5, 2026

    @Oscar-SQG

    Another occurrence on Windows, observed 5 November 2026. Existing projects disappeared from the sidebar while older chats remained accessible together in Recents. The user also reports a first-time-user appearance and suspects an update; the update has not been independently established as the trigger.

    Read-only findings from this installation:

    • The desktop list_projects interface returns an empty project list.
    • The saved sidebar grouping is already project, so switching from chronological grouping does not explain this case.
    • A local diagnostic copy of state_5.sqlite retains 7 project records, 9 project-root records, and 1,862 thread records. The thread count includes internal records and should not be read as 1,862 user conversations.
    • All 9 registered root paths exist on disk.
    • SQLite PRAGMA quick_check returns ok; PRAGMA foreign_key_check returns no violations.
    • Current .codex-global-state.json parses successfully but contains local-projects: {} and sidebar-project-thread-orders: {}.
    • The local migration checkpoint has projectsMigrated: true and threadAssignmentsMigrated: false.
    • SQLite threads.project_id is NULL for all records. Without an earlier baseline, this does not establish that explicit assignments were erased. Existing desktop chat summaries still retain their working directories.

    Startup evidence:

    • At 2026-11-05 08:55:27 UTC, the desktop logs repeatedly record [global-state] Failed to load global state, with a JSON SyntaxError involving null bytes (Unexpected token '\\u0000').
    • At 08:55:31 UTC, the logs record Local app-server project migration completed projectCount=7.
    • Startup at 10:47:40 UTC again records projectCount=7, while the desktop catalog remains empty.
    • The error stack identifies Windows package OpenAI.Codex_26.1029.9216.0_x64. The latest thread record identifies bundled CLI 0.166.0-alpha.6; the About-dialog desktop version was not collected.

    These observations are consistent with the settings corruption/catalog-reconciliation failure discussed above, but do not establish what wrote the null bytes.

    Please provide a supported recovery path that reconstructs the desktop catalog from surviving durable records while preserving original project identities, multiple roots, existing chats, and other settings.

    No live settings/database repairs, process termination, or app restart were performed for this investigation. Private project names, filesystem paths, account/thread identifiers, conversation contents, credentials, and raw logs/databases are omitted. Submitted at the affected user's request.

  16. NoxxGames commented on Nov 5, 2026

    @NoxxGames

    Updated 7 November 2026 to account for your later clarification: you previously saw the projects and chats on both PCs and the web, and now only the desktop PC can access many of them. My earlier question about whether they had always been accessible only on that PC no longer reflects your report. I have not independently inspected your machines.

    Your reported findings describe a different recovery situation from mine. My affected PC retained the original project records. Your affected PC's inspected database does not retain the missing records, while the working PC holds the tested chat's database record and history file. Reconstructing a sidebar catalog alone cannot supply absent conversation history.

    The next useful check is to trace one previously accessible chat by its exact thread ID, read-only: confirm the account/workspace, selected host and actual data folder used on each PC, then compare its database and session records, archives and older backups. A matching title or a copied deep link is not enough to establish that the same history is available through the selected host.

    Preserve the working PC's state and verify that its backup includes the tested conversation's actual history file. The reported 24 hash-verified history files do not establish a complete backup while 140 recorded paths remain unresolved.

    Where supported, remote connections may provide temporary access through the working host. That does not explain the reported loss of previous desktop/web access or restore the missing records elsewhere. That regression still needs investigation separately from my local catalog recovery.

  17. rusosnith commented on Nov 5, 2026

    @rusosnith

    Before the merge of usage tokens, in both computers and in the web, I saw everything, the projects, the chats, all, as intended.
    Since the last update, something broke and It seems that both in the web and in this laptop plenty of chats are inaccesible, and are only accesible an functional in my desktop PC.

  18. Kelton-Hays-Via commented on Nov 5, 2026

    @Kelton-Hays-Via

    Same issue here on Windows after updating on November 4. I'm on 26.1029.61003, build 24614, with Windows package 26.1029.7803.0.

    My most-used local project disappeared from the selector, while my ChatGPT projects still showed up. The desktop list_projects tool showed only one local project, but the app-server's project/list still returned 10 records, including the missing project with its correct folder. The folder still existed, and the ongoing chat was still listed.

    The saved desktop catalog also had just that one entry. An older settings snapshot still had the missing project and 241 chat-to-project assignments. None of those assignments is in the current settings. All 241 thread records were readable, and recent history loaded for three sampled chats.

    Reopening the folder and accepting the trust prompt brought it back into the selector, but it created a new registration. The recreated project shows "No chats" in the Projects view. No database or settings files were manually edited, and no chats were manually reassigned.

    I can't confirm what first removed the entries or whether null-byte corruption was involved in my case.

    Can the app recover the original project entries and reconnect their existing chats, rather than creating empty replacements?

    Redacted project showing No chats

    After reopening the existing folder and accepting the trust prompt, the recreated project appears but shows “No chats”.

  19. mkrivokapic commented on Nov 5, 2026

    @mkrivokapic
    Author

    For anyone who is still struggling with this, I highly recommend that you go forward and paste my workaround solution and findings to codex and let it work on it.
    @rusosnith @Kelton-Hays-Via

    I suspect something during the update or onboarding reset that frontend state, especially since I got the interests screen again. I haven’t pinned down what actually cleared it, though.

    If you’re debugging the same thing, check whether your database still contains the projects and whether local-projects and project-order are empty in the JSON file.

    The workaround I used was to fully close Codex, back up the local data, then rebuild local-projects, project-order, and thread-project-assignments from the existing database records, keeping the original IDs. I also removed 32 “projectless” markers that contradicted the existing assignments. No database edits or migration resets were needed. Codex will give you scripts that you can run. It's a bit of a back and forth process, but worth it in the end.

    For anyone looking into the app code, I’d start with what initializes or overwrites that frontend list, and why a successful project/list response doesn’t restore its missing entries.

  20. NoxxGames commented on Nov 7, 2026

    @NoxxGames

    @mkrivokapic Your suggestion to compare the desktop catalog with the surviving database matches what we found on my Windows PC. Adding some evidence from that investigation. We still have not established what originally corrupted the settings, or whether every affected installation has the same initiating cause.

    Correction added 7 November: my earlier statement that the 4 November update had no associated crash or power loss reflected my initial recollection. Windows later showed startup after an unclean shutdown at 01:41:50 UTC, and I now recall that it may have been a power cut. Event 41 does not establish the shutdown's cause or the time power was lost.

    On both 4 and 6 November, startup logs recorded [global-state] Failed to load global state, with JSON parsing errors involving null bytes (\u0000), after those unclean restarts. However, the 6 November incident also included an earlier partial disappearance around the update: only two older established projects that I used regularly remained visible before the later power cut. We have no settings snapshot from that phase. The shutdown evidence therefore does not explain the entire sequence or identify the process or operation that wrote the unreadable contents. The detailed timeline and recovery checks are in my earlier comment.

    Inspection of the installed app bundle adds two relevant behaviours.

    1. When the main global-state file cannot be parsed, the loader tries its .bak file. If neither loads, it starts with an empty in-memory state. Subsequent saves write the current state to both files. That can leave both containing a newly empty catalog, so finding valid JSON afterward does not exclude an earlier read failure. This describes the inspected code path, not a captured reproduction of the original corrupt write.
    2. The ordinary storeProject path fills backend maps from project/list but does not recreate absent desktop catalog entries for the empty-metadata project records in my case. The app can therefore log that it loaded the projects while its sidebar and project picker remain empty.

    Before the 7 November repair, the check found all 25 database project records and 27 folder roots intact, but zero local projects exposed by the desktop. After an offline repair of local-projects, project-order, and the original desktop/server ID mapping, all 22 PC-folder projects returned. The other three records are historical ChatGPT backing records. Database project tables were unchanged and all 2,262 pre-repair thread IDs remained, including internal/subagent records.

    Your observation about seeing the interests screen again could fit this sequence too. Losing saved state could make onboarding reappear. The screen appearing does not, by itself, establish that onboarding cleared the state.

    One recovery detail needs to remain specific to each installation. Your report had valid database chat-to-project associations to reconstruct. Mine did not have those explicit associations, so the repair preserved assignment settings and projectless markers. Removing markers or rebuilding assignments needs evidence for those particular chats.

    The contrast symptom I mentioned earlier also occurred after the repair/restart. The slider retained its position, but moving it was needed to apply the contrast again. Its cause, and any relationship to project loss, remain unconfirmed.

    Your proposed investigation direction makes sense. The unresolved questions are what first makes the settings unreadable or clears the catalog, and why the app then fails to recover missing catalog entries from intact project records. The successful workaround establishes recoverability on my PC. It does not establish the original corruption mechanism.

  21. NoxxGames commented on Nov 7, 2026

    @NoxxGames

    Further investigation, including a correction to my earlier shutdown history. The original cause of the settings corruption remains unproven. This adds evidence; it does not establish one cause for every disappearance reported here.

    I originally described the 4 November incident as a normal update without a power cut. That was my recollection at the time. Windows records an unclean startup at 01:41:50 UTC, shortly before Codex's null-byte settings errors at about 01:43:08. I now recall that it may have been a power cut. Event 41 establishes an unclean shutdown, not its cause. The first errors also came from the older package, 26.1027.6604.0, before the subsequently installed build's first startup.

    The 6 November incident has two phases that should remain separate:

    • After the update, only two established projects that I used regularly remained visible. This was before the later power cut. We have no settings snapshot from that partial-loss phase, so we cannot tell whether its cause was a persisted catalog change or a display/state-selection problem. Retained startup logs at 04:23 and 04:24 still report 25 backend projects and contain no global-state load errors in that earlier startup period.
    • After the power cut, Windows records an unclean startup at 12:41:06, followed by null-byte global-state failures from 12:43:06. All local projects then appeared missing. This supports an interrupted-write lead for the later corruption, but cannot explain the earlier partial disappearance by itself.

    All times above are UTC, also UK local time on these dates. The Windows timestamps are startup records following an unclean shutdown, not measurements of the power-cut time.

    Tests of the functions extracted from the currently installed package, 26.1103.4239.0, using synthetic files confirmed:

    1. Invalid primary plus valid backup loads the backup.
    2. Invalid primary plus invalid backup returns empty state; a subsequent save replaces both files with the new state.
    3. A missing primary skips an existing valid backup altogether. This is an additional recovery defect, not the proven path for our null-byte incidents.

    The inspected save functions use temporary-file writes and renames without explicitly requesting flush/fsync. That remains a durability concern. The original malformed files were already overwritten before collection, so neither the initiating writer nor the precise corruption mechanism has been captured. No power-loss reproduction was performed.

    The second pass checked two other possibilities:

    • Account-scoped state: in the inspected code, constructing a store with an existing account owner moves its active project settings into that owner's inactive slot and schedules a save. Selecting the same owner restores those projects in the isolated test. An empty top-level catalog therefore does not always mean the data was deleted. However, the retained failed-state snapshots from 6/7 November have no inactive project catalog to recover, and their recorded owner is unchanged across those snapshots. The 4 November snapshots do not contain this account-state structure. These checks do not reconstruct every earlier account transition.
    • Independent writers: using two instances of the installed store class, one saved a third synthetic project. A second instance, holding the older two-project state, then saved an unrelated setting and replaced both files with its older catalog. The JSON remained valid. This demonstrates a conditional stale-state overwrite hazard. It does not show that this ordering occurred during my update; startup store ownership and overlapping saves need tracing.

    These class tests used the installed methods and account-key lists, with known-key schema validation bypassed for the synthetic fixtures. They are not a complete app-startup reproduction.

    A separate experimental finding also needs context. After the successful one-time offline catalog repair, Codex briefly installed an experimental continuous flush/backup helper during this prevention investigation. At 11:41:57 UTC on 7 November, the app logged an EPERM error replacing its settings backup while the helper was accessing that file. Testing the complete updateAndPersist method then confirmed a case missed by the initial tests: its synchronous backup write logs that failure without retrying, although the primary commit succeeds. The helper very likely triggered that warning. It has been stopped, removed from startup and blocked from restarting; its snapshots are retained. Both current settings copies parse, match each other and still contain the recovered catalog. This experiment occurred after the original incidents and is not evidence of their cause or a recommended workaround. No active prevention helper or permanent fix is in place.

    The existing recovery result still stands: restoring the original catalog/order/ID mapping returned all 22 PC-folder projects, with the 25 database project records and 27 roots unchanged. The contrast-rendering symptom remains unlinked to the project loss. Reports where underlying conversation records are absent still need separate investigation.

    Please investigate durable writes and preservation of a last-good generation, the missing-primary backup path, account-state transitions, and coordination between independent settings-store instances. Surviving backend project records should support deliberate catalog recovery. The shutdown/null-byte/fallback pattern also resembles #52713, but a common initiating cause is unproven and the earlier partial disappearance remains unresolved.

  22. uhlhosting commented on Nov 7, 2026

    @uhlhosting

    01a1659b-364e-7b23-8074-24c83680f17c Same here:

    Image all projects missing suddenly!!!

  23. CaptainVid commented on Nov 8, 2026

    @CaptainVid

    I experienced the same issue on my Windows PC: all local Codex projects disappeared from the sidebar, even though the underlying SQLite database and project directories were still intact.

    I managed to recover my projects by reconstructing the local project catalog using the surviving database records, original project identities, and saved project information.

    After successfully recovering my own projects, I created an unofficial open-source community utility to help other users diagnose and recover from this specific issue:

    GitHub: https://github.com/CaptainVid/codex-local-project-recovery

    The utility includes:

    • Automatic diagnostics and SQLite integrity checks.
    • Local project catalog reconstruction.
    • Recovery of safely identifiable conversation-to-project assignments.
    • Automatic backups before applying changes.
    • Preview mode and rollback support.
    • Detailed instructions and documented limitations.

    Important: This is an independent community workaround, not an official OpenAI solution or a permanent fix for the underlying Codex bug.

    The recovery procedure worked on my own installation. However, the packaged release has not yet been independently validated across different Codex versions and Windows configurations.

    Please read the documentation carefully and run the preview before applying any changes.

    I hope this helps someone else recover their missing projects!

  24. LathanHarper commented on Nov 9, 2026

    @LathanHarper

    Thanks for documenting the original workaround. We used the same evidence-first approach for another Windows recovery and turned the lessons into a reusable Codex skill, credited to BreakerBytes and CodeCrafty. Sharing the findings and the complete skill below in case they help others. This is an unofficial, case-tested workflow, not a generally validated repair tool or a permanent fix.

    What we recovered

    Observed on 2026-11-09 with Windows package version 26.1103.4239.0:

    • Restored 27 selected original frontend project identities and 52 historically documented active chat links. The identities were resolved through surviving project_idempotency_keys; we did not generate replacement IDs.
    • Kept current backend names, ordered roots, and timestamps. The links came from saved explicit assignments and a verified earlier recovery audit, not working-directory guesses. Older evidence establishes historical membership, not proof that no later organization changed.
    • Left archived, intentionally projectless, held, excluded, and unproven chats alone. No blanket removal of projectless markers.
    • With the app and CLI fully closed, the helper changed only local-projects, project-order, app-server-project-id-by-legacy-project-id-by-host, and thread-project-assignments in the primary global-state JSON. No direct database writes, migration resets, or feature-gate changes.

    After restart, the 27 catalog entries and all 52 saved assignments matched the plan. All 54 backend project records, 1,352 thread identities/archive flags, and 1,353 original history files were preserved. The state/history/development databases had unchanged schemas and table contents. The main UI database changed catalog scan/sync bookkeeping, and a persisted UI cache field changed, so we are not claiming every file stayed byte-identical.

    Two useful cautions

    A null project ID in a native history listing can be misleading. Our listing reported 32 of the 52 links and null for 20. In the installed code, that formatter obtains its project ID from currently materialized sidebar groups; its raw thread projection discards the backend project ID. Copy tests of the installed functions included all 52 exact saved assignments independently of working-directory matching, and reproduced null summaries with an empty group index. Representative older histories opened successfully, but complete visual grouping of every older entry remains unverified. Null backend membership fields and an incomplete migration checkpoint alone did not justify another repair.

    Rehearse backup destination lengths. The first snapshot stopped before any repair write because a Windows copy failed at a 260-character destination with WinError 3. The same frozen helper passed after moving the recovery workspace to a shorter private path and rehearsing the longest real paths. That limit is specific to the tested copy environment, not a claim about all Windows setups.

    Safety and test boundaries

    We preserved both global-state files, coherent SQLite main/WAL/SHM groups with their nested paths, and compressed/archived history originals. The plan refused drift and unexpected state. Copy tests covered targeted apply, content-preservation checks, exact-byte fixture restoration, nested paths, WAL handling, interrupted rollback, and attempt-bound resume.

    Those tests were not a fully isolated backend/Electron startup reproduction. Some used extracted functions, mocked dependencies, or simulated SQL changes on disposable copies. No live rollback was performed, and restoring a pretrial profile after new work would risk losing that work. The cause of the original loss and recurrence prevention remain unresolved.

    A supported recovery preview that distinguishes frontend/backend identities, exact historical links, inferred candidates, and loaded UI grouping would be valuable. The reports here and in #60092 also support preserving original identities rather than silently recreating a project for the same folder.

    Reusable skill

    Authors: BreakerBytes and CodeCrafty. Credit to the original report and the community investigations linked in the skill. It contains instructions and references, with no universal write command or installation-specific recovery helper. The complete files are included below so the contribution is self-contained. No private paths, project/chat identifiers, account data, logs, screenshots, or backup files are included.

    SKILL.md
    ---
    name: recover-codex-windows-projects
    description: Diagnose missing local project catalogs in the Codex Windows desktop app when chats or project records survive, and prepare or carry out an explicitly approved, backed-up metadata repair. Use for vanished sidebar projects, lost local grouping, or evaluating a catalog-recovery workaround; not for cloud ChatGPT project recovery or recreating deleted conversations.
    ---
    
    # Recover Codex Windows Projects
    
    Created by **BreakerBytes and CodeCrafty**, with credit to the community reports linked in the evidence reference.
    
    Treat this as evidence-led recovery, not a universal fix. Separate missing display metadata, surviving conversation content, historical memberships, and current visible grouping. A successful repair does not establish the original cause or prevent recurrence.
    
    ## Establish the failure before changing it
    
    1. Identify the intended computer, account, app/package version, Codex home, and affected local projects. Use supported app tools first. Check filters, archived views, host/account scope, and accessible sample histories. Do not automate app surfaces that the available tools prohibit; ask the user for the specific visual check instead.
    2. Preserve current and older evidence before resetting, reinstalling, re-adding folders, or editing metadata. Re-adding a folder can create a new project identity rather than restore the old one. A running-app copy is preliminary evidence, not a verified rollback snapshot.
    3. Inspect authorized, preserved copies. Compare the frontend catalog, backend project records, identity mappings, roots, explicit assignments, projectless markers, archive flags, and any account-scoped inactive state. Record evidence dates and conflicts. Never bypass a read restriction by copying the restricted data elsewhere.
    4. Determine what actually survives. A null `threads.project_id` or null project ID in a native history summary is not, by itself, proof of lost membership. Read [state-model.md](references/state-model.md) before interpreting those values or building a candidate.
    
    ## Propose only evidence-supported changes
    
    - Prefer original identities resolved unambiguously from surviving records and corroborated backups. Preserve current names, ordered roots, timestamps, unrelated projects, and settings unless the user requests otherwise. Stop on duplicate generations or ambiguous mappings; a shared name or folder is not an identity.
    - Distinguish **historically exact assignments** from **inferred candidates**. A saved assignment or verified earlier recovery audit can prove a past link, but not that the user made no later changes. Dates and uncertainty belong in the proposal. A matching working directory, repository, or title is only a clue.
    - Keep archived, explicitly projectless, held, excluded, and unproven chats untouched by default. Do not blanket-remove projectless markers. A conflicting marker requires per-chat evidence and an approved resolution.
    - Produce a small plan: evidence source/date, selected project identities and membership counts, exact fields to change, excluded categories, expected preserved invariants, and validation/rollback boundaries. Preserve current state rather than replacing the whole profile with an old snapshot. Report current backend ordering as current ordering, not recovered historical ordering.
    - Obtain approval for the actual mutation scope, including use of older memberships. Creating or loading this skill does not authorize a repair. Do not carry approval, plan hashes, paths, or fixed counts from another recovery into this one.
    
    ## Guard any approved repair
    
    Read [offline-repair.md](references/offline-repair.md) before constructing or running a mutating helper. It defines snapshot, drift, writer, path-length, transaction, and rollback checks. This skill intentionally contains no universal write command.
    
    Use a copy-only dry run first. Reject ambiguous identities, schema/version drift, changed account ownership, new content, or unexpected target values. Keep the app and CLI writers fully closed for the fresh snapshot and mutation. Do not kill processes or reopen the app without the user's agreed workflow. A command-line acknowledgment flag is not user permission.
    
    Limit the helper to the smallest reviewed metadata patch. Do not edit conversation databases, reset migrations, force feature gates, or install continuous backup/flush watchers to make the result look complete. A materially different repair needs separate evidence and approval.
    
    ## Verify outcomes in separate layers
    
    1. **Persistence:** Re-read the targeted metadata after restart and compare with the reviewed plan.
    2. **Preservation:** Compare identities, archive flags, content/table invariants, and original history hashes against the fresh snapshot. Distinguish expected startup cache/bookkeeping changes from content changes.
    3. **Grouping:** Inspect the relevant project groups, expand older entries, and open representative older histories using permitted tools or user screenshots. Do not equate a native summary's null project ID with a failed assignment or a populated catalog with full UI success.
    4. **Report:** State exactly what was restored, what was preserved, which visual checks passed, and what remains unverified. Stop additional repair when only the observation layer is incomplete.
    
    For the verified case that motivated this skill, including test limits and source links, read [evidence-and-limits.md](references/evidence-and-limits.md). Its counts are examples, not expected values for a new machine.
    
    ## Share findings safely
    
    If asked to contribute publicly, prepare a sanitized report with version, symptoms, evidence classes, minimal changed field names, preservation results, test boundaries, and remaining questions. Do not upload state files, backups, raw logs, screenshots, private paths, account/host identifiers, project/chat names or IDs, or conversation content. Verify the destination and authorization for the final content. Credit the community workaround and label it unofficial.
    agents/openai.yaml
    interface:
      display_name: "Recover Codex Windows Projects"
      short_description: "Diagnose missing projects and plan guarded recovery"
      default_prompt: "Use $recover-codex-windows-projects to diagnose missing local projects and prepare an evidence-based recovery plan."
    references/state-model.md
    # State model and evidence selection
    
    Use these field names as observed implementation details, not a stable public API. Inspect the installed version and schema before relying on them. Keep analysis on authorized copies and report private identifiers only where needed for the user's local review.
    
    ## Separate identities and stores
    
    In the examined Windows installation:
    
    - `.codex-global-state.json` held `local-projects`, `project-order`, `thread-project-assignments`, and the host-specific `app-server-project-id-by-legacy-project-id-by-host` mapping. Its `.bak` file was a separate evidence source.
    - `state_5.sqlite` held backend `projects`, ordered `project_roots`, `project_idempotency_keys`, and `threads`.
    - A frontend project UUID was associated with a backend project through `project_idempotency_keys.key`. These were different identity domains, not interchangeable IDs.
    - `thread_history_1.sqlite` contained structured history. `sqlite/codex.db` and `sqlite/codex-dev.db` contained additional app state. Original history files could be compressed. These stores were preserved, not used as places to invent memberships.
    - `app-server-projects-migration-by-host` tracked project and thread-assignment migration separately. Existing projects could survive while backend `threads.project_id` remained null.
    - Account-scoped renderer state could hold active/inactive project settings in some versions. Compare account ownership and inactive slots before declaring a catalog gone. Do not restore another account's state.
    
    The supported native list, frontend catalog, backend project list, and sidebar group index are not necessarily the same data view. Identify which view produced each count.
    
    ## Derive a candidate without guessing
    
    On a preserved database, inspect schema and integrity first. In the verified schema, a frontend key could be resolved with this parameterized read-only query:
    
    ```sql
    SELECT p.id, p.name, p.created_at_ms, p.updated_at_ms
    FROM projects AS p
    JOIN project_idempotency_keys AS k ON k.project_id = p.id
    WHERE k.key = ?;
    ```
    
    Require exactly one matching record. Then read its roots in `position` order. Do not paste a folder or project name into SQL text. Confirm that the key is from the intended identity generation and host; the query alone does not establish that.
    
    The observed frontend project shape was:
    
    ```json
    {"id":"frontend-id","name":"Example","rootPaths":["C:\\Example"],"createdAt":0,"updatedAt":0}
    ```
    
    The observed explicit assignment shape was:
    
    ```json
    {"projectKind":"local","projectId":"frontend-id"}
    ```
    
    These are structural examples only. Never use their values as repair data. Preserve root order; shared roots make folder-based inference especially ambiguous. Do not normalize extended Windows paths or case by ad hoc string substitution when identity comparison depends on the app's rules.
    
    Use an evidence ledger per proposed link:
    
    - Exact thread identity and intended frontend project identity.
    - Source type and date: saved explicit assignment, verified historical audit, or current backend association with a proven identity mapping.
    - Current archive state, exclusion/projectless status, and contradictory newer evidence.
    - Classification: historically exact, inferred, conflicting, or unknown.
    
    Only the approved, non-conflicting exact subset belongs in a historical-restoration patch. If the user instead asks to organize inferred candidates, label that as new organization and review it separately. Do not silently combine it with restoration.
    
    ## Interpret native-history nulls carefully
    
    In the installed code examined on 2026-11-09, the native history formatter obtained `projectId` from the currently materialized sidebar-group index. Its raw thread projection did not preserve the backend response's `projectId`. An unloaded group could therefore produce a null summary despite an intact saved assignment.
    
    The inspected project filter explicitly included saved assignment IDs independently of working-directory matching. The group resolver used an exact assignment before folder fallback. Isolated tests of those functions reproduced null summaries with an empty group index and exact summaries after populating that index.
    
    This is version-specific source and copy-test evidence. It does not inspect live renderer memory, prove every older chat is visible, or authorize forcing a migration. When a null summary is the only discrepancy, expand/load the affected project and inspect known older entries before proposing another repair.
    references/offline-repair.md
    # Guarded offline repair and rollback
    
    Use this reference only after establishing the state model and approving a concrete recovery scope. Build and review a version-specific helper rather than distributing an installation-specific recovery script as a general fix.
    
    ## Before mutation
    
    - Agree a maintenance window: save work, fully quit the desktop app and related CLI/app-server writers, and avoid new chats or settings changes until read-only verification is complete. If the current conversation disappears on quit, give the user a local runbook and visible result location beforehand.
    - Detect writers using the installed process layout; fail closed on uncertainty. Re-check the gate immediately before each live write. Wait with a bounded timeout rather than forcibly terminating processes. A point-in-time process check is not a filesystem lock or a guarantee against a new writer.
    - Make a fresh, uniquely named closed-app snapshot. Keep the primary and backup JSON separately. Preserve the relevant SQLite main files and their present `-wal`/`-shm` sidecars as coherent groups, with original nested layout. Record absence as well as presence. Copying only a live SQLite main file can omit committed WAL data.
    - Preserve authorized history files byte-for-byte, including compressed and archived originals. Do not rewrite, re-encode, decompress in place, or move them during a catalog repair. Do not read or copy paths prohibited by the active permission profile; stop and narrow the recovery if a necessary snapshot cannot be made.
    - Use a manifest of relative path, size, and cryptographic hash. Verify copied bytes and repeat the source inventory to detect changes during copying. Inspect SQLite integrity on disposable snapshot copies, not the originals. Keep snapshots private and access-limited; do not publish manifests containing private filenames.
    - Rehearse the longest actual relative paths under every destination layout: before snapshot, posttrial snapshot, staging, quarantine, and validation scratch space. One tested Windows copy path worked at 259 characters and failed at 260 with WinError 3. That is a finding about that environment, not a universal limit. Prefer a shorter private recovery root; do not change OS security or path settings as an incidental workaround.
    - Stop before any live write if a backup, manifest, integrity check, or path rehearsal fails. An incomplete snapshot is not a rollback guarantee. Preserve failed-attempt artifacts and verify whether any mutation happened before retrying.
    
    ## Freeze and test the plan
    
    Bind the reviewed plan and helper to their content hashes for the specific attempt. Recheck the installed app/CLI version, schema, account owner, host, migration checkpoints, target values, project identities/roots, and selected threads/archive flags against the fresh snapshot.
    
    Test copies for:
    
    - The exact intended patch and preservation of all unrelated JSON keys.
    - Refusal on wrong plan hash, changed account/version/schema, changed target state, ambiguous identities, new projectless markers or pending deletion state, and excluded/archived targets.
    - Real nested database paths, WAL/SHM presence and absence, long filenames, and compressed-history preservation.
    - New or changed conversation rows and original history hashes, not merely file counts.
    - Atomic JSON replacement, injected failures, interrupted rollback, attempt-bound resume, and preservation of newer user work.
    
    State whether tests exercise real backend/Electron startup or only extracted functions, mocks, and simulated SQL writes. A copy test is useful but cannot prove behavior of an unrun integration.
    
    ## Apply narrowly
    
    Use the fresh current JSON as the base and replace only the reviewed fields. In the motivating case the allowlist contained four fields: `local-projects`, `project-order`, `app-server-project-id-by-legacy-project-id-by-host`, and `thread-project-assignments`. Another case may need fewer fields; do not assume all four are missing or safe to replace.
    
    Stage on the same filesystem, validate the candidate, then use an atomic file replacement. Preserve both original JSON files first. Handle the backup file according to the inspected version and reviewed plan; do not overwrite the last good backup by habit. Journal the exact outcome, changed keys, hashes, and snapshot location.
    
    Do not write databases directly as a shortcut. The app may later perform its own migration after restart, which must be included in the risk assessment and verification. Do not reset migration flags, toggle experimental gates, or strip projectless markers to force that migration.
    
    Reopen only after an unambiguous successful status. Then verify without starting new work. Report automatic app cache/bookkeeping changes separately from repair-helper changes.
    
    ## Rollback is conditional, not a reset button
    
    Only roll back under the approved attempt's rollback scope. Fully close writers again and preserve the entire posttrial state first. Compare it with the before snapshot; require that changes fall within the exact reviewed allowance. New messages, renamed or archived items, task/settings changes, or unexplained startup changes must stop automatic rollback for review.
    
    Restore SQLite main/WAL/SHM files as a matched generation, including removal from the live slot of sidecars that did not exist in the target generation. Retain displaced files in the private attempt directory rather than deleting evidence. Stage large replacements before displacing any live database. Leave unchanged history originals in place after hash verification.
    
    A multi-file rollback is not one filesystem-wide atomic operation. Use a durable journal, fail closed after interruption, and keep the app shut. Resume only against the same attempt, original before snapshot, recorded posttrial snapshot, and a recognized pretrial/posttrial file state. Unknown files or drift require review, not relaxed guards or a blind rerun.
    
    Do not claim live rollback was proven merely because copy fixtures restored exact bytes. Never restore an old whole profile over newer work.
    references/evidence-and-limits.md
    # Evidence and limits
    
    ## Community sources
    
    Verified on 2026-11-09. Recheck issue status before claiming a current fixed release or recommending a community utility.
    
    - [openai/codex #58397](https://github.com/openai/codex/issues/58397): the original reporter found an empty frontend catalog despite surviving backend projects and valid associations. They reported restoring catalog/order/assignments after backup and full quit. Their removal of conflicting projectless markers was specific to their evidence; it is not a general recovery step.
    - [Detailed follow-up in #58397](https://github.com/openai/codex/issues/58397#issuecomment-6706981528): another participant separated null-byte corruption observations, account-state behavior, stale-writer tests, and unresolved causes. An experimental continuous backup/flush helper caused a backup-replacement warning and was stopped. Do not turn it into a prevention recommendation.
    - [#60092](https://github.com/openai/codex/issues/60092): re-adding the same folder was reported to create a different identity without restoring old memberships.
    - [Recovery comment in #55755](https://github.com/openai/codex/issues/55755#issuecomment-6360881479): a reported recovery mixed historical assignments with additional folder-inferred assignments. Keep those categories separate.
    
    These are community reports, not official repair instructions. A local reproduction of one function or a successful recovery does not establish the cause of every disappearance.
    
    ## Sanitized motivating case
    
    Observed on Windows on 2026-11-09, with package version `26.1103.4239.0`. The installation had older and later identity generations, existing archived/projectless/held chats, and preserved historical recovery evidence.
    
    - The approved patch reconstructed 27 selected later-generation frontend project entries and 52 historically documented active links. Identity mappings were resolved through surviving idempotency keys. Current backend names, ordered roots, and timestamps were retained.
    - Historical evidence identified 54 links: 51 verified earlier recovery targets plus 3 explicit existing assignments. Two were excluded by the user. This supported a selected historical restoration, not proof that no organization changed after those records.
    - The helper replaced only the four reviewed JSON fields described in the offline reference. It did not directly write databases, reset flags, delete markers, kill processes, or launch the app.
    - After restart, the 27-entry catalog and all 52 saved assignments matched the plan. All 54 backend project records remained. All 1,352 thread identities and archive flags were unchanged. All 1,353 original history files were byte-identical.
    - The state database, structured-history database, and development UI database had unchanged schemas and table contents. The main UI database changed catalog scan/sync bookkeeping; a persisted UI cache field also changed. Do not describe every file or all app state as unchanged.
    - Native listing reported 32 of the 52 associations and null for 20. Copy tests of installed functions included all 52 exact links without working-directory matches and reproduced false-null summaries when sidebar-group entries were absent. That did not prove live renderer completeness.
    - Representative older histories could be opened. Complete visual grouping of all older entries remained unverified when this skill was written. Backend `threads.project_id` values remained null, and the thread-assignment migration checkpoint remained false. The effective membership feature-gate value was not measured. No gate change or further repair was justified by those nulls alone.
    
    Counts describe different populations. User-visible history counts, full database rows including internal records, saved links, and materialized sidebar entries must not be compared as if interchangeable.
    
    ## What was tested
    
    Copy tests covered installed assignment logic with pagination, injected failure/resume and idempotence; four actual metadata database copies with simulated membership changes; exact-byte fixture restoration; nested paths; WAL groups; plan mismatch and drift refusal; preservation of unrelated content; interrupted restore and attempt-bound resume.
    
    The first live snapshot attempt stopped before mutation because a destination path exceeded the tested Windows copy limit. The same frozen helpers were moved to a shorter private location, hashes were checked, and longest-path rehearsals passed before the successful attempt.
    
    ## What was not established
    
    - No fully isolated backend/Electron startup test completed. Some tests used extracted functions, mocked dependencies, canary history files, or direct SQL updates on disposable copies.
    - No live rollback was performed. Copy rollback tests are not proof of live restoration after new activity.
    - No guarantee of full historical organization, all older UI grouping, recurrence prevention, or an official fixed release.
    - No established original corruption mechanism, account-wide failure, or recovery of genuinely missing/deleted conversation content.
    
    Use this case to preserve recovery invariants, not to reuse its fixed counts, hashes, script paths, or approvals.
  25. Bachelor-Hong commented on Nov 9, 2026

    @Bachelor-Hong

    I ran into the same issue on Windows. All my Codex projects disappeared, but the data was still there.

    I checked state_5.sqlite and found that all 10 projects and 61 conversations still existed. The problem was that every conversation had a NULL project_id.

    I backed up the database, then used the conversation working directories (cwd) to match them back to their original projects. I managed to restore 59 associations and left the other 2 unchanged because I couldn't identify their projects.

    After applying the changes, SQLite integrity checks passed.

    Hope this helps someone else!

  26. j4deite commented on Nov 18, 2026

    @j4deite

    Windows版 26.1103.4239.0 で同様の症状が再現します。APIキー利用時、再起動のたびに初期設定画面が表示され、プロジェクトとチャットの関連付けが外れます。チャット自体は残っています。設定警告を解消しても症状は続いています。

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

    appbugsessionwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions