Skip to content

feat: improve large diff handling (CORE-246)#117

Merged
robaone-redshelf merged 1 commit into
developfrom
ar-CORE-246-increase-token-bandwidth
Sep 29, 2025
Merged

feat: improve large diff handling (CORE-246)#117
robaone-redshelf merged 1 commit into
developfrom
ar-CORE-246-increase-token-bandwidth

Conversation

@robaone-redshelf

@robaone-redshelf robaone-redshelf commented Sep 29, 2025

Copy link
Copy Markdown
Contributor

Description:

Enhanced the auto-generated pull request description logic to gracefully handle large diffs by chunking them intelligently and summarizing when necessary. Now even the most verbose commits won’t break a sweat.

Ticket:

https://virdocs.atlassian.net/browse/CORE-246

Changes: (complexity: ⚙️⚙️⚙️)

  • Added chunking strategy for large diffs
  • Implemented token estimation and chunk limits
  • Integrated fallback summary generation for extremely large diffs

Validation:

  • Tested with small, medium, and large diffs
  • Verified chunking logic preserves file boundaries
  • Confirmed Gemini API responses are parsed and formatted correctly

- Introduced chunking strategy to handle large diffs by splitting them into manageable parts.
- Added functionality to estimate token counts and create summary prompts for extremely large diffs.
- Improved error handling for API responses and ensured robust processing of diff chunks.
- Updated the main logic to generate concise pull request descriptions based on the size of the diff.
@robaone-redshelf robaone-redshelf marked this pull request as ready for review September 29, 2025 20:00
@robaone-redshelf robaone-redshelf merged commit e769851 into develop Sep 29, 2025
14 checks passed
@robaone-redshelf robaone-redshelf deleted the ar-CORE-246-increase-token-bandwidth branch September 29, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant