Repository navigation
Stop the review when a file read fails - #21
Conversation
The lead reviewer's prompt told it to continue with the diff hunks when read_file failed, so a run that read none of the files still approved. Now it stops and says so. Co-authored-by: Claude <[email protected]>
|
Verdict: Request changes — the new "stop and say so" instruction is likely to break the review pipeline on common, benign diffs (deleted/renamed files) and should be softened before merge. Correctness
Style
SummaryThe diff is a single-line prompt wording change with no code/runtime logic touched, so blast radius is limited, but the new instruction actively steers the agent toward a brittle failure mode for routine diffs containing deletions or renames. Recommend revising the instruction text before merging. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 8937d86. Configure here.
| 2. For every file in the diff, call read_file with the path from its \`diff --git\` header so the | ||
| reviewers see the whole file, not only the hunks. If a read fails, continue with the diff | ||
| hunks for that file. | ||
| reviewers see the whole file, not only the hunks. If a read fails, stop and say so. |
There was a problem hiding this comment.
Deleted files abort the review
Medium Severity
A failed read_file now aborts the whole review. Deleted and renamed paths still appear in the diff but are gone from the tree, so those reads fail and the review never finishes — including large.diff, which deletes a file.
Reviewed by Cursor Bugbot for commit 8937d86. Configure here.
The lead reviewer's prompt told it to continue with the diff hunks when read_file failed, so a run that read none of the files still approved. Now it stops and says so. Co-authored-by: Claude <[email protected]>


The lead reviewer's prompt told it to continue with the diff hunks when read_file failed, so a run that read none of the files still approved. Now it stops and says so.
Created with Claude Code