Repository navigation
perf: review only what a push changed and keep paid batches when one batch fails - #19
Merged
Merged
Conversation
…batch fails Every push re-reviewed the whole pull request: a one-commit follow-up on a 114-file PR cost about $7 and 2.7M tokens. A push after a finished review now reviews only the PR files changed since that head, in one review, as long as they fit; a force push or a larger change still reviews the whole PR, and a push that changes nothing in the PR diff completes without posting. One batch whose model output could not be used failed the whole review and discarded every batch already paid for. Such a batch is now reported as not reviewed and the review continues; billing, quota, credentials, a changed PR and ambiguous provider outcomes still stop it.
…ed base and isolate only bad model output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Changes
Review only what a push could have changed
Anchor. A new review action records
reviewSince = {headSha, mergeBaseSha, uncoveredPaths}from the last review that finished with a complete coverage record.uncoveredFilesand its uncovered list was not cut short.Scope. On the next push, the scope is:
It is reviewed as one review when it fits 60 files and the single diff budget. The summary says "Reviewed the N files affected since
<sha>".When the whole PR is reviewed again:
No model call is made when nothing reviewable changed:
no_new_changeswithout posting.Publication of a follow-up review re-reads only the files its findings and evidence need.
Keep paid batches when one batch fails
Review
Tests
bun run lint,typecheck,format:check,buildand all 1914 tests pass.🤖 Generated with Claude Code