Skip to content

Windows desktop: all local projects disappear and list_projects returns empty after update #55014

Open

Description

@coolbob1970

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?

  1. Use Codex Desktop on Windows with existing local projects and conversations.
  2. Update or restart the desktop application.
  3. Open the Projects section.
  4. Observe that it is empty.
  5. Check Recents: previous conversations remain available.
  6. 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.

Activity

  1. added
    app
    on Oct 18, 2026
  2. added
    bug
    windows-os
    session
    on Oct 18, 2026
  3. github-actions commented on Oct 18, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  4. tinghaozhang505-prog commented on Oct 18, 2026

    @tinghaozhang505-prog

    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.

  5. yl0911 commented on Oct 20, 2026

    @yl0911

    I also encountered this problem. After it was fixed, the system restarted and the problem occurred again.

  6. tinghaozhang505-prog commented on Oct 20, 2026

    @tinghaozhang505-prog
  7. ThalamicBarrel commented on Oct 20, 2026

    @ThalamicBarrel

    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.

  8. tinghaozhang505-prog commented on Oct 21, 2026

    @tinghaozhang505-prog
  9. medbezpeka commented on Nov 18, 2026

    @medbezpeka

    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.

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