Skip to content

[macOS] CLI-created conversations appear in both Recents and their project, even after restarting #49435

Open

Description

@Riki123666

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

Codex desktop app: 26.928.20755 (build 12246) Standalone Codex CLI: 0.159.2 The desktop app's update checker reports that it is up to date.

What subscription do you have?

Prefer not to disclose publicly.

What platform is your computer?

macOS 27.0, arm64 uname -mprs: Darwin 27.0.0 arm64 arm

What issue are you seeing?

Summary

CLI-created conversations can appear simultaneously under their local project and under Recents in the macOS desktop app, even when the sidebar is organized by project.

The duplicate display persists after fully quitting and reopening the desktop app. New CLI conversations created in the affected directory also appear in both locations after the directory has already been added as a desktop project.

Steps to reproduce

  1. Use a local directory that has not yet been added as a project in the desktop app.
  2. Start the standalone Codex CLI from that directory and create a conversation using a harmless test prompt.
  3. Open the desktop app with the sidebar organized by project. The CLI conversation appears under Recents.
  4. Add the same directory as a local project in the desktop app.
  5. The project shows "No chats," while the existing CLI conversation remains under Recents.
  6. Drag the conversation from Recents into the project.
  7. The conversation now appears under the project and remains visible under Recents.
  8. Fully quit and reopen the desktop app. Both entries remain visible.
  9. Create another conversation through the standalone CLI in the same directory. This new conversation also appears under both the project and Recents, without manually dragging it.

Expected behavior

When the sidebar is organized by project, conversations associated with a saved local project should appear under that project without also remaining as apparently ungrouped entries under Recents.

Existing CLI conversations should be associated consistently with the matching local project, and moving a conversation into a project should update its sidebar placement consistently.

Actual behavior

  • Adding the directory as a desktop project does not associate the existing CLI conversations with it.
  • Manually dragging a conversation into the project results in duplicate sidebar entries.
  • Fully quitting and reopening the app does not remove the duplicate display.
  • Subsequent CLI conversations created in the affected directory also appear in both locations.

Additional observations

Read-only inspection through the desktop app's thread-list tooling reports a single matching conversation with a valid project assignment after it is moved. The visible sidebar nevertheless displays it in both locations.

This reproduction used a normal local directory that is not a Git repository. No manual database edits were performed.

I initially observed the issue when CLI conversations existed before the directory was added as a desktop project. I have not established that creation order is the root cause, and I have not tested this in a fresh profile.

Real directory paths, project names, conversation contents, account details, and thread IDs have been omitted for privacy.

What steps can reproduce the bug?

  1. Choose a local folder that has not yet been added as a project in the Codex desktop app. In my reproduction, this was a non-Git directory.
  2. Start the standalone Codex CLI from that folder.
  3. Create a conversation using a short, harmless test prompt.
  4. Open the desktop app with the sidebar organized by project. Confirm that the CLI conversation appears under Recents.
  5. Add the same folder as a local project in the desktop app.
  6. Observe that the project shows "No chats," while the existing CLI conversation remains under Recents.
  7. Drag the conversation from Recents into the new project.
  8. Observe that the conversation now appears under both the project and Recents.
  9. Fully quit the desktop app and reopen it. The duplicate display remains.
  10. Create another conversation through the standalone CLI in the same folder. This new conversation also appears under both the project and Recents, without manually dragging it.

These steps were observed in my existing installation; I have not tested them in a fresh profile.

The conversations used short test prompts. No token-limit or context-window error was observed.

Private folder paths, conversation contents, and session IDs are omitted for privacy. No manual database edits were performed.

What is the expected behavior?

When the sidebar is organized by project:

  • CLI-created conversations whose working directory matches a saved local project should be grouped under that project.
  • Adding an existing directory as a project should associate its existing CLI conversations consistently.
  • Moving a conversation into a project should remove its ungrouped entry from Recents, so the same conversation is not displayed twice.
  • Project grouping should remain consistent after restarting the app and when creating additional CLI conversations in the same directory.

Additional information

  • Reproduced with Codex desktop app 26.928.20755 (build 12246) and standalone Codex CLI 0.159.2.
  • The affected directory is a local folder that is not a Git repository.
  • Fully quitting and reopening the desktop app does not remove the duplicate display.
  • New CLI conversations created in the affected directory also appear under both the project and Recents, without manual dragging.
  • Read-only inspection through the desktop app's thread-list tooling reports a single matching conversation with a valid project assignment, while the visible sidebar displays it in both locations.
  • No manual database edits were performed.
  • The initial CLI conversations were created before the directory was added as a desktop project. I have not established creation order as the root cause or tested this in a fresh profile.
  • Private paths, project names, conversation contents, account details, and thread IDs have been omitted.

Activity

  1. added
    app
    on Sep 30, 2026
  2. added
    bug
    session
    on Sep 30, 2026
  3. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

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

    Powered by Codex Action

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

    appbugsession

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions