GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(web): middle-click closing a panel tab no longer pastes the primary selection by MSliwa01 · Pull Request #18860 · pingdotgg/t3code

Conversation

@MSliwa01

@MSliwa01 MSliwa01 commented Oct 12, 2026 •
edited by juliusmarminge
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Middle-clicking a right-panel tab on Linux can paste the primary selection into the focused composer while closing the tab. Cancel the middle-button mouseup as well as mousedown, while keeping the existing auxiliary-click close action and ordinary left/right-button behavior.

This adapts MSliwa01’s fix in #18860 to main’s extracted, memoized tab component. Original commits and author credit are preserved.

Verification:

  • One PR regression retained and rewritten in the existing browser suite; 18 tests across two tab suites pass. Removing the mouseup guard makes the regression fail, and restoring it passes.
  • Scoped web typecheck, lint, formatting, and diff checks pass.
  • Fresh integrated headless Chromium pass against actual base and head with the same synthetic draft: trusted middle-click closes the Files tab in both, but native mouseup defaultPrevented changes from false to true. The draft remains unchanged. The page used a locally loaded fallback font because this headless environment initially rendered system fonts with zero-width glyphs; no product source or behavior was altered for the captures.

The headless browser has no X11/Wayland primary-selection clipboard, so these captures prove event cancellation and tab closure, not native selection-paste suppression. Native Linux/Electron still needs a human check. macOS, Windows, iOS, and Android were not run; this change is confined to the shared web/desktop panel tabs.

Original contributor Linux/Electron evidence, inspected and retained for attribution (not recaptured at the updated head):

Contributor before: closing a tab pastes selected text
Contributor after: closing the tab leaves the composer empty

Contributor native before/after recording

Fresh headless before (mouseup uncancelled):

Headless base after closing the tab

Before interaction recording

Fresh headless after (mouseup cancelled):

Headless head after closing the tab

After interaction recording

Independent full-diff adversarial review round 1: Claude Opus 5.5 and GPT-6-Sol found no code blockers. Publication feedback about stale commands, counts, and contributor recordings has been addressed in this body. Native clipboard verification remains explicitly outstanding.

Maintainer takeover: Codex GPT-6-Astra (tests), GPT-6.1-Sol (implementation), and independent Claude Opus 5.5 / Codex GPT-6-Sol reviews through T3 Code; primary orchestration through the Codex harness.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

astrovm reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@MSliwa01 @claude
fix(web): middle-click closing a panel tab no longer pastes the prima…
07f1018
…ry selection

On Linux, middle-clicking a right panel tab closed it and also pasted the
primary selection into the focused composer. The tab cancelled the middle
button's mousedown and auxclick, but Chromium only skips the primary
selection paste when the mouseup itself is cancelled.

Cancel the middle mouseup with the same guard as mousedown.

Fixes pingdotgg#15939

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:XS 0-9 changed lines (additions + deletions). labels Oct 12, 2026
@macroscopeapp

macroscopeapp Bot commented Oct 13, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 07f1018

Macroscope's review found this PR approvable — This is a small, self-contained fix that prevents the unintended primary-selection paste during middle-click tab closure while preserving the existing close behavior and ordinary left-click handling. A focused regression test covers the new mouseup behavior and the production change introduces no schema, configuration, or static-analysis risk.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

macroscopeapp[bot]
macroscopeapp Bot approved these changes Oct 13, 2026
View reviewed changes
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Warning

Review limit reached

Only developers with an assigned seat can use this organization's usage-based review budget, and seats here are assigned manually. Ask an admin to assign a seat, or change the review continuation mode in Billing.

Next included review available in 11 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 10 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ed211306-da5c-4ecd-a02f-e3dbe3939ae5
📥 Commits

Reviewing files that changed from the base of the PR and between 07f1018 and 6af30ee.

📒 Files selected for processing: 2
  • apps/web/src/components/RightPanelTabs.keyboard.browser.test.tsx
  • apps/web/src/components/RightPanelTabs.tsx

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Path: .coderabbit.config.ts
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: a72e0994-bb9f-457c-be41-29bb4ab329cb
📥 Commits

Reviewing files that changed from the base of the PR and between ffb4af8 and 07f1018.

📒 Files selected for processing (2)
  • apps/web/src/components/RightPanelTabs.keyboard.test.tsx
  • apps/web/src/components/RightPanelTabs.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

