Add PR comment on selection in Agents - #335957
Merged
Benjamin Christopher Simmonds (benibenj) merged 1 commit intoSep 16, 2026
Merged
Conversation
Alex Ross (alexr00)
requested review from
Benjamin Christopher Simmonds (benibenj)
and
a balanced review from Copilot
September 12, 2026 13:41
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Base-side selections can incorrectly produce right-side comments or fail after submission.
Get a fresh assessment by requesting another Copilot review.
Review tier: Balanced
Findings: 1
Open findings (1)
What changed in this PR
Adds selection-based GitHub PR comments to the Agents Window.
Changes:
- Adds multiline PR review comment support.
- Adds PR comment actions to the feedback widget.
- Parses PR-content URIs and maps selected ranges to PR lines.
| File | Description |
|---|---|
sessionGitHubInfo.test.ts |
Updates review-thread fixture. |
githubModels.test.ts |
Tests multiline comment forwarding. |
githubFetchers.test.ts |
Tests GitHub range payloads. |
utils.ts |
Adds PR-content URI parsing. |
types.ts |
Adds review-thread start lines. |
githubPullRequestModel.ts |
Forwards comment range starts. |
githubPRFetcher.ts |
Reads and posts multiline comments. |
codeReviewService.test.ts |
Tests range mapping and PR resources. |
codeReviewService.ts |
Resolves and creates range comments. |
feedbackInputWidget.test.ts |
Tests additional dropdown actions. |
feedbackInputWidget.ts |
Supports dynamic additional actions. |
agentFeedbackEditorInputContribution.ts |
Exposes PR commenting from selections. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+315
to
+316
| const pullRequestContent = parsePRContentUri(resource); | ||
| if (pullRequestContent) { |
Contributor
Benjamin Christopher Simmonds (benibenj)
approved these changes
Sep 16, 2026
Benjamin Christopher Simmonds (benibenj)
enabled auto-merge
September 16, 2026 10:59
Benjamin Christopher Simmonds (benibenj)
merged commit Sep 16, 2026
f80869a
into
main
34 checks passed
Benjamin Christopher Simmonds (benibenj)
deleted the
alexr00/proper-gull
branch
September 16, 2026 11:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Uh oh!
There was an error while loading. Please reload this page.