Skip to content

[Bug]: PR timeline "Open activity on host" buttons ignore 'Open links in' #42913

Done

Description

@AymanKhan9

Summary

In a thread's Pull Request right panel, clicking any "Open activity on host" button in the Timeline tab (on comments, review threads, replies, or review verdicts) ignores Settings → Browser → Open links in and always opens in the external system browser.

Steps to reproduce

  1. Set Settings → Browser → Open links in to T3 Code (in-app browser).
  2. Open a Pull Request in a thread's right panel and switch to the Timeline tab.
  3. Click the Open activity on host icon button on any comment, review thread reply, or review verdict.

Expected behavior

The activity URL opens according to the Open links in setting (in a Browser tab inside the thread when set to T3 Code, with Cmd/Ctrl-click overriding to the system browser), matching the PR panel's Open on GitHub menu item (PullRequestActionsMenu.tsx) and header links (PullRequestDetailCrumbs.tsx).

Actual behavior

PullRequestTimelineTab.tsx hardcodes readLocalApi()?.shell.openExternal(url) in openOnHost, bypassing useOpenLink(threadRef) completely even though PullRequestTimelineTab already receives threadRef.

Cause

In apps/web/src/components/pullRequest/PullRequestTimelineTab.tsx, openOnHost calls readLocalApi()?.shell.openExternal(url) directly instead of using useOpenLink(threadRef) and forwarding the click event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions