Skip to content

Chat Tree lost all my chats #23966

Open
Open

Description

@seanmccrary76

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

26.519.22136

What subscription do you have?

Enterprise

What platform is your computer?

Microsoft Windows NT 10.0.26200.0 x64

What issue are you seeing?

“Project sidebar says No chats for projects whose threads exist and are returned by thread/list with exact cwd, because sidebar groups are built only from the first recent page.”

What steps can reproduce the bug?

Feedback ID: 019e4cd9-502a-7873-ae28-7f3b595d3bb6

What is the expected behavior?

No response

Additional information

No response

Activity

  1. added
    bugSomething isn't working
    app-serverIssues involving app server protocol or interfaces
    on May 22, 2026
  2. github-actions commented on May 22, 2026

    @github-actions
    Contributor
  3. omarpinarecords commented on May 22, 2026

    @omarpinarecords

    just add the environments and select the existing folders. https://developers.openai.com/codex/app/local-environments.

  4. seanmccrary76 commented on May 22, 2026

    @seanmccrary76
    Author

    Thanks. I tried validating this locally, and I don’t think this is just a missing local-environment/project setup issue.

    The existing folders are visible in the Codex sidebar, e.g. Databricks shows as a project, but the sidebar says “No chats.” The underlying history is still present:

    • The session JSONL files exist under ~/.codex/sessions.
    • The thread rows exist in ~/.codex/state_5.sqlite.
    • For Databricks specifically, the real user thread exists:
      thread id: 019e282e-3535-7fe0-8fa9-cd50d886c5a9
      cwd: C:\Users\sean.mccrary\Databricks
      title: “Can you download the git folder structure from https://github.com/databricks/app-templates...”
    • A direct app-server thread/list call with cwd = C:\Users\sean.mccrary\Databricks returns that thread correctly.

    The issue appears to be in the desktop sidebar/project grouping behavior. It seems to build project chat groups only from the first page of recent loaded conversations, rather than querying each saved project folder by cwd. So projects whose chats exist but fall outside that loaded recent window show as “No chats.”

    Adding/selecting existing folders may restore project/environment configuration, but it does not explain why a saved project whose thread exists and is returned by exact cwd lookup still shows no chats.

    Can you confirm whether the sidebar is expected to query project folders directly, or whether this is a regression in the project grouping/recent-thread pagination logic?

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

    appIssues related to the Codex desktop appapp-serverIssues involving app server protocol or interfacesbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions