Skip to content

feat(pr-review-toolkit): warn when posting to resolved threads - #79

Merged
cblecker merged 1 commit into
mainfrom
fix/pr-review-resolved-thread-warning
Jul 14, 2026
Merged

feat(pr-review-toolkit): warn when posting to resolved threads#79
cblecker merged 1 commit into
mainfrom
fix/pr-review-resolved-thread-warning

Conversation

@cblecker

@cblecker cblecker commented Jul 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a warning in the preview step when an overlap finding targets a resolved thread, since replies to resolved threads stay collapsed and the PR author likely won't see them
  • Adds a "Convert resolved-thread replies to new line comments" option to AskUserQuestion so the reviewer can switch those findings to the pending-review flow instead
  • Patch version bump to 1.12.1

Test plan

  • Run a review on a PR with resolved threads and verify the warning appears in the preview for overlap findings targeting those threads
  • Confirm the "Convert resolved-thread replies to new line comments" option only appears when at least one finding targets a resolved thread
  • Verify selecting the conversion option routes those findings through the pending review flow as new line comments

Summary by CodeRabbit

  • New Features

    • Enhanced “Preview And Confirm” to warn that replies to resolved overlap threads will stay collapsed and may not be visible.
    • Updated the approval flow with preview-based approval options, a consolidated “Edit findings” action, and a conditional option to convert resolved-thread replies into new line comments.
  • Bug Fixes

    • Improved overlap handling so “already covered” logic and resolved-thread behavior are applied consistently during review.
  • Chores

    • Updated the plugin version to 1.12.1.

Copilot AI review requested due to automatic review settings July 14, 2026 18:16
@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 754936bc-79b9-485f-be11-890cd87d00a2

📥 Commits

Reviewing files that changed from the base of the PR and between af8f6c4 and a9e1a5a.

📒 Files selected for processing (3)
  • pr-review-toolkit/.claude-plugin/plugin.json
  • pr-review-toolkit/skills/review-pr/SKILL.md
  • pr-review-toolkit/skills/review-pr/review-pr.js
🚧 Files skipped from review as they are similar to previous changes (3)
  • pr-review-toolkit/.claude-plugin/plugin.json
  • pr-review-toolkit/skills/review-pr/SKILL.md
  • pr-review-toolkit/skills/review-pr/review-pr.js

📝 Walkthrough

Walkthrough

The plugin version changes from 1.12.0 to 1.12.1. Review overlap data now tracks resolved-thread state, updates overlap classification, and exposes warnings and revised approval options for resolved-thread replies.

Changes

Review workflow updates

Layer / File(s) Summary
Resolved overlap state and classification
pr-review-toolkit/skills/review-pr/review-pr.js
Overlap contracts and synthesized board items now include isResolved; inferred overlaps reconcile thread state and classify already_covered using the 0.5 overlap threshold.
Resolved-thread preview handling
pr-review-toolkit/skills/review-pr/SKILL.md
The preview warns that replies to resolved threads remain collapsed and may not be seen, while approval choices use preview metadata, consolidate editing into “Edit findings,” and conditionally offer conversion to new line comments.
Plugin version increment
pr-review-toolkit/.claude-plugin/plugin.json
The plugin manifest version is updated from 1.12.0 to 1.12.1.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly matches the main change: warning users when posting to resolved threads.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/pr-review-resolved-thread-warning

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds resolved-thread awareness to the PR review preview and bumps the plugin patch version.

Changes:

  • Warns when replies target resolved threads.
  • Offers conversion to new line comments.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
SKILL.md Adds warning and conversion instructions.
plugin.json Bumps version to 1.12.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pr-review-toolkit/skills/review-pr/SKILL.md

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pr-review-toolkit/skills/review-pr/SKILL.md`:
- Around line 293-294: Expand the “Convert resolved-thread replies to new line
comments” option in the post-selection flow to state that affected replies are
converted into new line comments, the preview is regenerated with updated
destinations, and approval is requested again before posting. Define the
pending-review state transition so the menu action does not leave the workflow
ambiguous.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 590c6072-2b2e-4f63-acf7-e7a18759a0b0

📥 Commits

Reviewing files that changed from the base of the PR and between 0ec1954 and 85c04cc.

📒 Files selected for processing (2)
  • pr-review-toolkit/.claude-plugin/plugin.json
  • pr-review-toolkit/skills/review-pr/SKILL.md

Comment thread pr-review-toolkit/skills/review-pr/SKILL.md Outdated
Copilot AI review requested due to automatic review settings July 14, 2026 18:57
@cblecker
cblecker force-pushed the fix/pr-review-resolved-thread-warning branch from 85c04cc to ea5437e Compare July 14, 2026 18:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

Comment thread pr-review-toolkit/skills/review-pr/review-pr.js
Comment thread pr-review-toolkit/skills/review-pr/SKILL.md Outdated
@cblecker
cblecker force-pushed the fix/pr-review-resolved-thread-warning branch from ea5437e to af8f6c4 Compare July 14, 2026 19:21
Copilot AI review requested due to automatic review settings July 14, 2026 19:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

Comment thread pr-review-toolkit/skills/review-pr/SKILL.md Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@pr-review-toolkit/skills/review-pr/review-pr.js`:
- Around line 835-846: The early-return branch in inferThreadOverlap must
synchronize isResolved for existing overlaps. When existing.status is active and
a threadId or commentId is present, find the matching entry in threads, merge
its commentId and resolved state into the returned overlap, and default
isResolved to false when no match exists; preserve the existing result when no
identifiers are available.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 5238c6b5-4c83-44e0-b736-48e9adb3dfcc

📥 Commits

Reviewing files that changed from the base of the PR and between 85c04cc and af8f6c4.

📒 Files selected for processing (3)
  • pr-review-toolkit/.claude-plugin/plugin.json
  • pr-review-toolkit/skills/review-pr/SKILL.md
  • pr-review-toolkit/skills/review-pr/review-pr.js
🚧 Files skipped from review as they are similar to previous changes (2)
  • pr-review-toolkit/.claude-plugin/plugin.json
  • pr-review-toolkit/skills/review-pr/SKILL.md

Comment thread pr-review-toolkit/skills/review-pr/review-pr.js
Replies to resolved GitHub threads stay collapsed, so the PR author
likely won't see them. Add a warning in the preview step and an option
to convert those replies to new line comments instead.

Assisted-by: Claude:claude-opus-4-6
Copilot AI review requested due to automatic review settings July 14, 2026 20:01
@cblecker
cblecker force-pushed the fix/pr-review-resolved-thread-warning branch from af8f6c4 to a9e1a5a Compare July 14, 2026 20:01

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

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

@cblecker

Copy link
Copy Markdown
Owner Author

@CodeRabbit review

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@cblecker
cblecker merged commit f14d289 into main Jul 14, 2026
14 checks passed
@cblecker
cblecker deleted the fix/pr-review-resolved-thread-warning branch July 14, 2026 20:55
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