feat(web): add usage page keybinding - #9434
Conversation
ApprovabilityVerdict: Not approved Macroscope's review found this PR not approvable — This PR adds a new active Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit bf7eedc. Configure here.
bf7eedc to
8553f4f
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe PR adds the ChangesUsage shortcut
Estimated code review effort: 3 (Moderate) | ~20 minutes Merge Risk: ⚪ Minimal · up to This change adds a configurable shortcut for opening the Usage page and closes active overlays before navigating. No current merge-blocking risk remains. Sequence Diagram(s)sequenceDiagram
participant Keyboard
participant CommandPalette
participant ShortcutResolver
participant UsagePage
Keyboard->>CommandPalette: Press mod+u
CommandPalette->>ShortcutResolver: Resolve with focus context
ShortcutResolver-->>CommandPalette: Return usage.open
CommandPalette->>CommandPalette: Prevent default and close
CommandPalette->>UsagePage: Navigate to /usage
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |

NOTE FROM HUMAN
This PR is much more useful in conjunction with #9263 - I added this PR because if provider limits are there, its something I find myself checking frequently.
The rest of this was AI generated
Opening the Usage page currently requires using the sidebar. This adds a configurable
usage.opencommand that defaults tomod+uand stays inactive while the terminal has focus.The existing global keybinding dispatcher now navigates to
/usage, so web and desktop share the behavior without another event listener or navigation path. The keybinding contract, default synchronization, focused tests, and user docs are updated with it.Validation:
vp test run packages/contracts/src/keybindings.test.ts apps/server/src/keybindings.test.ts apps/web/src/keybindings.test.ts apps/web/src/components/settings/KeybindingsSettings.logic.test.tsvp run -F @t3tools/contracts -F @t3tools/shared -F @t3tools/web -F t3 typecheckvp lintvp fmt --checkNo visual changes.
Generated with gpt-5.6-sol in T3 Code using the Codex harness.
Note
Add
usage.openkeybinding with default modifier-plus-U shortcutusage.openas a static keybinding command and maps it to modifier-plus-U (outside terminal focus) in the default bindingsCommandPalettethat resolves the shortcut, closes the palette, and navigates to/usage; the binding is skipped when the event is already prevented or composingmodelPickerOpenso other bindings also receive the current model-picker visibility stateCommandPaletteshortcut-resolution context now receive an additionalmodelPickerOpenfield — check CommandPalette.tsx for any resolver that does not tolerate the extra fieldMacroscope summarized 7629026.
Note
Low Risk
Low-risk UX addition; outside terminal focus the app now captures
mod+u, which could conflict with any other in-app use of that chord.Overview
Adds a configurable
usage.opencommand (defaultmod+u, inactive while the terminal has focus) so the Usage page is reachable from the keyboard instead of only the sidebar.The command is registered in the keybinding contract and shared defaults, wired in the global shortcut listener in
CommandPaletteto close overlays and navigate to/usage, and covered by contract/server/web tests plus user docs for keybindings and usage.Reviewed by Cursor Bugbot for commit bf7eedc. Bugbot is set up for automated code reviews on this repo. Configure here.
Summary by CodeRabbit
New Features
Mod+Ushortcut to open the Usage page when the terminal is not focused.Documentation