Repository navigation
fix(platform): link missing-key errors to provider settings (#2375) - #2475
Merged
Merged
Conversation
cursor
Bot
force-pushed
the
cursor/fix-2375-noapikey-settings-link-6542
branch
from
July 4, 2026 11:04
166e31b to
b90acb8
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes #2375. A missing-API-key block stated the problem but offered no fix path. Now both surfaces carry a permission-aware link to provider settings:
missing_api_keyclassification, an "Open provider settings"LinkButtonto/dashboard/$id/settings/providers, or an "ask an admin" hint for members who can't manage providers.Toast.Actionlink (managers) or admin hint (others).Permission uses the existing
useAbility().can('read','developerSettings')gate (the same one the providers route uses). A11y: keyboard/SR-accessible link that dismisses the toast; semantic tokens.Checklist
bun run check— type-aware lint (0/0), typecheck clean, newchat-error-display.test.tsx(5, incl. a11y + ask-admin/no-org/non-missing cases) +message-bubble(7) + platform i18n parity (23) +@tale/uii18n (54) passing.lint:sast— N/A (Opengrep not cached).chat.openProviderSettings+chat.askAdminProviderKeyto en/de/fr (DEdu, FRtu).Test plan
Send with a model whose provider has no key → the block toast and the inline error both offer "Open provider settings" (managers) or "ask an admin" (others).