Skip to content

Existing project grouping disappears after app update and re-login; old threads become projectless #37212

Open

Description

@H2CKKK

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

Version 26.730.61639

What subscription do you have?

ChatGPT Pro

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What issue are you seeing?

Rebuild/recover project assignments after global state corruption

Codex failed to parse both the primary and backup global-state JSON files because they contained NUL bytes, then initialized and migrated an empty state without rebuilding project metadata from the surviving thread database.

After updating the Codex app on Windows and subsequently signing out and back in with the same ChatGPT account, all of my existing Codex threads remain accessible, but their previous local project/workspace organization has disappeared.

The Projects section is empty, while all old threads are displayed together under “Recent.” Selecting “Organize sidebar → By project” does not restore the previous grouping.

I also tried creating a new local project and attaching the exact same folder that was previously associated with those threads. However, the project still shows “No chats” and “0 tasks,” and none of the old threads are reassociated with it.

No error message is displayed. The thread history itself does not appear to be deleted; only the project associations and sidebar grouping are missing.

Additional evidence: When I hover over an old thread in the sidebar, the tooltip still displays the thread’s original project name. This indicates that the thread-level project or workspace metadata is still present. However, the Projects section remains empty, and selecting “Organize sidebar → By project” does not group the threads under those retained project names. This appears to be an inconsistency between the retained thread metadata and the project/sidebar index, rather than a complete loss of project association data.

no-active-thread-019fd526-b077-7503-9df3-48548620de62

What steps can reproduce the bug?

Use the Codex app on Windows with multiple existing threads organized under local projects or workspace folders.
Update the Codex app to the latest version.
Sign out of the app.
Sign back in using the same ChatGPT account.
Open the sidebar and select “Organize sidebar → By project.”
Observe that the Projects section is empty and all existing threads are listed together under “Recent.”
Create a new local project and attach one of the original folders previously used by those threads.
Open the newly created project.
Observe that it shows “No chats” and does not reassociate any of the existing threads

What is the expected behavior?

Existing project and workspace associations should be preserved across app updates and account re-authentication.

When the sidebar is organized by project, existing threads should continue to appear under their original local projects instead of becoming projectless chats.

If project metadata needs to be migrated or rebuilt after an update, the app should automatically restore the associations or provide a supported way to reassign existing threads without losing their organization.

Image

Additional information

The old threads are still accessible, so this does not appear to be conversation data loss.
The original local folders still exist and remain accessible.
Recreating a project with the same local folder path does not restore the previous thread associations.
I have not manually modified the Codex database, session files, or global state files.
Screenshots showing the empty Projects section, the flat Recent list, the sidebar organization setting, and a newly created project showing “No chats” are attached.

A screenshot is attached showing an old thread whose tooltip still displays its original project name, even though that project does not appear in the Projects section.

This appears closely related to:
#19873
#34076

Activity

  1. added
    app
    on Aug 6, 2026
  2. added
    bug
    windows-os
    session
    on Aug 6, 2026
  3. rtohme commented on Aug 7, 2026

    @rtohme

    I'm experiencing the same problem on Codex after updating the unified ChatGPT app to version 26.803.41515 on Windows 10 22H2 (compilation 19045.6466) 64-bit.

  4. ekke commented on Aug 14, 2026

    @ekke

    not the same, but perhaps same reason ?
    #38570
    on MacStudio macOS 26.5.2

  5. zmc1997 commented on Sep 9, 2026

    @zmc1997

    Additional macOS report: two existing tasks appeared under the wrong saved project after signing back in.

    The user reports that both tasks originally belonged to project A. Immediately after re-login, they appeared under project B instead. Other tasks still appear under project A, and both affected conversations remain listed. This differs slightly from the original report: the projects did not disappear entirely; two task associations changed.

    Read-only verification via the app's project/task listing confirms that both affected tasks currently report project B's projectId. The listing also shows that project A and project B are distinct saved project IDs pointing to the same local directory. One affected task is active and the other idle. No pre-login metadata snapshot is available, so the original ownership and timing are user-reported; the current wrong grouping is independently verified.

    Please investigate whether authentication recovery or project rehydration falls back to cwd/path and loses an explicit saved-project ID when multiple projects share a directory. This is a hypothesis, not a confirmed root cause. We have no evidence of NUL-byte corruption or the Windows-specific failure described above in this macOS instance.

    Expected: preserve each task's explicit saved-project association across re-login, including distinct projects sharing a directory. A supported way to repair project membership without interrupting an active task, moving its checkout, or editing internal databases would also help.

    Local names, absolute paths, task IDs, and the screenshot's unrelated conversation content are omitted for privacy. App version was not verified for this report.

  6. GoldenSection0618 commented on Nov 7, 2026

    @GoldenSection0618

    Glad to find that I'm not the only victim.

  7. survivorking715 commented on Nov 9, 2026

    @survivorking715

    wtf...did anyone solve this problem

  8. rtohme commented on Nov 9, 2026

    @rtohme

    wtf...did anyone solve this problem

    I actually asked Codex to fix it itself, and it did.

  9. survivorking715 commented on Nov 9, 2026

    @survivorking715

    How did you do it? I'm about to cry in panic right now QAQ@rtohme

  10. rtohme commented on Nov 9, 2026

    @rtohme

    How did you do it? I'm about to cry in panic right now QAQ@rtohme

    I just described the situation in detail and asked it to diagnose it. It said it was the result of a failed local project-index migration, not lost thread history. So I just asked if it could do something to fix the problem. After working on it for 12 minutes it asked me to quit the app and reopen it, and that was all, project folders were back.

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