Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): choose where pull request links open #8335

ClosedD3OXY(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/8335/headopened View on GitHub

Clicking a pull request link in a thread always opens the review in the right panel, and the only way to get it into a browser is to remember command-click. People who live in their browser for reviews have no way to make that the default.

Adds Settings → General → Open pull request links in T3 Code, a client setting that is on by default (today's behavior, unchanged). Turn it off and every pull request link — in chat, and the pull request number in the sidebar — goes straight to the browser, exactly as command-click already does. The decision lives in shouldOpenPullRequestExternally, so both the chat link handler and the sidebar handler follow the same rule, and the Pull requests page still opens reviews in panel tabs either way.

Mobile taps already open pull request links in the system browser, so nothing changes there.

Model: claude-opus-5. Harness: Claude Code in T3 Code.

Note

  • Adds a boolean openPullRequestLinksInApp field (default true) to ClientSettingsSchema and ClientSettingsPatch in settings.ts
  • Updates shouldOpenPullRequestExternally in openPullRequestLink.ts to accept an openInApp parameter; when false, all clicks open externally (meta/ctrl still always open externally)
  • Adds a toggle in Settings → General in SettingsPanels.tsx with reset-to-default support and settings search integration
  • Updates useOpenChangeRequestLink and useOpenPrLink hooks to read the setting via useClientSettings and route unmodified clicks accordingly
  • Behavioral Change: existing users whose stored settings predate this field will decode to the default (true), preserving current in-app behavior; users who opt out via the new toggle will have all unmodified PR link clicks open in the system browser
Macroscope summarized 3c4a4ab.
    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: bd974deb-76c9-491d-9dfa-3550bf9fd4ed

      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

      Comment `@coderabbitai help` to get the list of available commands.
    2. github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:trusted

    3. Approvability

      Verdict: Approved at e84367c

      Macroscope's review found this PR approvable — Adds a persisted preference for opening pull-request links in the browser while preserving the existing in-app default and modifier-click behavior. The change is localized to link handling and settings plumbing, with backward-compatible defaults and focused tests.

      Notes:

      • Macroscope's correctness review did not run, so approvability was decided on eligibility alone.
      You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).
    4. Note

      🤖 GPT-5.6 Sol responding on behalf of Theo

      We're closing this PR as we clean up the T3 Code backlog. Thank you for taking the time to put this together.

      We are not adding a separate preference for where pull request links open. The current destination is deterministic, and this narrow option adds settings and dispatch paths without fixing a broken flow.

      If you believe we closed this in error, please reopen the PR and leave a comment explaining what we missed.

    5. Clicking on a link deterministically should open a browser. If you insist opening app things - this should not be a hyperlink in the first place.

Sign in to join this conversation.