Skip to content

fix(cz-git): throw an error when AI reasoning_content is empty - #260

Merged
Zhengqbbb merged 1 commit into
mainfrom
fix/ai-reasoning-content-empty_259
Aug 11, 2026
Merged

Zhengqbbb merged 1 commit into
mainfrom
fix/ai-reasoning-content-empty_259

Conversation

@Zhengqbbb

Copy link
Copy Markdown
Owner

Related ISSUE

#259

Type Of Change

  • 🐞 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • πŸ“ Document (This change requires a documentation update)
  • 🎨 Theme style (Theme style beautification)
  • ⚠ Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • πŸ”¨ Workflow (Workflow changes)

Clear Describe

  • Only reasoning_content + finish_reason=length, with no content:
  • Old behavior: if a choice exists, return [""] β†’ UI shows an empty subject.
  • New behavior: throw EmptyAICompletionError

- Only `reasoning_content` + `finish_reason=length`, with no `content`:
- Old behavior: if a choice exists, return `[""]` β†’ UI shows an empty subject.
- New behavior: throw `EmptyAICompletionError`

link: #259
@cursor

cursor Bot commented Jul 31, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@netlify

netlify Bot commented Jul 31, 2026 •

Copy link
Copy Markdown

βœ… Deploy Preview for cz-git canceled.

Name Link
πŸ”¨ Latest commit 6479df3
πŸ” Latest deploy log https://app.netlify.com/projects/cz-git/deploys/6a6c77df1f7c3e00081a4c30

@Zhengqbbb
Zhengqbbb merged commit 0e78718 into main Aug 11, 2026
10 checks passed
@Zhengqbbb
Zhengqbbb deleted the fix/ai-reasoning-content-empty_259 branch August 11, 2026 09:33
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