Allow leaving PR comments in agents - #335648
Open
Alex Ross (alexr00) wants to merge 2 commits into
Open
Conversation
Alex Ross (alexr00)
requested a review
from Benjamin Christopher Simmonds (benibenj)
September 11, 2026 08:52
Alex Ross (alexr00)
marked this pull request as ready for review
September 11, 2026 08:52
Contributor
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Unpaginated GitHub responses prevent commenting on pending reviews and files beyond API page limits.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review tier: Balanced
Findings: 2
New issues introduced by this change (2)
| Severity | Finding |
|---|---|
src/vs/sessions/contrib/codeReview/browser/codeReviewService.ts — Support changed files beyond the compare API cap |
|
src/vs/sessions/contrib/codeReview/browser/codeReviewService.ts — Find pending reviews beyond the first REST page |
What changed in this PR
Adds pull-request line commenting to the Agents Window and integrates new comments with Agent Host feedback annotations.
Changes:
- Adds GitHub APIs and models for line-level review comments.
- Maps editor lines to commentable pull-request diff lines.
- Updates Agent Feedback UI, synchronization, configuration, and tests.
| File | Description |
|---|---|
src/vs/workbench/test/browser/componentFixtures/fixtureUtils.ts |
Updates the feedback service fixture. |
src/vs/workbench/contrib/comments/browser/commentsController.ts |
Disables native comment handling in Sessions windows. |
src/vs/sessions/contrib/github/test/browser/githubModels.test.ts |
Tests model-level review comment posting. |
src/vs/sessions/contrib/github/test/browser/githubFetchers.test.ts |
Tests review-comment API requests and review mapping. |
src/vs/sessions/contrib/github/common/types.ts |
Adds patch and review-node metadata. |
src/vs/sessions/contrib/github/browser/models/githubPullRequestModel.ts |
Exposes review comment posting. |
src/vs/sessions/contrib/github/browser/githubService.ts |
Adds GitHub file-content retrieval. |
src/vs/sessions/contrib/github/browser/fetchers/githubPRFetcher.ts |
Implements pending and new review comments. |
src/vs/sessions/contrib/github/browser/fetchers/githubChangesFetcher.ts |
Preserves unified patches. |
src/vs/sessions/contrib/codeReview/test/browser/codeReviewService.test.ts |
Tests line mapping and comment creation. |
src/vs/sessions/contrib/codeReview/browser/codeReviewService.ts |
Resolves and posts PR comment targets. |
src/vs/sessions/contrib/changes/test/browser/agentsDiffEditor.fixture.ts |
Registers the review service fixture. |
src/vs/sessions/contrib/agentFeedback/test/browser/sessionEditorComments.test.ts |
Tests annotation authority over raw comments. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackService.test.ts |
Tests raw-comment visibility before loading. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackItemsBackend.test.ts |
Tests optimistic annotation mutations. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackInputWidget.fixture.ts |
Registers the review service fixture. |
src/vs/sessions/contrib/agentFeedback/test/browser/agentFeedbackEditorWidget.test.ts |
Tests deletion of mirrored PR comments. |
src/vs/sessions/contrib/agentFeedback/browser/sessionEditorComments.ts |
Prefers Agent Host comment annotations. |
src/vs/sessions/contrib/agentFeedback/browser/nullAgentFeedbackService.contribution.ts |
Implements the new session-type method. |
src/vs/sessions/contrib/agentFeedback/browser/feedbackInputWidget.ts |
Supports dynamic action labels. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackService.ts |
Exposes Agent Host session detection. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackPRReviewSeeder.ts |
Makes annotations authoritative comment mirrors. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackItemsBackend.ts |
Adds optimistic annotation caching and reconciliation. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorWidgetContribution.ts |
Applies raw-comment visibility rules. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorWidget.ts |
Suppresses deleted mirrored source comments. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorOverlay.ts |
Applies annotation authority to overlays. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorInputContribution.ts |
Adds PR target selection and submission UI. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedbackEditorActions.ts |
Applies annotation authority during navigation. |
src/vs/sessions/contrib/agentFeedback/browser/agentFeedback.contribution.ts |
Registers the experimental feature setting. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Contributor
Screenshot ChangesBase: Changed (32)3 insignificant change(s) omitted (≤20 px, Δ≤2). See CI logs for details. Errored (8)Fixtures that failed to render — no screenshot was produced.
|
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.