fix: add custom fallback to AIChatPanel ErrorBoundary - #536
Conversation
Closes piyushdotcomm#526 The ErrorBoundary already wrapped AIChatPanel but had no custom fallback, so a crash showed only the generic 'Something went wrong' message with no recovery path specific to the chat panel. Adds a positioned fallback UI that shows 'AI Chat crashed' with a 'Reload Chat' reset button, matching the editor ErrorBoundary quality in editor-area.tsx. The chat panel crashes in isolation without affecting the rest of the playground.
|
Warning Review limit reached
Next review available in: 25 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
👋 Thanks for opening a PR, @Somil450!Your PR has entered the 🚦 PR Review Pipeline.
What happens next
A pipeline status comment will appear below and update automatically as your PR progresses. While you wait
This comment is posted only once. |
PR Summary by QodoAdd AI Chat crash fallback UI to PlaygroundModals ErrorBoundary
AI Description
Diagram
High-Level Assessment
Files changed (1)
|
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTo customize comments, go to the Qodo configuration screen, or learn more in the docs. |
Summary
Closes #526
Adds a dedicated crash fallback UI to the
AIChatPanelErrorBoundaryinplayground-modals.tsx.Context
Both
ErrorBoundarywraps were already in place:ErrorBoundarybut no custom fallback, falling back to the generic "Something went wrong" messageChange
The fallback is
position: fixedso it floats at the bottom-right where the chat sheet would normally appear, giving users a clear recovery path without affecting the rest of the playground.Files Changed
modules/playground/components/playground-modals.tsx- 13 lines added