Skip to content

fix: merge batch summaries so narrative appears on multi-batch PRs - #16

Merged
dsiddharth2 merged 1 commit into
mainfrom
fix/batch-summary-merge
May 8, 2026
Merged

fix: merge batch summaries so narrative appears on multi-batch PRs#16
dsiddharth2 merged 1 commit into
mainfrom
fix/batch-summary-merge

Conversation

@dsiddharth2

Copy link
Copy Markdown
Owner

@

Summary

  • _merge_results() in BatchReviewJob collected findings, usage, and fix_verifications from each batch but silently dropped the summary field — multi-batch PRs (large PRs like PR 5703 with 315 files) never showed the 📝 Overall Summary section while single-batch PRs (like PR 6598) did
  • Batch summaries are now collected and joined into the merged findings output
  • summary is now required in findings-schema.json so the agent always produces one

Test plan

  • 3 new unit tests: summaries merge, no summary when absent, empty summaries skipped
  • Run a multi-batch review on a large PR and verify the Overall Summary section appears in the PR comment
    @

_merge_results() collected findings, usage, and fix_verifications from
each batch but silently dropped the summary field. Single-batch PRs
preserved it end-to-end while multi-batch PRs (large PRs) always lost
it, causing the Overall Summary section to be missing from the PR
comment.

Also make summary required in findings-schema.json so the agent always
produces one.
@dsiddharth2
dsiddharth2 merged commit e6baeb0 into main May 8, 2026
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.

1 participant