You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(gateway): surface in-stream errors from Zoo and Vercel AI gateways
Once a gateway response starts streaming the HTTP status is already 200, so
upstream failures (e.g. provider rate limits) arrive as an in-band error chunk
rather than a thrown HTTP error. Both handlers ignored these chunks, so the
extension showed a generic "no response" instead of the real reason.
- zoo-gateway: detect the error chunk and rebuild it into an Error carrying
status/code so the existing classify/surface logic handles it (sign-in,
add-credits, budget, etc.), and the upstream message reaches the user.
- vercel-ai-gateway: detect the error chunk and throw the upstream message.
- Add unit tests covering both handlers and the toGatewayStreamError mapping.
Co-authored-by: Cursor <cursoragent@cursor.com>
0 commit comments