Skip to content

Prompts: failed suggestion loads are indistinguishable from "no suggestions" #592

Closed

Description

@gkhngyk

Problem

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.

Evidence

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

  1. added
    bug
    good first issue
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    buggood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions