Skip to content

[ENHANCEMENT] Spinner + countdown with rate limit triggered — please wait #7922

@hannesrudolph

Description

@hannesrudolph

Type

Enhancement

Problem

When the app is waiting to retry after a rate limit API error, the chat shows error‑like text instead of clearly indicating that a rate limit has been triggered and we’re briefly waiting.

Context

  • Affects anyone sending a message during high usage or temporary errors when automatic retry/backoff is active (including the initial wait and subsequent retries).
  • Desired behavior: show a neutral loading state with a spinner and a per‑second countdown, and clearly state that a rate limit has been triggered — please wait.

Suggested copy examples:

  • "Rate limit triggered — please wait. Retrying in 12s (attempt 2/5)"
  • "Retrying now…"

Constraints/Preferences

  • Use loading/neutral styling (not error colors); match existing “API request in progress” visuals.
  • Keep input disabled while waiting; update the countdown once per second without flicker.
  • At zero, briefly show “Retrying now…” then proceed automatically.
  • Accessible and localizable (screen reader‑friendly updates; good contrast in light/dark themes).
  • Don’t spam the timeline: treat the countdown as a single live status row rather than many separate messages.
  • If the user cancels, stop the countdown and restore normal input state.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue - In ProgressSomeone is actively working on this. Should link to a PR soon.enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Issue [In Progress]

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions