mirror of
https://github.com/alibaba/open-code-review.git
synced 2026-11-14 16:44:23 +08:00
* fix(llmloop): count a grace-round task_done as completion The grace round after an exhausted budget offers only code_comment and task_done, and asks the model to call task_done when it has nothing further to report. That checkpoint was discarded and RunMainTask returned completed=false, so a file the model had finished was recorded as incomplete: scan wrote review_item_failed instead of a reusable review_item_done, and a later resume re-ran it. Report grace-round completion and return it. Stops that never run a grace round, and a task_done(FAILED), are unchanged. closes #1018 * fix(llmloop): warn when a review limit reaches the grace round A task that spends its tool-request rounds or token budget and then completes in the grace round reported success with no trace of the limit, so a zero-finding result could read as clean. Record a review_limit_reached warning with the stop reason and the round's verdict, and qualify the zero-finding message in text and JSON output. Completion, the reusable checkpoint, and budget_exceeded are unchanged. * fix(llmloop): let failure veto grace-round completion --------- Co-authored-by: Kite <254839944+lizhengfeng101@users.noreply.github.com> Co-authored-by: kite <lizhengfeng.lzf@alibaba-inc.com>