Skip to content

[app][Windows] Project sidebar thread list can remain out of recency order #37266

Closed as duplicate

Description

@BenLampson

What version of the Codex App are you using (from the About dialog / installed package)?

Codex App 26.730.8199.0 (Windows package OpenAI.Codex_26.730.8199.0_x64__2p2nqsd0c76g0)

Bundled/local CLI observed: codex-cli 0.133.0

What platform is your computer?

Windows x64, OS build 26200

What issue are you seeing?

The task/thread list inside a project can remain visibly out of order after thread activity changes.

In one project with several hourly automation-created tasks (many sharing the same title) and an older manually created task, the manual task appeared between newer automation tasks instead of at the position implied by the current thread recency ordering.

Read-only inspection showed:

  • none of the affected project threads were pinned;
  • the app-server/state database had distinct created_at_ms, updated_at_ms, and recency_at_ms values;
  • thread/list / the app task-list API currently returned the non-pinned threads in descending recency order;
  • the visible project sidebar order captured in the UI did not match that order.

This suggests the desktop sidebar may merge incremental thread updates without re-sorting the project group's existing rows, leaving a stale order until a later reload/rebuild.

Steps to reproduce

  1. Open a local project in the Codex Windows app.
  2. Have multiple tasks created over time in that project. This is easiest to observe with an hourly automation that creates similarly named tasks.
  3. Start or continue turns in an older manual task and allow newer automation tasks to start/finish.
  4. Inspect the task order under the project in the sidebar.
  5. Compare it with a fresh thread/list result using sortKey: "recency_at", or with:
    SELECT id, created_at_ms, updated_at_ms, recency_at_ms
    FROM threads
    WHERE archived = 0 AND cwd = <project cwd>
    ORDER BY recency_at_ms DESC;
  6. Observe that the sidebar can retain a different order from the freshly sorted result.

Expected behavior

For non-pinned threads, the visible sidebar order should always match the selected/documented sort key after incremental updates.

If the sidebar uses recency_at DESC, it should reinsert/re-sort a row whenever its recency changes. Background output that only advances updated_at should not reorder rows.

Actual behavior

The project group can display a stale mixed ordering even though a fresh backend listing is correctly sorted.

Additional information

Activity

  1. added
    bugSomething isn't working
    appIssues related to the Codex desktop app
    windows-osIssues related to Codex on Windows systems
    sessionIssues involving session (thread) management, resuming, forking, naming, archiving
    on Aug 6, 2026
  2. github-actions commented on Aug 6, 2026

    @github-actions
    Contributor
  3. BenLampson commented on Aug 6, 2026

    @BenLampson
    Author

    After reviewing the suggested reports, this appears to be another reproduction path for #36300, with #36699 describing the closest matching behavior.

    The additional Windows-specific evidence from this report—including a correctly sorted fresh thread/list result while the normal project-grouped sidebar remains stale—has been added to #36300 in #36300 (comment).

    Closing this issue as a duplicate of #36300.

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, archivingwindows-osIssues related to Codex on Windows systems

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions