Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): open View PR externally with modifier click #7099

Closedstephenjason89(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/7099/headopened View on GitHub

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

    1. coderabbitai[bot](GitHub profile, opens in a new tab)commented

      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 Plus

      Run ID: a2e5b321-a8be-4e45-9496-daabf83019a7

      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

      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.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched

    3. Approvability

      Verdict: Approved b9662af

      Simple UI enhancement adding cmd/ctrl+click support to open PRs in external browser instead of in-app. Uses an existing utility function with a straightforward boolean parameter addition - low risk and self-contained.

      You can customize Macroscope's approvability policy. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Note

      This comment is posted by Julius' dot

      This changes Command/Control-click behavior in both View PR actions, but the PR has no client evidence of either interaction. Under the verification rule, please add a short before/after recording showing plain clicks staying in the panel and modifier clicks opening externally, then request reconsideration.

    5. juliusmarminge closed this

Sign in to join this conversation.