t3code icon indicating copy to clipboard operation
t3code copied to clipboard

[Bug]: Cmd/Ctrl+1–9 thread jumps skip draft threads at the top of the sidebar

Open nibarAhmed opened this issue 2 weeks ago • 0 comments

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

  1. 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.
  2. Hold Cmd/Ctrl to show the thread jump hints.
  3. 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.

nibarAhmed avatar Nov 18 '26 13:11 nibarAhmed