Skip to content

fix(app): show proper usage limit errors#15496

Open
neriousy wants to merge 2 commits intoanomalyco:devfrom
neriousy:feat/usage-limit-retry
Open

fix(app): show proper usage limit errors#15496
neriousy wants to merge 2 commits intoanomalyco:devfrom
neriousy:feat/usage-limit-retry

Conversation

@neriousy
Copy link
Contributor

@neriousy neriousy commented Feb 28, 2026

Issue for this PR

Closes #15495

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds in the ui a proper usage retry error with ported logic from the tui.
Found out about it while hitting usage limits for codex :(

How did you verify your code works?

  1. Hit usage limits
  2. send message

Screenshots / recordings

2026-02-28.23-20-17.mp4

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Copilot AI review requested due to automatic review settings February 28, 2026 22:23
@neriousy neriousy changed the title feat(app): show proper usage limit errors fix(app): show proper usage limit errors Feb 28, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a dedicated UI surface for “retry / usage limit” session status (ported from the TUI), so the web app can display clearer retry/limit feedback while a request is being retried.

Changes:

  • Introduces a new SessionRetry component to render retry status, countdown, and (optionally) the full error via tooltip.
  • Updates SessionTurn to render the retry UI and suppress the “thinking” shimmer during retry.
  • Adds new i18n strings for retry attempt/countdown and a Gemini-overload message across locales.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
packages/ui/src/components/session-turn.tsx Renders the new retry UI and disables “thinking” while status.type === "retry".
packages/ui/src/components/session-retry.tsx New component implementing retry message + countdown + tooltip behavior.
packages/ui/src/i18n/en.ts Adds new retry-related strings used by SessionRetry.
packages/ui/src/i18n/ar.ts Adds new retry-related strings.
packages/ui/src/i18n/br.ts Adds new retry-related strings.
packages/ui/src/i18n/bs.ts Adds new retry-related strings.
packages/ui/src/i18n/da.ts Adds new retry-related strings.
packages/ui/src/i18n/de.ts Adds new retry-related strings.
packages/ui/src/i18n/es.ts Adds new retry-related strings.
packages/ui/src/i18n/fr.ts Adds new retry-related strings.
packages/ui/src/i18n/ja.ts Adds new retry-related strings.
packages/ui/src/i18n/ko.ts Adds new retry-related strings.
packages/ui/src/i18n/no.ts Adds new retry-related strings (required since it’s typed as a full Record<Keys, string>).
packages/ui/src/i18n/pl.ts Adds new retry-related strings.
packages/ui/src/i18n/ru.ts Adds new retry-related strings.
packages/ui/src/i18n/th.ts Adds new retry-related strings.
packages/ui/src/i18n/tr.ts Adds new retry-related strings.
packages/ui/src/i18n/zh.ts Adds new retry-related strings.
packages/ui/src/i18n/zht.ts Adds new retry-related strings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bug] Web app does not show proper usage limit errors

2 participants