Skip to content

fix: show user-friendly AI generation errors - #71

Open
Chair403 wants to merge 4 commits into
Vrun-design:mainfrom
Chair403:fix/friendly-ai-generation-errors
Open

fix: show user-friendly AI generation errors#71
Chair403 wants to merge 4 commits into
Vrun-design:mainfrom
Chair403:fix/friendly-ai-generation-errors

Conversation

@Chair403

Copy link
Copy Markdown

Summary

  • map raw provider failures to stable, actionable messages
  • explain when the selected AI model is unavailable or unsupported
  • prevent unknown API responses from being exposed in the UI
  • add focused coverage for model, auth, rate-limit, server, network, and fallback errors

The existing generation failure logger continues to retain the original error for browser-console debugging.

Testing

  • git diff --check
  • focused error-mapping assertions (8 cases)
  • full Vitest suite not run locally because dependencies were unavailable in the constrained environment; CI will run the repository checks

Fixes #64

Map provider failures to safe, actionable messages without exposing raw API responses.
Cover model availability, provider failures, and unknown-error redaction.
Removed unused imports and functions related to parsing and building flow nodes and edges.
Removed tests for graphComposer functionality and mock implementations.
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.

Display user-friendly error messages for AI generation failures

1 participant