Skip to content

review: keep completed patch reviews when one patch fails - #583

Merged
rgushchin merged 1 commit into
sashiko-dev:mainfrom
arighi:review-keep-completed-patches
Sep 29, 2026
Merged

rgushchin merged 1 commit into
sashiko-dev:mainfrom
arighi:review-keep-completed-patches

Conversation

@arighi

@arighi arighi commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

A local review of a series collects the per-patch results and returns early on the first patch error. When the LLM fails on one patch, for example because a response was truncated by an output token limit, the completed reviews of every other patch are discarded and the command prints only the error.

Keep the results of every other patch instead. Mark a failed patch as incomplete in the patches array and include its error. The combined result is marked as partial and includes a top-level error listing the failed patches.

The text report prints the error followed by the findings from the completed patches. It does not report "no issues found" when any patch failed, and the command still exits with an error status. The progress display also marks failed patches as incomplete.

The daemon reviews one patch per worker, so a failed patch still produces a failed review that is retried. The worker now reports the patch status and any error as part of its normal result, allowing the daemon to record the application status and take the tool-error path instead of the missing-status path.

Assisted-by: LLM

@sashiko-bot

sashiko-bot Bot commented Sep 28, 2026

Copy link
Copy Markdown

Sashiko review

Commit 1/1 — 224fe273 review: keep completed patch reviews when one patch fails

  • [LOW] In src/local_review.rs (run_worker_in_worktree), the review_errors
    vector is populated with strings formatted as patch {patch_index}: {err}
    and then sorted. Because sorting strings applies a lexicographical sort,
    patches with indices 10 or higher will incorrectly sort before patch 2.
    This is a cosmetic misordering issue that affects the top-level combined
    error string for failed patches.

Full review and stage logs on sashiko.sashiko.dev

A local review of a series collects the per-patch results and returns
early on the first patch error. When the LLM fails on one patch, for
example because a response was truncated by an output token limit, the
completed reviews of every other patch are discarded and the command
prints only the error.

Keep the results of every other patch instead. Mark a failed patch as
incomplete in the patches array and include its error. The combined
result is marked as partial and includes a top-level error listing the
failed patches.

The text report prints the error followed by the findings from the
completed patches. It does not report "no issues found" when any patch
failed, and the command still exits with an error status. The progress
display also marks failed patches as incomplete.

The daemon reviews one patch per worker, so a failed patch still
produces a failed review that is retried. The worker now reports the
patch status and any error as part of its normal result, allowing the
daemon to record the application status and take the tool-error path
instead of the missing-status path.

Assisted-by: LLM
Signed-off-by: Andrea Righi <arighi@nvidia.com>
@arighi
arighi force-pushed the review-keep-completed-patches branch from 224fe27 to 4324b28 Compare September 29, 2026 05:36
@sashiko-bot

sashiko-bot Bot commented Sep 29, 2026

Copy link
Copy Markdown

Sashiko review — v2

✓ No issues found across 1 commit.

Full review log on sashiko.sashiko.dev

@rgushchin
rgushchin merged commit 4a56bce into sashiko-dev:main Sep 29, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants