Repository navigation
Description
What issue are you seeing?
After a Codex Desktop crash on Windows while I was manually editing %USERPROFILE%\.codex\config.toml, all local Projects disappeared from the sidebar.
The underlying chats were not deleted:
- old threads can still be found through Search
- old threads can still be opened
- however, they are no longer associated with their previous local projects
- the sidebar now shows No projects
I am willing to recreate the projects manually, but this looks like a state-loss bug: a config parse/schema problem or crash should not wipe unrelated project/thread grouping metadata.
Context / trigger
I had been editing Computer Use allow-list settings in config.toml, including an unsupported/incorrect structure similar to:
[computer_use.windows.always_allowed_app_ids]
"Microsoft.Office.EXCEL.EXE.15" = true
"chrome.exe" = trueCodex later reported that computer_use.windows.always_allowed_app_ids was unrecognized/ignored. I also had an ignored/deprecated features.thread_tools setting.
During manual cleanup/removal of config entries, Codex crashed/hung. After recovering and restarting the app, the project registry was gone.
I cannot prove that the malformed config is the root cause, but the project disappearance happened immediately after this crash/restart sequence.
Diagnostics
Current UI state:
- Projects: No projects
- Recents/Search: old threads still exist and can be opened
- opening an old thread does not restore its original project association
I checked %USERPROFILE%\.codex\.codex-global-state.json using PowerShell 7 with ConvertFrom-Json -AsHashtable.
The current values are:
LocalProjects 0
ThreadProjectAssignments 0
ProjectlessThreadIds 0
The normal ConvertFrom-Json path also revealed case-sensitive duplicate keys such as dataFlow and dataflow, so -AsHashtable was required to parse the file.
The local .codex directory is over 8 GB. I do not plan to manually repair/reconstruct the old project mapping; I will recreate my projects instead. I am reporting this because the crash should not be able to silently erase the project registry while leaving sessions intact.
Steps that reproduced the incident
- Start Codex Desktop on Windows with multiple existing local projects and many historical threads.
- Edit
%USERPROFILE%\.codex\config.toml. - Add/remove Computer Use configuration entries; some entries are invalid/deprecated and Codex reports them as ignored.
- Codex hangs/crashes during/after the manual config cleanup.
- Fully exit and relaunch Codex Desktop.
- Observe that the Projects section is empty.
- Search for an old thread.
- Observe that the thread still exists and opens, but it is no longer associated with its former project.
Expected behavior
- Invalid/deprecated
config.tomlentries should be rejected or ignored safely. - A crash while loading/editing config should not reset or overwrite local project metadata.
- Existing
local-projectsand thread-to-project assignments should survive restart. - If the global project state cannot be loaded, Codex should preserve the last known good state or recover it from durable session/project metadata instead of writing an empty registry.
Actual behavior
- Local project list is reset to empty.
- Thread-to-project grouping is lost.
- Historical threads remain searchable/openable.
- Users must manually recreate project organization.
Environment
- OS: Windows 11 x64
- Codex Desktop / ChatGPT Desktop on Windows
- Exact app version: not captured at the time of the incident
Related issues
This appears related to:
- Windows desktop: corrupted CODEX_HOME global state resets projects/thread assignments; sessions survive but project grouping is lost #46987 — corrupted CODEX_HOME global state resets projects/thread assignments
- Bug report: Local projects disappear from sidebar after Windows desktop update #42739 — local projects disappear from sidebar after Windows desktop update
The potentially useful difference here is the trigger: the reset happened immediately after a crash associated with manual config.toml editing / invalid Computer Use configuration, rather than a normal app update.
I can provide additional sanitized diagnostics if needed, but I do not intend to upload the full .codex directory because it is over 8 GB and contains private local session data.
Activity
github-actions commentedon Sep 21, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action