fix(review): support untracked assess declarations - #1266
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (4)
Included review availability: Your plan provides up to 4 included reviews per hour; 3 remain after this review. 📝 WalkthroughWalkthroughThe assess flow now accepts validated untracked-file selections, forwards them to native review, and preserves sanitized native diagnostics and error codes when assessment fails. Tests cover selection forwarding, invalid input rejection, diagnostic redaction, and fail-closed results. ChangesAssessment selection and failure handling
Priority: ➖ Normal Estimated code review effort: 3 (Moderate) | ~25 minutes Change: Bug fix · Severity of issue fixed: Medium Sequence Diagram(s)sequenceDiagram
participant gentle_review
participant NativeReviewCliV216
participant NativeReviewProcess
gentle_review->>NativeReviewCliV216: submit assess request and untracked selection
NativeReviewCliV216->>NativeReviewCliV216: validate selection
NativeReviewCliV216->>NativeReviewProcess: run review assess with selection flags
NativeReviewProcess-->>NativeReviewCliV216: assessment or stderr diagnostics
NativeReviewCliV216->>NativeReviewCliV216: sanitize ASSESS diagnostics
NativeReviewCliV216-->>gentle_review: assessment or unassessable result
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1📝 Generate docstrings 💡
🧪 Generate unit tests (beta)
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. Comment |
Closes #1040
Type
Summary
excludeandselectuntracked declarations throughgentle_review assessChanges
extensions/gentle-ai.tslib/native-review-cli.tsruntime/native-review-cli.mjstests/review-risk-assessment.test.tsTest Plan
node --experimental-strip-types --test tests/review-risk-assessment.test.ts— 63 passedpnpm run typecheckpnpm run check:runtime-modulespnpm test— 2,862 passed, 38 skipped, 0 failedgit diff --checkContributor Checklist
type:*labelCo-Authored-BytrailersSummary by CodeRabbit
New Features
Bug Fixes