What changed#
- Preserve the existing plain-click behavior that opens a thread's pull request in the right panel.
- Open the pull request in the external browser when the View PR quick action is Command-clicked or Control-clicked.
- Apply the same modifier behavior to the View PR dropdown action.
Why#
PR links elsewhere in T3 Code already preserve native modifier-click semantics. The View PR shortcut is rendered as a button, so it needs to explicitly route modifier clicks through the external opener.
Impact#
Users can keep the current thread visible while opening its pull request externally with the familiar Command/Control-click gesture. There is no visual change, so before/after images are not applicable.
Validation#
vp test run apps/web/src/lib/openPullRequestLink.test.ts apps/web/src/components/GitActionsControl.logic.test.ts (77 tests passed)
vp run typecheck from apps/web
Model: GPT-5
Harness: Codex desktop
Note
Open pull request externally in 'GitActionsControl' when using a modifier click#
Adds modifier-click support to the "View PR" action so users can open a pull request in the browser instead of in-app. The openExistingPr callback now accepts an openExternally boolean; when true, it skips onOpenPullRequest and opens the PR URL via shell using openPullRequestLink. Both the quick action handler (runQuickAction) and menu item handler (openDialogForMenuItem) now receive the click MouseEvent and pass the result of shouldOpenPullRequestExternally(event) to openExistingPr.
Macroscope summarized b9662af.
Note
Low Risk
Small UX routing change in GitActionsControl with no auth or data handling impact; default click behavior is unchanged.
Overview
View PR in git actions now matches PR link behavior elsewhere: plain click still opens in the thread side panel when onOpenPullRequest is available; Cmd/Ctrl+click forces the PR URL through openPullRequestLink instead of the in-app handler.
The quick-action button and dropdown View PR menu item pass the click MouseEvent into openExistingPr via shouldOpenPullRequestExternally(event).
Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit b9662af7986481aed90735da0be0e86eafbee833. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).
Closes #7250
Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
a2e5b321-a8be-4e45-9496-daabf83019a7You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
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