You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows desktop: all local projects disappear and list_projects returns empty after update #55014
appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
What version of the Codex App are you using (From “About Codex” dialog)?
26.1013.4894.0 (installed Windows package; exact About-dialog version unavailable)
What subscription do you have?
ChatGPT subscription (plan not verified)
What platform is your computer?
Windows, 64-bit
What issue are you seeing?
After a Codex Desktop update, the entire local Projects list became empty. Existing conversations still appear in Recents and retain their working directories, but the project list is empty and the app API returns an empty collection from list_projects.
Previous investigation found that historical project/task associations existed before the update. Attempts to reconstruct project metadata were overwritten by the app after restart. Restarting Codex and re-opening the application did not restore the project list.
This resembles open reports #35088 and #39121: a Windows Desktop project-registry/sidebar synchronization or migration failure rather than loss of workspace files.
What steps can reproduce the bug?
Use Codex Desktop on Windows with existing local projects and conversations.
Call list_projects: it returns an empty projects collection.
What is the expected behavior?
Historical local projects and their conversation groupings remain visible after an update or restart.
Additional information
No workspace folders were intentionally removed. Existing conversations remain available, so the project organization appears to be missing rather than the underlying task data.
I am seeing a closely related failure on Codex Desktop 26.1013.4894.0.
Two previously established local projects disappeared while their source directories remained intact and usable.
I performed read-only local inspection without re-adding the projects or modifying the Codex database/state.
The inspection found that historical index/cache data still survives locally, including 17 potentially related conversation-cache records with 221 message nodes. However, the former local project mappings could not be recovered from the currently readable state, and I could not confirm corresponding native Codex rollout/execution sessions for the affected project directories.
The recovered readable conversations appear to be ChatGPT-origin cached conversations rather than confirmed native Codex execution sessions.
This may represent a more severe variant of the same local project-state / migration problem rather than a sidebar-only visibility issue.
I have retained sanitized forensic notes and local backups. I can provide specific non-sensitive diagnostic fields if maintainers indicate what would be useful.
Thanks for confirming. How did you fix it the first time? Did the projects
come back on their own, or did you manually re-add/recreate them?
In my case, the local projects are still missing after restarting Codex and
Windows, while the chat history itself is still there.
yl0911 ***@***.***> 于2026年10月20日周二 16:27写道:
Additional diagnostic findings and successful local recovery
This report adds measured local-state evidence and a successful manual recovery for the missing local Projects symptom.
Environment inspected
Windows 11 Home Single Language, version 10.0.26300, build 26300, x64.
Installed Windows package: OpenAI.Codex 26.1013.4894.0. The exact About-dialog version was not captured.
Incident observed on October 20, 2026.
Observed sequence before recovery
The laptop encountered an error and restarted unexpectedly.
After reopening the desktop app, the local Projects organization was missing.
Switching the sidebar to a chronological list exposed recent conversations, but did not restore local project groups.
list_projects still returned ChatGPT-origin projects, but no local projects.
This is an observed incident sequence, not a deterministic reproducer. The original system error and the exact operation that emptied the project registry were not captured.
Initial read-only findings
The preserved pre-repair snapshot showed:
.codex-global-state.json was readable, with "local-projects": {}.
thread-project-assignments was absent.
app-server-project-id-by-legacy-project-id-by-host was absent.
Per-host migration state had projectsMigrated: true and threadAssignmentsMigrated: false.
state_5.sqlite still contained 25 project definitions, including project-root records.
No threads.project_id values were populated in that snapshot.
PRAGMA quick_check returned ok.
The absence of SQL project memberships does not establish that the restart cleared them: historical associations were also stored in legacy global-state mappings. The relevant mismatch was an empty frontend project registry despite surviving project definitions and readable conversation storage.
What actually restored access
The following was a case-specific manual recovery with backups, not a product fix:
Preserve the current global state and take consistent SQLite backups.
Combine the surviving database project definitions with a readable configuration snapshot from October 1. Reconstruct three additional project definitions whose previous presence was confirmed.
Restore 230 chat-to-project associations through the local app-server API: 158 from documented historical mappings and 72 from unambiguous exact folder matches. The latter are inferred associations, rather than proof of the original manual organization.
Restore the frontend registry, project order, thread assignments/workspace hints, and legacy-to-server project ID mappings.
Commit the pending global-state configuration while the desktop application is fully closed, and verify the main file and its backup by reading them back.
Two recovery attempts did not complete the frontend-state write: one guard detected an active app or a changed state file; another helper stopped during desktop shutdown. Running the final configuration-only step from a temporary, non-recurring Windows Task Scheduler process allowed it to finish independently of the desktop app. That temporary task was removed afterward. These are recovery-execution observations, separate from the original failure trigger.
Verified outcome
28 project definitions in SQLite and 28 entries in the saved local project registry.
230 associations matched the database.
SQLite quick-check remained ok.
The reviewed conversation metadata was unchanged during the final configuration-only operation.
config.toml had the same SHA-256 immediately before and after that final operation. This comparison is limited to that interval.
After reopening, local project access returned. A subsequently reported missing project was found at the end of the recovered list; that ordering observation was distinct from the original empty local registry.
The full content of every conversation was not audited, and not every historical folder reference was still available on disk.
Investigation request
Please investigate global-state loading/persistence and project-migration reconciliation around an unclean exit. In particular, when durable project rows exist but local-projects and legacy mappings are empty or absent, the app should expose a supported reconciliation/recovery path rather than silently presenting an empty local Projects list.
The recovery succeeded, but the cause of the original registry loss and the laptop restart remains undetermined. This comment contains aggregate diagnostics only; no conversations, raw databases/configuration files, personal project names, filesystem paths, credentials, or private thread/project IDs are attached.
Thanks for documenting this in so much detail. Your findings are very
useful, and parts of your case look quite close to what I am seeing.
In my case, two previously established local Projects disappeared from
Codex Desktop after the issue occurred. The source folders themselves are
still present on disk and remain completely usable, so there has been no
loss of the actual project files.
I have only done read-only investigation so far. I have not re-added the
projects, modified the Codex database, or attempted to reconstruct the
project registry or thread assignments.
From the local state I inspected:
- the two original local Projects are no longer available through the
current project list;
- historical index/cache data still exists locally;
- I found 17 potentially related conversation-cache records containing
221 message nodes;
- however, I could not recover the former local Project mappings from
the currently readable state;
- I also could not confirm corresponding native Codex rollout/execution
sessions for the affected project directories;
- the readable recovered conversations appear to be ChatGPT-origin
cached conversations rather than confirmed native Codex execution sessions.
So my current impression is also that this is more likely a project
registry / mapping / migration-state problem than a loss of the underlying
workspace files.
Your successful recovery is encouraging, especially the fact that the
durable project definitions were still present even though the frontend
registry and assignment mappings were missing. I am not going to attempt
the same reconstruction yet, though. Since my actual project files are
still safely stored locally and I can continue working with them, the
missing Projects organization is inconvenient but not currently blocking my
work.
For now, I plan to preserve the current state and backups and wait to see
whether OpenAI provides a maintainer response, identifies the root cause,
or offers a supported recovery path. I would rather avoid changing the
local state unless necessary, especially while it may still be useful for
diagnosis.
Thanks again for sharing the recovery details. It adds a very useful
comparison point for this issue.
ThalamicBarrel ***@***.***> 于2026年10月21日周三 03:43写道:
*ThalamicBarrel* left a comment (openai/codex#55014)
<#55014 (comment)>
Additional diagnostic findings and successful local recovery
This report adds measured local-state evidence and a successful manual
recovery for the missing local Projects symptom.
*Environment inspected*
- Windows 11 Home Single Language, version 10.0.26300, build 26300,
x64.
- Installed Windows package: OpenAI.Codex 26.1013.4894.0. The exact
About-dialog version was not captured.
- Incident observed on October 20, 2026.
Observed sequence before recovery
1. The laptop encountered an error and restarted unexpectedly.
2. After reopening the desktop app, the local Projects organization
was missing.
3. Switching the sidebar to a chronological list exposed recent
conversations, but did not restore local project groups.
4. list_projects still returned ChatGPT-origin projects, but no local
projects.
This is an observed incident sequence, not a deterministic reproducer. The
original system error and the exact operation that emptied the project
registry were not captured.
Initial read-only findings
The preserved pre-repair snapshot showed:
- .codex-global-state.json was readable, with "local-projects": {}.
- thread-project-assignments was absent.
- app-server-project-id-by-legacy-project-id-by-host was absent.
- Per-host migration state had projectsMigrated: true and threadAssignmentsMigrated:
false.
- state_5.sqlite still contained *25 project definitions*, including
project-root records.
- No threads.project_id values were populated in that snapshot.
- PRAGMA quick_check returned ok.
The absence of SQL project memberships does *not* establish that the
restart cleared them: historical associations were also stored in legacy
global-state mappings. The relevant mismatch was an empty frontend project
registry despite surviving project definitions and readable conversation
storage.
What actually restored access
The following was a case-specific manual recovery with backups, not a
product fix:
1. Preserve the current global state and take consistent SQLite
backups.
2. Combine the surviving database project definitions with a readable
configuration snapshot from October 1. Reconstruct three additional project
definitions whose previous presence was confirmed.
3. Restore *230 chat-to-project associations* through the local
app-server API: *158* from documented historical mappings and *72*
from unambiguous exact folder matches. The latter are inferred
associations, rather than proof of the original manual organization.
4. Restore the frontend registry, project order, thread
assignments/workspace hints, and legacy-to-server project ID mappings.
5. Commit the pending global-state configuration while the desktop
application is fully closed, and verify the main file and its backup by
reading them back.
Two recovery attempts did not complete the frontend-state write: one guard
detected an active app or a changed state file; another helper stopped
during desktop shutdown. Running the final configuration-only step from a
temporary, non-recurring Windows Task Scheduler process allowed it to
finish independently of the desktop app. That temporary task was removed
afterward. These are recovery-execution observations, separate from the
original failure trigger.
Verified outcome
- *28 project definitions* in SQLite and *28 entries* in the saved
local project registry.
- *230 associations* matched the database.
- SQLite quick-check remained ok.
- The reviewed conversation metadata was unchanged during the final
configuration-only operation.
- config.toml had the same SHA-256 immediately before and after that
final operation. This comparison is limited to that interval.
- After reopening, local project access returned. A subsequently
reported missing project was found at the end of the recovered list; that
ordering observation was distinct from the original empty local registry.
The full content of every conversation was not audited, and not every
historical folder reference was still available on disk.
Investigation request
Please investigate global-state loading/persistence and project-migration
reconciliation around an unclean exit. In particular, when durable project
rows exist but local-projects and legacy mappings are empty or absent,
the app should expose a supported reconciliation/recovery path rather than
silently presenting an empty local Projects list.
The recovery succeeded, but the cause of the original registry loss and
the laptop restart remains undetermined. This comment contains aggregate
diagnostics only; no conversations, raw databases/configuration files,
personal project names, filesystem paths, credentials, or private
thread/project IDs are attached.
—
Reply to this email directly, view it on GitHub
<#55014?email_source=notifications&email_token=BVSM3O6BY7ANYNTIQJKI77T5U6563A5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMRZHE4DEOJQGE3KM4TFMFZW63VGNVQW45LBNSSWK5TFNZ2KYZTPN52GK4S7MNWGSY3L#issuecomment-6299829016>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BVSM3O23KDAN5UNJF74K45L5U6563AVCNFSNUABFKJSXA33TNF2G64TZHM4TMNJUGE2TMNBZHNEXG43VMU5TKOJQG4ZTANBWHE42C5QC>
.
You are receiving this because you are subscribed to this thread.Message
ID: <openai/codex/issues/55014/6299829016 ***@***.***>
Additional Windows incident and verified recovery, observed on 2026-11-18.
Installed package: OpenAI.Codex 26.1111.2228.0 (Windows package version, not an About-dialog version).
Read-only findings before recovery:
The app's list_projects tool returned ChatGPT projects but no local projects; existing local chats remained visible with working directories.
.codex-global-state.json was valid JSON with "local-projects": {}.
state_5.sqlite still contained seven project rows and their root paths. All seven primary directories existed. PRAGMA quick_check returned "ok".
Startup logs reported "Local app-server project migration completed projectCount=7" while the frontend list still contained no local projects.
A full process shutdown and restart did not restore the list.
A case-specific recovery succeeded: with the desktop app fully closed and the original global state backed up, we reconstructed only local-projects from the surviving database records, preserving project IDs, names, root paths, and timestamps. After reopening, list_projects returned all seven original local projects and the user confirmed visibility. This was not a product fix. Conversation contents and every historical chat-to-project association were not audited.
The operation that emptied local-projects was not captured. We cannot attribute this incident to an update, account switch, or unclean exit. Recovery helpers also encountered sandbox write-permission failures; these occurred during recovery and are not evidence of the original cause.
Please investigate reconciliation when durable project records exist but the local frontend registry is empty, and consider a supported recovery action that preserves existing IDs and associations.
Posted by an AI assistant at the user's request. No private project names, local paths, account IDs, chat contents, raw logs, or database/configuration files are included.
appIssues related to the Codex desktop appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archivingwindows-osIssues related to Codex on Windows systems
Activity
github-actions commentedon Oct 18, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
tinghaozhang505-prog commentedon Oct 18, 2026
I am seeing a closely related failure on Codex Desktop 26.1013.4894.0.
Two previously established local projects disappeared while their source directories remained intact and usable.
I performed read-only local inspection without re-adding the projects or modifying the Codex database/state.
The inspection found that historical index/cache data still survives locally, including 17 potentially related conversation-cache records with 221 message nodes. However, the former local project mappings could not be recovered from the currently readable state, and I could not confirm corresponding native Codex rollout/execution sessions for the affected project directories.
The recovered readable conversations appear to be ChatGPT-origin cached conversations rather than confirmed native Codex execution sessions.
This may represent a more severe variant of the same local project-state / migration problem rather than a sidebar-only visibility issue.
I have retained sanitized forensic notes and local backups. I can provide specific non-sensitive diagnostic fields if maintainers indicate what would be useful.
yl0911 commentedon Oct 20, 2026
I also encountered this problem. After it was fixed, the system restarted and the problem occurred again.
tinghaozhang505-prog commentedon Oct 20, 2026
ThalamicBarrel commentedon Oct 20, 2026
Additional diagnostic findings and successful local recovery
This report adds measured local-state evidence and a successful manual recovery for the missing local Projects symptom.
Environment inspected
OpenAI.Codex 26.1013.4894.0. The exact About-dialog version was not captured.Observed sequence before recovery
list_projectsstill returned ChatGPT-origin projects, but no local projects.This is an observed incident sequence, not a deterministic reproducer. The original system error and the exact operation that emptied the project registry were not captured.
Initial read-only findings
The preserved pre-repair snapshot showed:
.codex-global-state.jsonwas readable, with"local-projects": {}.thread-project-assignmentswas absent.app-server-project-id-by-legacy-project-id-by-hostwas absent.projectsMigrated: trueandthreadAssignmentsMigrated: false.state_5.sqlitestill contained 25 project definitions, including project-root records.threads.project_idvalues were populated in that snapshot.PRAGMA quick_checkreturnedok.The absence of SQL project memberships does not establish that the restart cleared them: historical associations were also stored in legacy global-state mappings. The relevant mismatch was an empty frontend project registry despite surviving project definitions and readable conversation storage.
What actually restored access
The following was a case-specific manual recovery with backups, not a product fix:
Two recovery attempts did not complete the frontend-state write: one guard detected an active app or a changed state file; another helper stopped during desktop shutdown. Running the final configuration-only step from a temporary, non-recurring Windows Task Scheduler process allowed it to finish independently of the desktop app. That temporary task was removed afterward. These are recovery-execution observations, separate from the original failure trigger.
Verified outcome
ok.config.tomlhad the same SHA-256 immediately before and after that final operation. This comparison is limited to that interval.The full content of every conversation was not audited, and not every historical folder reference was still available on disk.
Investigation request
Please investigate global-state loading/persistence and project-migration reconciliation around an unclean exit. In particular, when durable project rows exist but
local-projectsand legacy mappings are empty or absent, the app should expose a supported reconciliation/recovery path rather than silently presenting an empty local Projects list.The recovery succeeded, but the cause of the original registry loss and the laptop restart remains undetermined. This comment contains aggregate diagnostics only; no conversations, raw databases/configuration files, personal project names, filesystem paths, credentials, or private thread/project IDs are attached.
tinghaozhang505-prog commentedon Oct 21, 2026
medbezpeka commentedon Nov 18, 2026
Additional Windows incident and verified recovery, observed on 2026-11-18.
Installed package: OpenAI.Codex 26.1111.2228.0 (Windows package version, not an About-dialog version).
Read-only findings before recovery:
A case-specific recovery succeeded: with the desktop app fully closed and the original global state backed up, we reconstructed only local-projects from the surviving database records, preserving project IDs, names, root paths, and timestamps. After reopening, list_projects returned all seven original local projects and the user confirmed visibility. This was not a product fix. Conversation contents and every historical chat-to-project association were not audited.
The operation that emptied local-projects was not captured. We cannot attribute this incident to an update, account switch, or unclean exit. Recovery helpers also encountered sandbox write-permission failures; these occurred during recovery and are not evidence of the original cause.
Please investigate reconciliation when durable project records exist but the local frontend registry is empty, and consider a supported recovery action that preserves existing IDs and associations.
Posted by an AI assistant at the user's request. No private project names, local paths, account IDs, chat contents, raw logs, or database/configuration files are included.