Repository navigation
fix(review): only checkpoint completed review items - #2088
Open
Leeminjing wants to merge 1 commit into
Open
Leeminjing wants to merge 1 commit into
Leeminjing wants to merge 1 commit into
Conversation
Contributor
|
✅ OpenCodeReview: Review complete: 0 finding(s) across 6 selected item(s). |
Leeminjing
marked this pull request as ready for review
November 25, 2026 06:28
This branch has not been deployed
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.
Description
A budget stop could turn a file with a confirmed finding into a completed checkpoint even when its review group never finished. Resuming could skip that file. A single-file run could also appear complete to the GitHub Action and advance the cross-push checkpoint.
ocr session commentscan read them.partialwhen all selected items stopped but there are confirmed findings. The CLI can still exit0for a budget-only partial, and the Action can publish findings while carrying forward the existing checkpoint.--resume. Files from a successfully completed group remain reusable, including when the final submission completed the group or it had zero findings.Type of Change
How Has This Been Tested?
make testpasses locally with the race detector in a Go 1.26.10 Linux container using Git 2.47.3.0andpartial, preserved one session finding, and producedreused_files=0andrerun_files=1with one new model request. A successful final submission producedreused_files=1and no new requests.ocr review --audience agentcompleted. Its findings concerned hard-failure comment persistence and non-budget exit status. This patch follows the existing hard-failure handling and non-budget exit policy.make check,make build,make coverage(91.5%), andnpm run test:github-actionspassed. The existing checkpoint carry-forward test now verifies publication, an emptycheckpoint_after, and retention of the old checkpoint on the same partial run.Checklist
AI/LLM Disclosure
OpenAI Codex (GPT-6) assisted with the implementation, tests, documentation, and contribution drafts. The pre-commit OpenCodeReview run completed with
deepseek-flash. A fallback run useddeepseek-v4-flash-vision-expwhile the primary review was pending.Related Issues
Closes #2087. Related to the resume contract in #786.