You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Cmd/Ctrl+1–9 thread jumps skip draft threads at the top of the sidebar #38623
I searched existing issues and did not find a duplicate.
I included enough detail to reproduce or investigate the problem.
Area
apps/web
Steps to reproduce
In the desktop app, start a new thread and type something without sending it, so it shows as a draft at the top of the sidebar.
Hold Cmd/Ctrl to show the thread jump hints.
Press Cmd/Ctrl+1.
Expected behavior
The draft is the first row in the sidebar, so it gets the 1 hint and Cmd/Ctrl+1 opens it. The keybindings docs say mod+1 through mod+9 "jump to the first nine threads", and the same page calls drafts "draft threads". Next/previous thread also step through drafts.
Actual behavior
Drafts get no hint. Cmd/Ctrl+1 opens the first sent thread below the drafts, so the numbers don't match the visible order. Next/previous thread skip drafts too.
Jumps, hints, and next/previous all index orderedThreadKeys in apps/web/src/components/Sidebar.tsx, which holds only server threads. SidebarDraftBlock renders drafts above them from the composer draft store, so they never enter that list.
Proposed fix: number rows in visible order, drafts first, then threads, by building one ordered row list that the jump hints, mod+1–9, and next/previous all share. The trade-off is that opening a draft shifts the thread numbers below it by one, which matches what the sidebar shows.
Activity
test(web): numbered thread jumps number the unsent draft at the top