[Bug]: Cmd/Ctrl+1–9 thread jumps skip draft threads at the top of the sidebar
Before submitting
- [x] I searched existing issues and did not find a duplicate.
- [x] 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/Ctrlto 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.
Impact
Minor bug or occasional failure
Version or commit
main @ 7396f135ed
Notes
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.