fix(review): skip additional binary extensions in full-file grounding#3404
Conversation
avif/bmp/heic images and .tgz archives were not filtered by SKIP_EXT, so full-file grounding wasted budget fetching unreadable blobs. Align with common binary extensions from review/rag.ts BINARY_EXT_RE. Co-authored-by: Cursor <cursoragent@cursor.com>
Record getFileContent calls and assert binary paths are never requested. Co-authored-by: Cursor <cursoragent@cursor.com>
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-05 06:23:37 UTC
⏸️ Suggested Action - Manual Review Review summary Nits — 2 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.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3404 +/- ##
=======================================
Coverage 93.46% 93.46%
=======================================
Files 287 287
Lines 30763 30763
Branches 11210 11210
=======================================
Hits 28752 28752
Misses 1355 1355
Partials 656 656
🚀 New features to boost your workflow:
|
Summary
SKIP_EXTinreview-grounding.tssofetchFullFileContentsskips.avif,.bmp,.heic, and.tgzpaths (alongside existing png/webp/pdf/etc.).getFileContentcalls and asserts binary paths are never requested — not merely absent from a sparse fetcher map (the fix(review): skip additional binary extensions in full-file grounding #3383 review blocker).Scope
CONTRIBUTING.md.Validation
git diff --checknpm run test:cion Node 22npm audit --audit-level=moderate— 0 vulnerabilitiesreadsexcludes all binary paths before fetchSafety
UI Evidence
N/A — backend review grounding only.
Notes
Conflict avoidance: Touches only
src/review/review-grounding.tsandtest/unit/review-grounding.test.ts. Zero overlap with open PRs (#3381 engine, #3380 enrichment, #3379 selfhost config-lint, #3378 dependency-scan tests, #3314 miner, #3373/#3304 focus-manifest, #3372/#3304 test-evidence, #3305 enrichment-wire, #3361 enrichment).Made with Cursor