Skip to content

Add middle-click close for right panel tabs#3161

Open
huxcrux wants to merge 1 commit into
pingdotgg:mainfrom
huxcrux:t3code/feature/right-panel-middle-click-close-tabs
Open

Add middle-click close for right panel tabs#3161
huxcrux wants to merge 1 commit into
pingdotgg:mainfrom
huxcrux:t3code/feature/right-panel-middle-click-close-tabs

Conversation

@huxcrux

@huxcrux huxcrux commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

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

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Cursor Bugbot is generating a summary for commit 37519c2. Configure here.

@coderabbitai

coderabbitai Bot commented Jun 19, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 2370fa56-de43-4845-9f60-47308c4600c2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot added vouch:unvouched PR author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Jun 19, 2026
@macroscopeapp

macroscopeapp Bot commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched PR author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant