Skip to content

fix(api): fail ai-generate provider errors - #122

Draft
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/critical-bug-management-f063
Draft

fix(api): fail ai-generate provider errors#122
cursor[bot] wants to merge 3 commits into
mainfrom
cursor/critical-bug-management-f063

Conversation

@cursor

@cursor cursor Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Stop OpenAI, Gemini, and xAI ai-generate provider failures from being coerced into ok:true empty responses.
  • Return non-2xx API errors for provider non-2xx or empty output so authenticated credit calls are refunded by the existing finalizer.
  • Add a focused regression guard and wire it into npm test.

Validation

  • node tests/ai-generate-provider-errors.test.mjs
  • npm run build
  • npm test
Open in Web View Automation 

cursoragent and others added 3 commits August 12, 2026 05:07
Co-authored-by: Deesmo <Deesmo@users.noreply.github.com>
Co-authored-by: Deesmo <Deesmo@users.noreply.github.com>
Co-authored-by: Deesmo <Deesmo@users.noreply.github.com>
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