Right-panel tabs now prevent the middle-button default on mouse down and mouse up. Auxiliary clicks still close tabs. A regression test checks both defaults, the close callback, and left-button mouse-up behavior.

Changes: Right-panel middle-click handling

Layer / File(s) Summary
Prevent middle-click defaults and verify tab close
apps/web/src/components/RightPanelTabs.tsx, apps/web/src/components/RightPanelTabs.keyboard.test.tsx
The tab handler prevents the middle-button default on mouse down and mouse up. The test checks both events, confirms auxiliary click closes the Files tab once, and verifies left-button mouse up is not prevented.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested reviewers: bil0000

Merge Risk: ⚪ Minimal · up to 07f10

Middle-clicking a right-panel tab is intended to close it without pasting selected text into the composer. The handler preserves tab closure and prevents the middle-button default, with no concrete merge-blocking issue identified.

Pre-merge checks: Passed 4
Check name Status Explanation
Linked Issues check Passed The change meets #15939. RightPanelTabs now prevents the middle-button mouseup in addition to mousedown, while onAuxClick still closes the tab. The added regression test verifies middle-button…
Out of Scope Changes check Passed The diff is limited to RightPanelTabs middle-button handling and its regression test. It preserves the existing close action and does not modify unrelated click behavior. The separate timeline issue…
Title check Passed The title clearly and concisely describes the primary fix: preventing middle-click tab closure from pasting the primary selection.
Description check Passed The description clearly covers the problem, implementation, verification results, limitations, and affected platforms. It does not explicitly link the triaged issue or provide a maintainer approval co…
Full details: Linked Issues check

Explanation

The change meets #15939. RightPanelTabs now prevents the middle-button mouseup in addition to mousedown, while onAuxClick still closes the tab. The added regression test verifies middle-button cancellation, one tab close, and unchanged left-button mouseup behavior. The reported Linux recording and test results support the expected composer behavior.

Full details: Out of Scope Changes check

Explanation

The diff is limited to RightPanelTabs middle-button handling and its regression test. It preserves the existing close action and does not modify unrelated click behavior. The separate timeline issue #15531 is not implemented, as required by the stated scope.

Full details: Description check

Explanation

The description clearly covers the problem, implementation, verification results, limitations, and affected platforms. It does not explicitly link the triaged issue or provide a maintainer approval comment, but it explains the focused scope and includes relevant prior-fix context.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

coderabbitai[bot]
coderabbitai Bot approved these changes Oct 13, 2026
View reviewed changes
@juliusmarminge juliusmarminge self-assigned this Oct 19, 2026
@juliusmarminge

juliusmarminge commented Oct 19, 2026

Copy link
Copy Markdown
Member

Taking over this one as maintainer for batch composer-chat-03. I’ll preserve the original PR and author credit, adapt the fix and regression coverage to current main, and verify the web interaction headlessly. No merge in this pass.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

juliusmarminge added 3 commits October 19, 2026 02:42
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/15939-middle-clic…
dbd5bc2
…k-paste

# Conflicts:
#	apps/web/src/components/RightPanelTabs.tsx
@juliusmarminge
test(web): verify tab mouse defaults across buttons
d61d331
@juliusmarminge
Merge remote-tracking branch 'origin/main' into fix/15939-middle-clic…
6af30ee
…k-paste
@juliusmarminge
juliusmarminge merged commit 3c4df28 into pingdotgg:main Oct 20, 2026
25 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge mentioned this pull request Oct 20, 2026
[Bug]: Middle-click closing a right panel tab also pastes the primary selection into the composer on Linux #15939
Closed
2 tasks done
@LukasKH LukasKH mentioned this pull request Oct 27, 2026
[Bug]: Middle-click paste ignores the system setting that disables it on Linux (gtk-enable-primary-paste) #26150
Closed
2 tasks done
@olafura olafura mentioned this pull request Nov 7, 2026
test(features): ledger upstream T3 Code through 30d0138540 hal-c2/hal-c2#1125
Merged
@juliusmarminge juliusmarminge mentioned this pull request Nov 13, 2026
fix(web): middle-clicking empty chat space on Linux no longer pastes into the composer #36436
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@coderabbitai coderabbitai[bot] coderabbitai[bot] approved these changes
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@juliusmarminge juliusmarminge

Labels

size:XS 0-9 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@MSliwa01 @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.