A cache entry cannot be overwritten, so the fixed key restored the same old
snapshot on every later run and no progress made after it survived. Save each
run under its own key and restore the newest one, and cache the OCR session
records only: the checkout is rebuilt from scratch every run, which is what
keeps files the new head deleted out of the review.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The review switch read the previous-review record before it was fetched, so
every automatic review would have thrown before publishing anything.
Also fixed: a reused checkout now drops files the new head deleted; the round
loop merges every round's findings instead of keeping only the last; the
session cleanup honours its keep switch and leaves other files alone; the state
cache keeps one entry per pull request instead of one per run; and the job
timeout covers all three review rounds.
A resumed review still keeps its full budget.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
OpenCodeReview settles files one by one and records each verdict, but the
workflow deleted every session when the job ended, so a review that ran out of
its token budget had to buy the same files again next time. A large pull
request could never finish.
Keep the session records and the checkout between runs, continue a same-range
review up to two extra rounds, and resume from the last incomplete review of
this very revision. A new push still reviews its own range, and an incomplete
review never anchors an incremental one: that would leave its unfinished files
unreviewed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci: raise PR review token budgets
Most medium and large reviews stopped on the token budget before covering
the whole diff. Raise the budgets and time limits, keep partial results when
some review tasks fail, and log actual token usage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci: report why OCR review items failed
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>