Skip to content

Allow multiple code reviews per session version#303004

Merged
benibenj merged 4 commits intomainfrom
benibenj/voluminous-aardvark
Mar 18, 2026
Merged

Allow multiple code reviews per session version#303004
benibenj merged 4 commits intomainfrom
benibenj/voluminous-aardvark

Conversation

@benibenj
Copy link
Contributor

@benibenj benibenj commented Mar 18, 2026

Copilot Generated Description: Enable requesting up to five code reviews for the same session version. Update tooltips and disable actions accordingly based on the review count.

closes #302669

…o a maximum of five; update tooltips and disable action accordingly
Copilot AI review requested due to automatic review settings March 18, 2026 22:17
@benibenj benibenj enabled auto-merge March 18, 2026 22:17
@benibenj benibenj self-assigned this Mar 18, 2026
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Enables multiple (up to 5) code review runs for the same agent session “version” in the Agent Sessions window (vs/sessions), tracking per-version review count and updating UI/tooltips accordingly.

Changes:

  • Add per-version reviewCount tracking (and persistence) to CodeReviewService state, with a max of 5.
  • Allow rerunning a review for the same version when there are no remaining code review comments (including the “no comments produced” case).
  • Update sessions toolbar/action tooltips and expand tests to cover the new behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/vs/sessions/contrib/codeReview/browser/codeReviewService.ts Introduces reviewCount/didProduceComments in state, enforces max-per-version, and persists the new fields.
src/vs/sessions/contrib/codeReview/browser/codeReview.contributions.ts Updates the toolbar action enablement/tooltip logic based on reviewCount and whether prior runs produced comments.
src/vs/sessions/contrib/codeReview/test/browser/codeReviewService.test.ts Adds/updates tests for review reruns, review-count increments, and max limit behavior.
src/vs/sessions/contrib/agentFeedback/test/browser/sessionEditorComments.test.ts Updates test helpers to construct the new ICodeReviewState.Result shape.

You can also share your feedback on Copilot code review. Take the survey.

benibenj and others added 3 commits March 18, 2026 23:28
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@benibenj benibenj merged commit 86e6dd0 into main Mar 18, 2026
19 checks passed
@benibenj benibenj deleted the benibenj/voluminous-aardvark branch March 18, 2026 23:24
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.

Sessions: AI code review doesn't allow running multiple times?

3 participants