Skip to content

fix: retry only failed chunks in large PR reviews - #3

Closed
utsab345 wants to merge 105 commits into
mainfrom
fix/3397-retry-failed-chunks
Closed

utsab345 wants to merge 105 commits into
mainfrom
fix/3397-retry-failed-chunks

Conversation

@utsab345

Copy link
Copy Markdown
Owner

References to other Issues or PRs

Fixes The-PR-Agent#3397

Brief description of what is fixed or changed

Large PR reviews can be split into multiple model calls. If one chunk returns malformed output or raises a model error, the previous implementation discarded the successful chunks and reran the entire review with the fallback model.

This change caches the prepared chunks and successfully parsed results. Fallback attempts now retry only failed chunks, then merge all chunk results in their original order once every chunk succeeds.

Regression tests cover malformed output and model-call failures, including verification that successful chunks are not requested again.

Other comments

A review still fails when a chunk cannot be recovered by any configured model, preserving the existing fallback failure behavior.

AI Generation Disclosure

No AI was used.

Release Notes

  • pr_reviewer
    • Retry only failed large-review chunks on fallback models.

shashankvarma499 and others added 30 commits September 8, 2026 13:39
…-Agent#3201)

Signed-off-by: Shashank Varma <324153016+shashankvarma499@users.noreply.github.com>
Co-authored-by: Aurora <aurora9c69543e@atomicmail.ai>
…-Agent#3163)

Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
…ent#3219)

Co-authored-by: Aurora <aurora9c69543e@atomicmail.ai>
Co-authored-by: Aurora <aurora9c69543e@atomicmail.ai>
…#3231)

Co-authored-by: mihailchkik <Mihailchik@users.noreply.github.com>
…-Agent#3250)

Co-authored-by: Ismael Martinez Ramos <ismaelmartinez@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-authored-by: Ismael Martinez Ramos <ismaelmartinez@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
…Agent#3227)

Co-authored-by: Utsab <utsab@pr-agent.dev>
Co-authored-by: Ismael Martinez Ramos <ismaelmartinez@gmail.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
utsab345 and others added 27 commits September 13, 2026 11:32
Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
…noise (The-PR-Agent#3304)

Co-authored-by: L4XB <lukas.buck@e-mail.de>
Co-authored-by: Ricky-7-Yan <224488344+Ricky-7-Yan@users.noreply.github.com>
Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
Co-authored-by: IsmaelMartinez <ISMAELMARTINEZ@GMAIL.COM>
)

Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
Co-authored-by: IsmaelMartinez <ISMAELMARTINEZ@GMAIL.COM>
Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
Co-authored-by: Alex Tumanov <6143578+oleksii-tumanov@users.noreply.github.com>
Co-authored-by: IsmaelMartinez <ISMAELMARTINEZ@GMAIL.COM>
…gent#3359)

Co-authored-by: taljeon <taljeon@users.noreply.github.com>
Co-authored-by: Utsab <utsab@pr-agent.dev>
@github-actions github-actions Bot added the bug Something isn't working label Sep 15, 2026
@utsab345

Copy link
Copy Markdown
Owner Author

Opened against upstream as The-PR-Agent#3402.

@utsab345 utsab345 closed this Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

review: malformed chunk discards successful chunks in large-PR chunking