[PR #11457] fix(changelog): prevent AI error messages in release notes #13797

Open
opened 2026-02-16 18:18:37 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11457

State: open
Merged: No


Empty commit messages caused AI to respond with error text that became changelog entries.

Fix:

  • Skip commits with empty messages in getCommits
  • Throw error if empty message reaches summarizeCommit
  • Validate AI returns non-empty summary

Reproduced with claude-sonnet-4-5 - AI responds with 'I need a commit message to summarize...' when message is empty.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11457 **State:** open **Merged:** No --- Empty commit messages caused AI to respond with error text that became changelog entries. **Fix:** - Skip commits with empty messages in getCommits - Throw error if empty message reaches summarizeCommit - Validate AI returns non-empty summary > Reproduced with claude-sonnet-4-5 - AI responds with 'I need a commit message to summarize...' when message is empty.
yindo added the pull-request label 2026-02-16 18:18:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13797