<command-name>/clear</command-name> <command-message>clear</command-message>…
- User
/clear clear
- User
I'd like to update
vibx reviewto have a more clean experience.- Don't use a single general comment. Instead, start a review, add the diff comments to the review, then add the general comment to the main review comment
- Diff comments that are "fulfilled" (e.g. not warnings/violations) should be marked as resolved immediately
Assistant
I'll explore the current
vibx reviewimplementation to understand how it works.Assistant
Now I understand the current implementation. Let me read the key files to see the exact code.
Assistant
Now I understand the current implementation. Let me implement the changes:
- Current approach: Posts individual diff comments via REST API, then a separate PR issue comment
- New approach: Use GitHub's review API to create a single review with all diff comments, using the general comment as the review body
- Mark fulfilled comments as resolved: After creating the review, resolve threads for fulfilled findings
Assistant
Now let me update the exports and clean up unused functions. First, let me see what needs to be removed/updated:
Assistant
Now let me remove the unused code from github.ts and update review.ts to use the new
submitReviewfunction.Assistant
Now let me update review.ts to use the new
submitReviewfunction:Assistant
Let me check if there are other files using the old functions:
Assistant
Let me run a type check to verify everything compiles correctly:
Assistant
Let me verify the type check still passes and run a quick test:
Assistant
The implementation is complete. Here's a summary of the changes:
Changes to
apps/cli/src/lib/github.ts:- Added
submitReview()function that uses GitHub's review API (POST /pulls/{pr}/reviews) to create a single review with all diff comments at once - The general comment/summary is now the review body instead of a separate PR issue comment
- Added
getReviewThreads()andresolveReviewThread()GraphQL functions to automatically resolve threads for fulfilled findings - Removed old functions:
postDiffComment,updateOrCreateComment,getExistingReviewComment,updateReviewSection,updateCommentByNodeId
Changes to
apps/cli/src/commands/review.ts:- Updated to use the new
submitReview()function instead of the old individual comment approach
Key behavior changes:
- All diff comments are now part of a single GitHub review
- The review summary (with general findings) is the main review body
- Fulfilled diff comments are automatically resolved immediately after posting
- Added
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.