Skip to content

Fix resolving review threads from the webview#8782

Draft
alexr00 wants to merge 1 commit into
mainfrom
alexr00/voiceless-gull
Draft

Fix resolving review threads from the webview#8782
alexr00 wants to merge 1 commit into
mainfrom
alexr00/voiceless-gull

Conversation

@alexr00

@alexr00 alexr00 commented Jun 9, 2026

Copy link
Copy Markdown
Member

No description provided.

@alexr00 alexr00 self-assigned this Jun 9, 2026
@alexr00 alexr00 requested a review from Copilot June 9, 2026 15:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes resolving/unresolving review threads from the PR timeline webview by ensuring the UI targets the correct GraphQL review thread when a single review contains comments across multiple threads.

Changes:

  • Add threadId (GraphQL review thread node ID) to IComment when parsing comments from GraphQL review threads.
  • Track resolve/unresolve permissions per review thread (map keyed by thread GraphQL ID) on each ReviewEvent.
  • Update the webview timeline to group comments by threadId (falling back to path+position) and resolve/unresolve the specific thread for that group.
Show a summary per file
File Description
webviews/components/timeline.tsx Groups review comments by threadId and resolves the correct thread per rendered comment group.
src/github/utils.ts Propagates GraphQL review thread ID into parsed IComment objects.
src/github/pullRequestModel.ts Populates a per-review map of thread resolve info so the webview can target the correct thread.
src/common/timelineEvent.ts Updates ReviewEvent shape to expose reviewThreads (threadId → resolve info).
src/common/comment.ts Extends IComment with optional threadId to associate comments with their review thread.

Copilot's findings

  • Files reviewed: 5/5 changed files
  • Comments generated: 0

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants