Skip to content

fix(app): preserve temporary provider failures in key validation - #117

Open
rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/provider-unavailable
Open

rudycelekli wants to merge 1 commit into
CopilotKit:mainfrom
rudycelekli:fix/provider-unavailable

Conversation

@rudycelekli

Copy link
Copy Markdown

The agent marks transient provider outages/rate limits with code provider_unavailable and HTTP503, but the proxy converts them to400. Preserve503 for that safe known code so callers can distinguish a temporary outage from invalid input.

Validation: the added regression fails on upstream 9c982df1a16b734a49d8dd9d1c29b0e4b1b1805b and passes with this change. The complete frontend Vitest suite and TypeScript check pass locally on Node 24.19.0.

Prepared with AI assistance and independently reviewed by another agent before submission. Provider calls are mocked; this does not establish live model-provider behavior.

Combined integration checks pass: 249 Node tests, 157 Python tests, TypeScript, frontend lint (0 errors, 2 warnings), and the production workspace build. These combined results belong to the private integration branch; each PR also has its own focused regression and relevant suite results above. Live provider behavior is untested.

Independent AI review passed on this exact head. Nine isolated production-browser checks passed for the combined chat shell/key dialog and QR request flow; no page errors. No live provider calls were made.

This branch has not been deployed

No deployments
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