Skip to content

fix(agents): Add error boundary around ModelsTable#110509

Merged
priscilawebdev merged 2 commits intomasterfrom
priscila/fix/models-table-error-boundary
Mar 13, 2026
Merged

fix(agents): Add error boundary around ModelsTable#110509
priscilawebdev merged 2 commits intomasterfrom
priscila/fix/models-table-error-boundary

Conversation

@priscilawebdev
Copy link
Member

Wrap ModelsTable with <ErrorBoundary mini> on the agent models landing page so that rendering errors (e.g. null modelId hitting .toLowerCase()) are contained within the table instead of crashing the entire page.

This follows the existing pattern of wrapping table consumers at the call site. The widget footer error boundary was added in #110506 but ModelsTable (a standalone GridEditable table) was unprotected.

Refs #110505

Wrap ModelsTable with an ErrorBoundary so that rendering errors in the models table (e.g. null modelId) are contained instead of crashing the entire page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Mar 12, 2026
@priscilawebdev priscilawebdev requested a review from a team March 12, 2026 08:45
@priscilawebdev priscilawebdev marked this pull request as ready for review March 12, 2026 08:46
@priscilawebdev priscilawebdev requested a review from a team as a code owner March 12, 2026 08:46
Copy link
Member

@gggritso gggritso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, though why are the types lying about modelId? If it's possible for that to error at runtime, we should change the type!

@priscilawebdev
Copy link
Member Author

Makes sense, though why are the types lying about modelId? If it's possible for that to error at runtime, we should change the type!

I did update the types in the PR https://github.com/getsentry/sentry/pull/110505/changes 😉

@priscilawebdev priscilawebdev merged commit 5f194bc into master Mar 13, 2026
63 checks passed
@priscilawebdev priscilawebdev deleted the priscila/fix/models-table-error-boundary branch March 13, 2026 08:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants