Skip to content

Consolidate duplicate feedback solicitation in PR reviews#251

Merged
csmith49 merged 3 commits into
mainfrom
fix/pr-review-feedback-styling
May 21, 2026
Merged

Consolidate duplicate feedback solicitation in PR reviews#251
csmith49 merged 3 commits into
mainfrom
fix/pr-review-feedback-styling

Conversation

@csmith49
Copy link
Copy Markdown
Contributor

Problem

PR reviews posted by the pr-review plugin had two separate, visually disjointed feedback solicitations stacked at the bottom:

  1. A detailed "Improve this review?" blockquote (from the code-review skill in SKILL.md)
  2. A separate plain-text "Was this automated review useful? React with 👍 or 👎" line (from _FEEDBACK_FOOTER in prompt.py)

This created an awkward --- → blockquote → --- → plain text sandwich at the end of every review.

Example: OpenHands/software-agent-sdk#3324 (review)

Fix

  • Removed the _FEEDBACK_FOOTER constant and its append in format_prompt() from plugins/pr-review/scripts/prompt.py
  • Folded the reaction line (Was this review helpful? React with 👍 or 👎 to give feedback.) into the existing "Improve this review?" blockquote in skills/code-review/SKILL.md

Now reviews render one cohesive feedback block instead of two.


This PR was created by an AI agent (OpenHands) on behalf of the user.

csmith49 and others added 3 commits May 5, 2026 09:26
Add a line to the mandatory review footer asking users to react with
👍 or 👎 so we can track how review quality changes are perceived.

Co-authored-by: openhands <openhands@all-hands.dev>
The reactions feedback line is deterministic output that should appear on
every review. Moving it from the reusable code-review skill into the
pr-review plugin's prompt.py keeps it:

- Scoped to the pr-review plugin rather than every /codereview consumer
- Colocated with other deterministic output formatting (evidence, delegation)
- Less likely to be paraphrased or dropped by the agent

Co-authored-by: openhands <openhands@all-hands.dev>
Remove the separate _FEEDBACK_FOOTER from prompt.py that was causing a
redundant, visually disjointed thumbs-up/down line after the detailed
'Improve this review?' blockquote. The reaction ask is now part of the
blockquote in the code-review skill, so reviews render one cohesive
footer instead of two stacked solicitations.

Co-authored-by: openhands <openhands@all-hands.dev>
Copy link
Copy Markdown
Contributor

@all-hands-bot all-hands-bot left a comment

Choose a reason for hiding this comment

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

🟢 Good taste - Clean refactoring that consolidates duplicate feedback solicitations into a single cohesive block.

[RISK ASSESSMENT]

  • [Overall PR] ⚠️ Risk Assessment: 🟢 LOW
    Purely formatting change that simplifies code by removing duplication. No functional behavior modified.

VERDICT:
Worth merging: Eliminates UX friction and reduces code complexity

KEY INSIGHT:
The best way to fix duplication is to consolidate, not coordinate.


Was this automated review useful? React with 👍 or 👎 to this review to help us measure review quality.
Workflow run: https://github.com/OpenHands/extensions/actions/runs/26180518436

@csmith49 csmith49 merged commit bf5fabd into main May 21, 2026
5 checks passed
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.

2 participants