feat(review): anchor-safety validation drops un-commentable suggested changes - #3837
feat(review): anchor-safety validation drops un-commentable suggested changes#3837jimcody1995 wants to merge 1 commit into
Conversation
Add addedLinesFromPatch and only render GitHub suggested-change blocks when the finding anchor is an ADDED (+) diff line. Plain inline comments still work on context lines; files without a patch never emit suggestions. Fixes JSONbored#2140 Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3837 +/- ##
=======================================
Coverage 93.41% 93.41%
=======================================
Files 326 326
Lines 32855 32873 +18
Branches 12035 12040 +5
=======================================
+ Hits 30691 30708 +17
Misses 1530 1530
- Partials 634 635 +1
🚀 New features to boost your workflow:
|
|
Caution 🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥🟥 🛑 Gittensory review result - fixes requiredReview updated: 2026-07-06 14:03:57 UTC
🛑 Suggested Action - Fix Blockers Review summary Nits — 4 non-blocking
CI checks failing
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.
|
|
Gittensory is closing this pull request on the maintainer's behalf (CI is failing (codecov/patch)). This is an automated maintenance action — to pursue this change, please open a new pull request with the issues resolved. Closed PRs may be analyzed later to improve review accuracy, but they are not automatically reopened or re-reviewed. |
Summary
addedLinesFromPatch— the ADDED ("+") subset ofrightSideLinesFromPatch.selectInlineComments, keep plain inline comments on context lines but strip GitHub```suggestionblocks unless the finding anchor is an added line (avoids 422s).Fixes #2140
Scope
src/review/inline-comments.ts+ unit tests only.Validation
git diff --checknpx vitest run test/unit/inline-comments.test.ts— 36 passedConflict avoidance
Touches only
inline-comments.tsand its test file. No overlap with open PRs (#3823–#3836) which touch processors, commands, focus-manifest, unified-comment-bridge, or local-write-tools.Made with Cursor