Summary
A newly created project with no threads sorts to the bottom of the sidebar because the default sort (updated_at) derives its timestamp from child threads. A project with zero threads has no timestamp and falls below all other projects.
Expected behavior
New projects should appear at the top of the sidebar immediately after creation, even before any threads are started.
Current behavior
New projects appear at the bottom because getProjectSortTimestamp() in Sidebar.logic.ts returns Number.NEGATIVE_INFINITY for projects with no threads.
Suggested fix
Use the project's own createdAt timestamp as a fallback when a project has no threads, so it sorts alongside recently-active projects.
Context
From TODO.md — "New projects should go on top". Triaged as a quick fix.
🤖 Filed by Claude Code
Summary
A newly created project with no threads sorts to the bottom of the sidebar because the default sort (
updated_at) derives its timestamp from child threads. A project with zero threads has no timestamp and falls below all other projects.Expected behavior
New projects should appear at the top of the sidebar immediately after creation, even before any threads are started.
Current behavior
New projects appear at the bottom because
getProjectSortTimestamp()inSidebar.logic.tsreturnsNumber.NEGATIVE_INFINITYfor projects with no threads.Suggested fix
Use the project's own
createdAttimestamp as a fallback when a project has no threads, so it sorts alongside recently-active projects.Context
From
TODO.md— "New projects should go on top". Triaged as a quick fix.🤖 Filed by Claude Code