Repository navigation
Closed as not planned
Closed as not planned
Copy link
Labels
Description
Summary
The PR Comments panel already shows GitHub's review threads in a sidebar tab, but the same threads are not rendered as overlay highlights on the corresponding diff lines, and there is no way to reply to a thread from within plannotator. When re-opening a PR in plannotator review, prior inline review comments appear only in the tab — not anchored visually to the line — and any continuation of the discussion has to happen on GitHub itself.
This request covers two paired capabilities:
- Render historical GitHub PR review-thread comments as overlay annotations on the diff lines, the way GitHub's own diff view does.
- Continue those threads — reply to existing comments and resolve threads — without leaving plannotator.
Motivation
- Continuing a multi-pass review — re-opening a PR with existing inline comments and being able to see, at a glance, which lines already have unresolved discussion.
- Reviewing a teammate's PR — quickly spotting which lines already have feedback from other reviewers without leaving the diff and scanning the PR Comments tab.
- Replying without leaving the tool — today, once a thread exists on GitHub, the only way to push the discussion forward is on github.com. Forces a context switch every time, and breaks the "review entirely in plannotator" flow that the existing Post Review action sets up.
- Visual continuity with GitHub — GitHub's PR diff page anchors every review-thread comment to its line and lets you reply inline. Today plannotator's diff view feels "fresh" each time, with no acknowledgement of prior discussion or a way to engage with it.
Current State
- Data is already fetched:
PRReviewThread(withline/positionanchoring),PRReview, andPRCommentflow through topackages/review-editor/components/PRCommentsTab.tsxand render in the side panel. - The annotation overlay system (
web-highlighter) is session-scoped — only the reviewer's current annotations render as colored highlights on the diff. There is no path for historical GitHub threads to enter the same overlay layer. - Different rendering pipelines:
PRCommentsTabuses a markdown timeline component; the diff overlays useweb-highlighter. No shared layer takes the same thread data and pins it to the diff. - Submit-side:
submitPRReviewinpackages/shared/pr-github.tsPOSTs to/repos/<o>/<r>/pulls/<n>/reviews, which always creates a new review. There is no path for replying to an existing review thread (which requiresPOST /repos/<o>/<r>/pulls/<n>/commentswithin_reply_to) or for resolving a thread (GraphQLresolveReviewThread).
Proposed Behavior
View (overlay)
A toggle (per session or per setting) — "Show GitHub threads on diff" — that:
- Reads the
PRReviewThreaddata already onPRContext. - For each thread with
line/startLine+path, renders a read-only marker overlay on the corresponding diff line. - Clicking the marker opens the thread (could pop the same component used in
PRCommentsTabin a side popover, or navigate thePR Commentspanel to that thread). - Visually distinct from session annotations (different color/icon) so reviewers can tell their new work from historical context at a glance.
Resolved threads could be hidden by default with a second toggle.
Continue (reply / resolve)
From the thread popover (or the PR Comments panel entry):
- Reply — textarea + Send button that POSTs to
/repos/<o>/<r>/pulls/<n>/commentswithin_reply_to: <root_comment_id>. On success, the new comment appears at the bottom of the thread without re-fetching the whole PR context. - Resolve / Unresolve thread — button that calls the GraphQL
resolveReviewThread/unresolveReviewThreadmutation onthread.id. Updates the local thread state so the marker hides (when "hide resolved" is on) or restyles. - Same
gh apiruntime used bysubmitPRReview— no new auth surface.
Related
- Code Review Enhancements & GitHub PR Integration #348 — closed umbrella for Code Review Enhancements & GitHub PR Integration; "PR comments — conversation thread from GitHub" was shipped as the side panel. This issue is the natural follow-up for surfacing those threads on the diff itself and making them interactive.
- [Feature request] Allow AI agents to review code and show their suggestion in plannotator #611 — Allow AI agents to review code and show their suggestion in plannotator (same rendering need on the receiving side: non-session-author markers anchored to diff lines).
Reacted by Michael Ramos, Adrian Kepka, Chloe Glave and Matej Bransky
Activity
[-][Feature Request] Render GitHub PR review-thread comments as inline overlay annotations on the diff[/-][+][Feature Request] Render and continue GitHub PR review-thread comments inline on the diff[/+]backnotprop commentedon Sep 21, 2026
Thanks @aniravi24 — this is one of the better-researched requests in the tracker and the current-state section is still accurate. Verified on main:
reviewThreadsare fetched and rendered only in the sidebar (packages/review-editor/components/PRCommentsTab.tsx:160-166);DiffViewerandAllFilesCodeViewcontain zero references to them, so nothing is anchored to a line. On the write side,in_reply_toandresolveReviewThreadhave zero occurrences repo-wide —submitGhPRReviewcan still only create a new review.One thing that did land and changes the cost estimate: launchable Review Agents (#611, shipped) put non-session-author findings on diff lines as inline comments, so the "render a marker that isn't mine, anchored to a line" machinery now exists and the missing part is mapping
PRReviewThreadinto it.Keeping the
acceptedcommitment: this is moving to "PR review mode: pluggable platforms and two-way review threads" together with #671, so thread continuity and provider extensibility are designed once rather than twice. Everything above is carried over. Closing here in favour of that tracker.Tracker: #1583.