Repository navigation
Description
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
joshtrimerge commentedon Oct 30, 2026
Same issue on my end no-active-thread-01a18df6-eb33-76d1-aa48-bccc2bb210fb
github-actions commentedon Oct 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
mkrivokapic commentedon Oct 30, 2026
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.
joshtrimerge commentedon Nov 2, 2026
Yet days later still no fix. @codex what is the delay on fixing this bug?
rusosnith commentedon Nov 3, 2026
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?
joshtrimerge commentedon Nov 3, 2026
Correct, still no fix @codex review
NoxxGames commentedon Nov 4, 2026
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:
26.1029.61003, build24614, production channel.OpenAI.Codex_26.1029.7803.0_x64.0.166.0-alpha.6.Observed behavior:
list_projectstool. Separate ChatGPT projects remained available.Read-only findings and chronology:
[global-state] Failed to load global statewith a JSON SyntaxError containing
Unexpected token '\u0000'andis not valid JSON.26.1027.6604.0. They therefore establish corruption encountered during the update/restart sequence, not that the subsequently installed build caused the corruption.Local app-server project migration completed projectCount=23.projectCount=23.state_5.sqlitecontains 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.PRAGMA quick_checkreturnsok. The database contains 2,230 thread records, including internal/subagent records; 93 have desktop sourcevscode.local-projects. The earlier unreadable file contents were no longer available when this investigation started.projectsMigrated=true,threadAssignmentsMigrated=false. All SQLitethreads.project_idvalues 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.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 ordinarystoreProjectpath 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:
local-projects,project-order, and the original desktop/server ID mapping, preserving the newly created entry and unrelated settings.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:
list_projectsinterface now returns all 21 PC-folder projects, including the one created after the incident. Separate ChatGPT projects are also returned.projects(24),project_roots(26), andproject_idempotency_keys(24). All 2,230 original thread IDs remain present, and SQLitequick_checkpasses.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.
26.1103.31037, build25241, Windows package26.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.projectCount=25.local-projectsregistry. The SQLite database passedquick_checkand 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.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.
26.1103.32239, build25471, Windows package26.1103.4239.0. The app-server still reports0.167.0-alpha.3.2.projectCount=25. No global-state JSON load failure was found in today's collected desktop startup log.quick_check. All rows inprojects(25),project_roots(27), andproject_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.storeProjectpath 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.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.
quick_checkpasses.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.
NoxxGames commentedon Nov 4, 2026
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.
rusosnith commentedon Nov 5, 2026
Would you explain de procedure or share the prompt @NoxxGames ?
NoxxGames commentedon Nov 5, 2026
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:
Detailed case history. The successful recovery in that case did not establish a permanent fix.
rusosnith commentedon Nov 5, 2026
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: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 | 164Both 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.
rusosnith commentedon Nov 5, 2026
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?
Oscar-SQG commentedon Nov 5, 2026
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:
list_projectsinterface returns an empty project list.project, so switching from chronological grouping does not explain this case.state_5.sqliteretains 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.PRAGMA quick_checkreturnsok;PRAGMA foreign_key_checkreturns no violations..codex-global-state.jsonparses successfully but containslocal-projects: {}andsidebar-project-thread-orders: {}.projectsMigrated: trueandthreadAssignmentsMigrated: false.threads.project_idis 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:
[global-state] Failed to load global state, with a JSON SyntaxError involving null bytes (Unexpected token '\\u0000').Local app-server project migration completed projectCount=7.projectCount=7, while the desktop catalog remains empty.OpenAI.Codex_26.1029.9216.0_x64. The latest thread record identifies bundled CLI0.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.
NoxxGames commentedon Nov 5, 2026
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.
rusosnith commentedon Nov 5, 2026
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.
Kelton-Hays-Via commentedon Nov 5, 2026
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_projectstool showed only one local project, but the app-server'sproject/liststill 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?
After reopening the existing folder and accepting the trust prompt, the recreated project appears but shows “No chats”.
mkrivokapic commentedon Nov 5, 2026
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.
NoxxGames commentedon Nov 7, 2026
@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.
.bakfile. 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.storeProjectpath fills backend maps fromproject/listbut 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.
NoxxGames commentedon Nov 7, 2026
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:
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:
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:
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.
uhlhosting commentedon Nov 7, 2026
01a1659b-364e-7b23-8074-24c83680f17c Same here:
CaptainVid commentedon Nov 8, 2026
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:
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!
LathanHarper commentedon Nov 9, 2026
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:project_idempotency_keys; we did not generate replacement IDs.local-projects,project-order,app-server-project-id-by-legacy-project-id-by-host, andthread-project-assignmentsin 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
agents/openai.yaml
references/state-model.md
references/offline-repair.md
references/evidence-and-limits.md
Bachelor-Hong commentedon Nov 9, 2026
I ran into the same issue on Windows. All my Codex projects disappeared, but the data was still there.
I checked
state_5.sqliteand found that all 10 projects and 61 conversations still existed. The problem was that every conversation had a NULLproject_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!
j4deite commentedon Nov 18, 2026
Windows版 26.1103.4239.0 で同様の症状が再現します。APIキー利用時、再起動のたびに初期設定画面が表示され、プロジェクトとチャットの関連付けが外れます。チャット自体は残っています。設定警告を解消しても症状は続いています。