diff --git a/mcp/review.ts b/mcp/review.ts index fb6ce42..bec9048 100644 --- a/mcp/review.ts +++ b/mcp/review.ts @@ -712,7 +712,9 @@ function runDiffCoveragePreflight(params: { ctx: ToolContext }): void { .join("\n"); throw new Error( `diff coverage pre-flight: some TOC regions were not read before review submission. ` + - `this is a one-time nudge — optionally read the ranges below from ${coverageState.diffPath}, then call create_pull_request_review again with the same arguments. ` + + `this is a one-time nudge — read the ranges below from ${coverageState.diffPath} on a best-effort basis, then call create_pull_request_review again with the same arguments. ` + + `you are NOT obligated to read generated artifacts (lockfiles like pnpm-lock.yaml / package-lock.json / yarn.lock / Cargo.lock; codegen output like *.gen.*, *.pb.go, *.generated.*; snapshot/fixture dirs like __snapshots__/; migration metadata like drizzle/meta/, prisma migration SQL). ` + + `if every unread region is generated, retry immediately without reading. ` + `this pre-flight will not block again in this review session.\n\n` + `unread TOC regions:\n${unreadText}\n\n` + `${coverageState.lastBreakdown}`