Repository navigation
Conversation
Fixes pingdotgg#31153 Co-Authored-By: Claude Opus 5.5 <[email protected]> Co-Authored-By: stefan <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Project-picker jump shortcuts now follow the filtered, displayed row order while preserving dedicated shortcuts. The change is limited to picker navigation and leaves the underlying actions unchanged. You can add or adjust custom eligibility rules. Learn more. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Thanks for this. https://git.cafe/pingdotgg/t3code/pulls/31174 makes the same change and is the one being kept. #31174 fixes the same filtered project-picker shortcuts with a smaller production change that preserves the existing root-search suggestions. It also includes a browser regression showing that pressing the shortcut starts a thread in the displayed project. Your regression case covers useful details, including ranked results beyond the original nine-project cutoff and preserving the dedicated No project shortcut. Those remain useful coverage for the fix we keep. Closing as a duplicate. |
Problem
In the desktop project picker (⌘N, or "New thread in..." in the command palette), the ⌘1–⌘9 jump shortcuts are numbered from the unfiltered list. After typing, the remaining rows keep their old numbers in the new ranked order (for example ⌘8, ⌘6, ⌘9). A project past the ninth row has no number even when it is the top match. A number whose row was filtered out does nothing. Fixes #31153.
Change
The picker no longer numbers its rows when it builds them. Its group is marked
jumpShortcuts, andfilterCommandPaletteGroupsnumbers the rows in that group after it filters and ranks them. Rows that have their own shortcut, such as "No project" (chat.newWithoutProject), keep that shortcut and are skipped. The palette's keydown handler already looks up the pressed jump shortcut in the displayed rows, so the visible numbers and the keys now match.Without a query the numbers are the same as before. The rows still keep their opening order while the palette is open (
useOrderWhileOpen), so pinning a row does not move a number to a different row.The "New thread in X" suggestions in the root search copied the child rows' jump numbers. They no longer have them.
Scope and approval
This is a small, focused fix for an obvious bug: the shortcut hints and their keys did not match the rows on screen. It changes only how the picker assigns numbers. #8268 fixed the same bug in the same way and was closed during the cleanup of PRs written with older models, not on its merits.
Verification
CommandPalette.logic.test.ts. It fails onmainand passes with this change. With 13 projects and "No project" in the list, it checks that the unfiltered numbers stay the same, that row 13 has no number, and that typingsnumbers sync-engine, stefan-utils, and scripts as ⌘1, ⌘2, ⌘3 in the order they are shown.vp run check:changed: format, lint, knip, typecheck, and the tests beside the change all pass. The command palette browser tests pass too (10/10).vp run dev:desktop. Jump shortcuts are desktop only (isDesktop). The test data was a copy of real data made withmigrate-dev-db(15 projects).Before (
main): withstyped, sync-engine (top match) has no number, server is ⌘1, stefan-utils is ⌘5, and scripts has no number. Pressing ⌘2 does nothing.After: the same query shows ⌘1–⌘4 from top to bottom.
Pressing ⌘3 then starts a new thread in stefan-utils, the third row:
I did not check this on Windows or Linux. Mobile has no jump shortcuts.
Made with Claude Opus 5.5 in Claude Code.
🤖 Generated with Claude Code