Skip to content

[Bug]: Project picker jump shortcuts keep their unfiltered numbers after typing #31153

Closed

Description

@smirea

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. Have more than a few projects.
  2. Press ⌘N (or open "New thread in..." in the command palette) to open the project picker.
  3. Type a letter, such as s.

Expected behavior

The jump shortcuts follow the rows as they are shown: the first result is ⌘1, the second ⌘2, and so on.

Actual behavior

Each row keeps the number it had before filtering. With s typed, the three remaining rows show ⌘8, ⌘6, ⌘9, in that order. Projects past the ninth row have no number at all, even when they are the only match. Pressing ⌘1 does nothing when the row that had ⌘1 is filtered out.

The numbers are assigned from the unfiltered opening order, but the filter then re-ranks rows by match quality without renumbering them (enumerateCommandPaletteItems in CommandPalette.tsx, before filterCommandPaletteGroups runs).

Impact

Minor bug or occasional failure

Version or commit

main @ df70f50

Environment

macOS, T3 Code desktop

Screenshots, recordings, or supporting files

The ⌘N picker after typing s:

Image
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