Skip to content

fix: don't ask agent to address feedback on LGTM approval#293

Merged
backnotprop merged 4 commits into
mainfrom
feat/improve-prompts
Mar 15, 2026
Merged

fix: don't ask agent to address feedback on LGTM approval#293
backnotprop merged 4 commits into
mainfrom
feat/improve-prompts

Conversation

@backnotprop
Copy link
Copy Markdown
Owner

@backnotprop backnotprop commented Mar 14, 2026

Summary

  • Thread an explicit approved boolean from the review UI through the server to all three integrations (Claude Code, OpenCode, Pi), replacing the annotations.length heuristic which misclassified VS Code editor-only annotations as approvals
  • On approval: agent receives "Code review completed — no changes requested."
  • On feedback: agent receives the review annotations followed by "The reviewer has identified issues above. You must address all of them."

Closes #284

Test plan

  • /plannotator-review → approve with no annotations → agent should NOT be told to address feedback
  • /plannotator-review → add annotations and send feedback → agent should see feedback + "must address all of them"
  • /plannotator-review → VS Code editor annotations only, send feedback → agent should see feedback, NOT "no changes requested"

🤖 Generated with Claude Code

backnotprop and others added 4 commits March 14, 2026 14:55
When the reviewer approves with no annotations, send a neutral
"Code review completed — no changes requested." message instead of
the contradictory "LGTM" + "Please address this feedback."

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The previous fix inferred LGTM from an empty annotations array, but
VS Code editor annotations are carried in feedbackMarkdown without
populating the annotations array — causing real review comments to be
misclassified as approvals. Thread an explicit `approved` boolean from
the UI through the review server to all three integrations.

Closes #284

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When the reviewer submits actual feedback, append "The reviewer has
identified issues above. You must address all of them." so the agent
treats annotations with urgency rather than soft-acknowledging them.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@backnotprop backnotprop merged commit 54e951e into main Mar 15, 2026
5 checks passed
@backnotprop backnotprop deleted the feat/improve-prompts branch March 15, 2026 00:58
backnotprop added a commit that referenced this pull request Mar 18, 2026
The plugin's plannotator-review.md was updated in #293 to handle
LGTM approvals but the install scripts still had the old wording.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
backnotprop added a commit that referenced this pull request Mar 18, 2026
* docs: add /plannotator-last to READMEs and marketing docs

* feat: add /plannotator-last to install scripts


* fix: sync review command wording in install scripts with plugin

The plugin's plannotator-review.md was updated in #293 to handle
LGTM approvals but the install scripts still had the old wording.
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.

Adjust code review feedback message

1 participant