Skip to content

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

Closed
D3OXY wants to merge 2 commits into
pingdotgg:mainfrom
D3OXY:d3oxy/pull-request-link-target
Closed

D3OXY wants to merge 2 commits into
pingdotgg:mainfrom
D3OXY:d3oxy/pull-request-link-target

Conversation

@D3OXY

@D3OXY D3OXY commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

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

Add openPullRequestLinksInApp setting to control where PR links open

  • 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.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

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.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Aug 27, 2026
@macroscopeapp

macroscopeapp Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

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.

@D3OXY
D3OXY force-pushed the d3oxy/pull-request-link-target branch from e84367c to 39d5933 Compare August 27, 2026 14:05
D3OXY added 2 commits August 28, 2026 11:14
Adds Settings → General → "Open pull request links in T3 Code". On (the
default) keeps today's behavior: a pull request link in a thread opens in the
review panel beside the conversation. Off sends every click to the browser,
which is what command-click already did.

Model: claude-opus-5. Harness: Claude Code in T3 Code.
@D3OXY
D3OXY force-pushed the d3oxy/pull-request-link-target branch from 39d5933 to 3c4a4ab Compare August 28, 2026 05:44
@t3dotgg

t3dotgg commented Aug 28, 2026

Copy link
Copy Markdown
Member

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.

@t3dotgg t3dotgg closed this Aug 28, 2026
@smonev

smonev commented Aug 28, 2026

Copy link
Copy Markdown

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.

pechhe added a commit to pechhe/t3code that referenced this pull request Nov 19, 2026
Every upstream update re-fights the fork's edits inside upstream's busiest web
files. The kept fork web features now carry their logic in fork-owned modules;
upstream's files keep imports, hook calls, props, component mounts and one-line
gates. No behaviour or look changes.

Moved out:
- inline code click-to-copy -> chat/CopyableInlineCode.tsx
- composer approval row, drawer and panel -> chat/ComposerPendingApprovalPanel.tsx
- composer Record control and send guard -> chat/useComposerScreenRecording.tsx
- resume compaction model name -> chat/useResumeCompactionModelName.ts
- Git-project banner -> chat/gitProjectBannerItem.tsx
- subagent round anchor and card jump -> chat/useSubagentTimelineNavigation.ts,
  lib/subagentRoundNavigation.ts
- pasted thread ids -> chat/threadContextDrag.ts (takePastedThreadIds);
  insert-into-composer -> threadContextDrag.ts; dial send sound ->
  lib/interfaceSounds.ts (playDeviceSendCue)
- overlay presentation type and raised-composer focus -> snapShot/snapShotOverlayDock.ts
- sidebar row chrome and hover actions, status chain, waiting props, working-row
  drags -> sidebar/SidebarThreadRowChrome.tsx, SidebarThreadRowStatus.logic.ts,
  sidebarRowWaiting.ts, sidebarDrag.logic.ts; model sub-provider ->
  chat/providerIconUtils.ts
- palette Move to project, Export transcript, Champions items ->
  commandPalette/moveToProjectItem.tsx, exportTranscriptPaletteItem.tsx,
  champions/commandPaletteChampionItems.tsx
- settings search entries (delegation, sounds/motion/finish, version control,
  overlay shortcut, agent browser) -> settings/forkSettingsSearchItems.ts;
  Restore-defaults labels -> settings/interfaceFeelSettings.logic.ts
test-t3-app gains a short before/after comparison recipe.

Count. Busiest = upstream main 470ca63's 50 most-changed source files since
2026-10-20 (unchanged from T3-731's sizing). Fork-added lines in its ten web
files, against the merged upstream nightly 6927cfe: 2,808 -> 1,963
(ChatComposer 636->481, ChatView 610->537, SidebarThreadRow 519->230,
MessagesTimeline 262->156, ChatMarkdown 235->174, CommandPalette 211->157,
settingsSearch 196->112, Sidebar 102->88, SettingsPanels 33->24,
ChatView.logic 4->4).

Per listed feature (each fork hunk attributed to the feature whose identifiers
most of its lines name; a hunk is what an upstream merge re-fights):
  delegated-work-visibility   466 -> 176  hook calls, props, the delegated
                                          request panel mount, row elapsed
  web-client-customisation    175 -> 109  CopyableInlineCode mount, row
                                          trigger/hover-strip mounts, machine
                                          icon, search-entry spreads, paste and
                                          send-sound calls; 39 of these are
                                          upstream's paste handler, which sits
                                          below attachThreadContexts (as before
                                          this change) so the React Compiler
                                          can compile ChatComposer
  snapshot-overlay             93 ->  88  presentation gates in ChatView markup
                                          and the overlay component mounts
  thread-transcript-export     65 ->   7  palette item and composer import lines
  champions                    22 ->  18  palette item spread and its inputs
  screen-recording-video       22 ->  17  hook call and two control mounts
  compact-model                 4 ->  13  hook call (logic left ChatView,
                                          attributed elsewhere before)
  shared-provider-setup         7 ->   7  sub-provider props on the row
  agent-policy-roles, managed-browser-roles, model-maker-icons: no remaining
  hunks of their own (search entries and props named above).
Hunks naming no feature: 700 -> 360, mostly SidebarThreadRow (364 -> 115, row
chrome and status chain moved out) and CommandPalette (94 -> 43, palette items
moved out); the rest belong to out-of-scope features (no-project chats,
model-selection defaults, unattended Away). Out-of-scope features' hunks:
1,254 -> 1,168. What stays for the listed features is seams: imports, hook
calls, props, JSX mounts and one-line presentation gates. Script and tables:
~/runs/T3-789/tools/attrib_hunk.py, attribution-hunks.txt on peach-box.

Proof: recorded tests pass unchanged (37 files, 819 tests, including
settingsSearch, threadActionMenu.logic, Sidebar.logic, SubagentPanel.logic,
compaction.logic, snapShotOverlayDock, ExportTranscriptDialog.logic,
ChatView.logic, subagentRoundNavigation and the new
SidebarThreadRowStatus.logic); web typecheck, React Compiler coverage, fmt, lint, knip and
i18n:check pass. Before/after captures of 32 states on one dev server and data set
(approval thread with the Approval row label and hover strip, row hover card,
Replay markdown with inline code clicked, Git-project banner, lead thread with
subagents, title copy hover, compacted thread with the context bar, row drag
into the composer, palette with Export/Move/Champions/Away, settings search
and pages, Champions, overlay) differ only in relative ages, live timers and
shimmer; a fixed 3 s hover shows the same hover card on both.

Claude Opus 5.5 lead with Claude Sonnet 5.5 implementers, in T3 Code.

Build: pingdotgg#8335
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants