Review quality: PR context and deduplication hash fix #53
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Agents currently receive only the diff (and optionally full file contents). Without the PR title and description, they lack the intent behind the change, causing false positives. Additionally, the deduplication hash currently uses only path:line, permanently suppressing comments even when the code at that line changes in a subsequent push.
This is a quality-of-life improvement that:
Plan summary:
PR title/description: Add
PRInfodataclass inforgejo.py, refactorget_pr_head_sha()→get_pr(), threadpr_infothroughRouter.review()→BaseAgent.review(), prepend a markdown header block above the diff in each agent's prompt. Error handling: if PR fetch fails, log warning and continue without context.Dedup hash: Add
_hunk_text()todiff.pyfor Hunk serialization. Update_content_hash(),build_marker(),append_marker(),is_duplicate()incomments.pyto accepthunk_content: str. Add_find_hunk_for_line()tomain.py, wire hunk content through_resolve_positions().Both changes are surgical — no new files, no new abstractions. Full TDD throughout.
Spec:
.superpowers/specs/2026-07-18-review-quality-design.mdPlan:
.superpowers/plans/2026-07-18-review-quality.md