Add middle-click close for right panel tabs#3161
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)
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 Simple, self-contained UI enhancement adding middle-click to close tabs. The logic is trivial (checking mouse button === 1), includes a unit test, and uses existing close functionality with no side effects. You can customize Macroscope's approvability policy. Learn more. |
What Changed
Adds support for closing right panel tabs with a middle mouse click.
This applies to the tab strip in the expandable right panel, including browser preview tabs and singleton surfaces like Diff. Middle-click uses the same close path as the existing tab close button, so existing cleanup behavior is preserved.
Why
Right panel tabs behave like browser/editor tabs, where middle-click is a common shortcut for closing a tab. The previous implementation only allowed closing via the visible close button or context menu, which makes repeated tab cleanup slower.
UI Changes
No static visual changes.
Interaction change: middle-clicking a right panel tab now closes that tab.
Checklist
Note
Cursor Bugbot is generating a summary for commit 37519c2. Configure here.