Repository navigation
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a narrowly scoped one-file fix that prevents middle-button mouseup defaults on existing panel tabs, addressing Linux primary-selection paste while preserving tab closing and other click behavior. It introduces no schema, security, deployment, default-setting, or static-analysis changes. You can add or adjust custom eligibility rules. Learn more. |
|
Note This comment is posted by Julius' dot Closing because the changed middle-click interaction has no before/after recording, and the PR explicitly says its tests do not verify native primary-selection paste. The verification requirement calls for evidence of that behavior. Add a short Linux recording showing the unintended paste before the fix and a tab closing without pasting after it, then request reconsideration. |
Problem
On Linux, middle-clicking a right panel tab to close it can also paste the primary selection into the focused composer. The tab cancels middle-button mousedown and auxclick, but Chromium pastes on mouseup before auxclick runs.
Fixes #15939.
Change
Reuse the existing middle-button default guard for both mousedown and mouseup, with a name that covers both events. Keep closing in auxclick. This applies to every shared web/Electron right panel tab, including main's draggable tabs. Left and right clicks, activation, close controls, and drag handlers remain unchanged.
Scope and approval
This is a small fix for an unintended paste during the existing middle-click-close action. It qualifies for the focused obvious-bug exception. It changes one file and does not add a broader middle-click policy or address the separate timeline issue #15531.
Verification
Focused checks on the rebased branch passed:
corepack pnpm exec vp test run apps/web/src/components/RightPanelTabs.test.tsx apps/web/src/components/RightPanelTabs.keyboard.test.tsx apps/web/src/rightPanelStore.test.ts, 3 files and 112 tests passed.corepack pnpm --filter @t3tools/web typecheckcorepack pnpm exec vp lint apps/web/src/components/RightPanelTabs.tsx, exit 0 with an existing warning in the untouched effect at line 443.corepack pnpm exec vp fmt --check apps/web/src/components/RightPanelTabs.tsxgit diff --checkThe existing tests cover tab logic and keyboard interactions; they do not prove native primary-selection behavior. Browser use and clipboard access were not authorized, so no Linux native clipboard reproduction or before/after recording is included. The code cancels mouseup at the same event stage as the existing terminal primary-selection guard.
Model: GPT-6.1 Sol, high reasoning effort. Harness: Codex through T3 Code.