[Bug]: Comment links open the pull request panel at the top instead of at the linked comment#32547

opened4d agobyMMdSadiqMd

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/web (the pull request panel: openPullRequestLink.ts, PullRequestDetailPanel, PullRequestSummaryTab)

Summary

Clicking a link to a comment on a pull request opens the right PR in T3 Code's native panel, but the panel shows the top of the PR. The comment the link points to is never shown. On GitHub, the same link scrolls to that comment and highlights it.

The link keeps the comment: openChangeRequestLink already stores the full URL, including #issuecomment-…, on the panel surface. Nothing reads the fragment, so the PR opens as if the link were /pull/N.

Comment links are common in agent replies, PR watch summaries, and review bots. An agent often writes "see this comment" with a link, and in T3 Code you then have to search the conversation by hand.

Steps to reproduce

  1. Open a thread in a project whose repository is on GitHub. Pull request links open in the app by default.
  2. In an assistant message, click a link to a comment on one of that repository's PRs, for example https://github.com/pingdotgg/t3code/pull/29332#issuecomment-6709928633.
  3. The PR opens in the right panel.

Other comment links behave the same way:

LinkPoints to
…/pull/N#issuecomment-123a conversation comment
…/pull/N#pullrequestreview-123a review
…/pull/N#discussion_r123 or …/pull/N/files#r123a review-thread comment, often inside a resolved (collapsed) thread
GitLab …/merge_requests/N#note_123a note

Expected behavior

The panel opens on Summary, scrolled to the linked comment, with the comment marked. This should hold even when the comment is:

  • older than the 10 conversations shown by default;
  • hidden by the comment filter (bot comments, resolved or dismissed);
  • inside a collapsed resolved thread;
  • linked while the panel is on the Code or Timeline tab.

A link to the PR itself (no fragment) should behave as it does today.

Actual behavior

The PR opens at the top of whatever tab was last open, with nothing marked. If the comment is old, filtered out, or in a resolved thread, it isn't on screen at all until you change the filter, page in older conversations, and expand the right thread.

Impact

Minor bug or occasional failure

Version or commit

main @ e455200077 (2026-11-07); also on 0.1.8-nightly

Environment

macOS, desktop app 0.1.8-nightly; reproduced in the web client from a dev server on main.

Workaround

Cmd/Ctrl-click the link to open it in the browser, where GitHub scrolls to the comment.

Fixed by #33989, now on main: Clicking a comment or review link now opens Timeline at the marked comment, including older comments, bot comments, and replies inside resolved threads, even when another PR tab was selected.