feat(review): per-category inline-comment cap (#2159) - #3874
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3874 +/- ##
=======================================
Coverage 93.54% 93.54%
=======================================
Files 338 339 +1
Lines 33335 33368 +33
Branches 12192 12204 +12
=======================================
+ Hits 31182 31215 +33
Misses 1528 1528
Partials 625 625
🚀 New features to boost your workflow:
|
|
Tip 🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 ✅ Gittensory review result - approve/merge recommendedReview updated: 2026-07-07 05:57:35 UTC
✅ Suggested Action - Approve/Merge
Review summary Nits — 5 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Extract pure inline-comment selection with optional review.inline_comments_per_category manifest tuning. When unset, first-seen selection stays byte-identical; when set, blockers and higher-priority categories survive before the hard total cap. Fixes JSONbored#2159 Co-authored-by: Cursor <cursoragent@cursor.com>
Trim a redundant finding_categories comment so the new inline_comments_per_category token fits within MAX_FOCUS_MANIFEST_BYTES. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep the WHERE IT LIVES parity between gittensory.full.yml and .gittensory.yml.example after trimming comments for the size cap. Co-authored-by: Cursor <cursoragent@cursor.com>
…#2159) Exercise anchoring filters, category fallback, priority ties, and both per-category/total cap paths directly against inline-comments-select.ts. Co-authored-by: Cursor <cursoragent@cursor.com>
A nit filtered by minFindingSeverity leaves the line available for a later blocker on the same path:line anchor. Co-authored-by: Cursor <cursoragent@cursor.com>
Hit the index-order fallback in the per-category sorter and the path:line dedupe arm that codecov/patch still marked partial. Co-authored-by: Cursor <cursoragent@cursor.com>
…ONbored#2159) Add branch tests for perCategoryCap=0, empty patch files, invalid manifest ints, and maybePostInlineComments threading to close codecov/patch. Co-authored-by: Cursor <cursoragent@cursor.com>
…ored#2159) Exercise the empty split-element path in rightSideLinesFromPatch that codecov/patch still counted as a partial branch hit. Co-authored-by: Cursor <cursoragent@cursor.com>
…2159) Replace the || sort comparator with an explicit priority/index tie-break, require options on selectAnchoredInlineFindings, and add tests for blocker category ordering, non-string patches, and the default total cap when perCategoryCap is unset. Co-authored-by: Cursor <cursoragent@cursor.com>
ac88321 to
4186f3d
Compare
Summary
inline-comments-select.tswith priority-ordered selection and an optional per-category sub-cap before the hard total inline-comment limitreview.inline_comments_per_categorythrough the focus manifest, review prompt overrides, and inline-comment publish pathFixes #2159
Test plan
inline-comments-select.test.ts— priority ordering, per-category trimming, total capinline-comments.test.ts— default-off parity + capped selection throughselectInlineCommentsfocus-manifest.test.ts+config-templates.test.ts— parse/round-trip/docs forinline_comments_per_categorynpx tsc -p tsconfig.json --noEmitpasses locally