Skip to content

Codex Desktop project sidebar omits older unarchived threads #20608

Open

Description

@chuanyuj

What issue are you seeing?

Codex Desktop stopped showing some older project threads in the project sidebar after restart, even though the underlying local records still existed and were not archived.

Restarting the app and refreshing local metadata did not restore the missing threads. This appears to be a sidebar listing, indexing, or pagination issue rather than data loss.

Steps to reproduce

  1. Use Codex Desktop with multiple threads under a project.
  2. Restart the app after the project has accumulated older threads.
  3. Observe that only recent threads appear under the project.
  4. Verify that the missing threads still exist locally and are not archived.

Expected behavior

Unarchived project threads should remain visible and searchable after restart. If the sidebar index becomes stale, Codex should reconcile it automatically or provide a supported reindex or repair path.

Additional information

This appears related to #20419 and #17540, although the observed case did not recover after restart or a metadata refresh.

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on May 1, 2026
  2. chuanyuj commented on May 1, 2026

    @chuanyuj
    Author

    I reviewed the suggested potential duplicates. #20419 appears to be the closest match, while #20254 and #20493 differ in platform or recovery path.

    This report may belong to the same broader sidebar and indexing issue family, but the observed case did not recover after restart or a metadata refresh. Maintainers may consolidate it into a canonical issue if appropriate.

  3. mu-liang-ai commented on May 10, 2026

    @mu-liang-ai

    I can reproduce what appears to be the same Desktop sidebar recent-window bug.

    Observed:

    • The sidebar currently shows about 49 visible threads total across all projects.
    • Creating a new thread appears to push one older thread out of the visible sidebar, even if it belongs to another project.
    • The missing older threads are not deleted and not archived.
    • They still exist in ~/.codex/state_5.sqlite and their rollout JSONL files still exist under ~/.codex/sessions.
    • For one affected project, an older unarchived thread ranks around feat: don't close program when out of credits or when API key is missing #115 by updated_at among active local threads, so it falls outside the apparent global recent window.

    This looks like the Desktop sidebar is grouping only a globally preloaded recent subset, rather than querying/paginating per project/cwd when a project is expanded.

    Expected:
    When expanding a project, Codex Desktop should fetch that project’s full local thread history by cwd, or continue paginating until matching project threads are loaded. A user-configurable recent thread preload limit would also help as a mitigation.

  4. changed the title [-]Codex Desktop macOS project sidebar hides unarchived local threads even though SQLite/session files are intact[/-] [+]Codex Desktop project sidebar omits older unarchived threads[/+] on Aug 26, 2026
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 appbugSomething isn't workingsessionIssues involving session (thread) management, resuming, forking, naming, archiving

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions