[app][Windows] Project sidebar thread list can remain out of recency order
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, andrecency_at_msvalues; 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
- Open a local project in the Codex Windows app.
- Have multiple tasks created over time in that project. This is easiest to observe with an hourly automation that creates similarly named tasks.
- Start or continue turns in an older manual task and allow newer automation tasks to start/finish.
- Inspect the task order under the project in the sidebar.
- Compare it with a fresh
thread/listresult usingsortKey: "recency_at", or with:
``sql``
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;
- 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
- This is about task/thread ordering within a project, not ordering of the project groups themselves.
- The affected tasks were not pinned; the pin icon shown on hover is an action, not pinned state.
- A screenshot is available showing an older manually named task interleaved between a sequence of automation tasks with the same title.
- Related but different reports found before filing: #31836 and #33077 concern project-group sorting controls, not stale ordering of threads within one project.
2 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
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/listresult while the normal project-grouped sidebar remains stale—has been added to #36300 in https://github.com/openai/codex/issues/36300#issuecomment-5204828979.Closing this issue as a duplicate of #36300.