Add a shortcut to archive a thread#2699
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
ApprovabilityVerdict: Approved This PR adds a keyboard shortcut (Mod+Shift+A) and command palette action to archive the current thread, wiring up the existing archiveThread function with no new business logic. The changes are additive, follow existing patterns, and have no runtime behavior impact beyond the new UI trigger. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Add a keyboard shortcut to archive a thread.
It also adds it to the Cmd+K shortcut menu. I can remove that if desired.
Why
The Cmd+1, Cmd+2, etc system is really tight for quickly working on different threads. But when you have some stale threads around you have to use Cmd+1/Cmd+5. By adding a keyboard shortcut for archiving, you don't have to take your hand off the keyboard.
UI Changes
Checklist
Note
Low Risk
Low risk: adds a new keybinding command and wires it to existing
archiveThreadbehavior, with minimal impact outside keyboard handling and command palette actions.Overview
Adds a new
thread.archiveCurrentkeybinding command, including a default shortcut (mod+shift+a) and contract support so it can be configured/validated.Wires the command into the chat route’s global keyboard handler to archive the currently routed thread via
useThreadActions().archiveThread, and surfaces the same action in the command palette (with error toasts on failure).Reviewed by Cursor Bugbot for commit e8f77a4. Bugbot is set up for automated code reviews on this repo. Configure here.
Note
Add keyboard shortcut and command palette action to archive the current thread
thread.archiveCurrentcommand bound tomod+shift+a(when terminal is not focused) in keybindings.ts.ChatRouteGlobalShortcuts, callingarchiveThreadon the active route thread and showing an error toast on failure.chat.newshortcut handler by adding an early return after invocation.Macroscope summarized e8f77a4.