You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prompts: failed suggestion loads are indistinguishable from "no suggestions" #592
When the prompt suggestions card fails to load, the error is swallowed into console.error and no error state is set. Because setLoaded(true) is skipped on failure, the card renders the same "No suggestions right now" empty state as a genuinely empty result — telling the user to click Refresh when the real problem was a failed request.
The empty state that gets shown instead: #L214-L230
The pattern to copy is a few lines below in the same file: handleRefresh surfaces failures via toast.error (#L107-L119)
Suggested fix
On catch, set an error flag and render a distinct "Couldn't load suggestions" state with a retry button (re-invoking load()), or at minimum fire the same toast.error that handleRefresh already uses.
Acceptance criteria
A failed load is visually distinguishable from "no suggestions available".
The user has an explicit retry affordance after a failure.
Activity