Skip to content

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

Closed

Description

@nibarAhmed

Before submitting

  • 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

  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 @ 7396f13

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions