[aw] Prevent duplicate AI reviewer comments on reruns#280885
Draft
Ikuni17 wants to merge 1 commit into
Draft
Conversation
|
🤖 Jobs for this PR can be triggered through checkboxes. 🚧
ℹ️ To trigger the CI, please tick the checkbox below 👇
|
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.
Summary
This addresses the repeated Claude Reviewer comments observed across multiple runs on #277679. The prefetched context was present in those runs, but the agent transcripts showed that Claude never opened
pr-review-comments.jsonorpr-reviews.json.Validation
node --check .github/scripts/prefetch_pr_context.jsnode scripts/eslint .github/scripts/prefetch_pr_context.jsgit diff --checkgh aw compile --purge --validate --no-check-updateThe gh-aw compile completed successfully. No lock-file changes were produced because
code-reviewer.mdis imported at runtime.Live validation
Dispatched Claude Reviewer twice from
fix/claude-reviewer-repeated-commentsagainst this unchanged draft PR:In both runs:
prefetch_pr_contextcompleted successfully.agentartifact contained bothpr-review-comments.jsonandpr-reviews.json(both empty because this new PR had no reviews yet).invalid subscription key or wrong API endpoint) with intermittent HTTP 429 (No deployments available) forllm-gateway/claude-opus-4-8.The local context enrichment and branch-ref prefetch path are validated. Live verification that Claude reads prior comments and suppresses a duplicate remains blocked by the external model-gateway authentication/deployment failure.