Skip to content

fix: v3.0.1 — Gemma summary fallback#120

Merged
anjerodev merged 2 commits into
mainfrom
fix/3.0.1-gemma-summary-fallback
Jun 17, 2026
Merged

fix: v3.0.1 — Gemma summary fallback#120
anjerodev merged 2 commits into
mainfrom
fix/3.0.1-gemma-summary-fallback

Conversation

@anjerodev

Copy link
Copy Markdown
Owner

Summary

  • Fix commit generation failing with "No readable staged diffs" on models like Gemma
  • Stop caching low-quality summaries so bad model output is not reused
  • Add diff-based fallback summaries when the model returns generic or empty text
  • Use repo-relative paths for diffIndexWithHEAD
  • Bump version to 3.0.1

Why

Gemma (and similar models) often return generic summaries like "no changes". Those were cached before filtering, so every retry reused the same useless summary and commit generation failed even with valid staged diffs.

Test plan

  • pnpm run build
  • pnpm test (43 passing)
  • Manual test with Gemma — commit generation works
  • Merge with Release label to publish v3.0.1

Made with Cursor

Stop caching generic summaries from weaker models like Gemma, fall back to
diff-based summaries when summarization fails, and use repo-relative paths
for staged diffs. Bump version to 3.0.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
@anjerodev anjerodev merged commit 2f6d08c into main Jun 17, 2026
1 check passed
@anjerodev anjerodev deleted the fix/3.0.1-gemma-summary-fallback branch June 17, 2026 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant