Skip to content

fix: show clear message when widget hits token budget (429) - #53

Open
VedantPatel04 wants to merge 1 commit into
extra-org:mainfrom
VedantPatel04:fix/widget-token-budget-429-message
Open

fix: show clear message when widget hits token budget (429)#53
VedantPatel04 wants to merge 1 commit into
extra-org:mainfrom
VedantPatel04:fix/widget-token-budget-429-message

Conversation

@VedantPatel04

@VedantPatel04 VedantPatel04 commented Jul 26, 2026

Copy link
Copy Markdown

Skip the non-streaming fallback on ConversationTokenBudgetExceeded and tell users to start a new chat instead of the "Something went wrong" message displayying.

Tested using make check as well, run is clean.

Closes #50

Skip the non-streaming fallback on ConversationTokenBudgetExceeded and tell users to start a new chat instead of a misleading retry prompt.

Co-authored-by: Cursor <cursoragent@cursor.com>
@AmitAvital1

Copy link
Copy Markdown
Collaborator

Hi, FE layer should be stateless as much as can, who handling the error should be BE and FE only parsing it or maybe detailed it with human read able string. GENERIC ERROR should be only if we got error not known but here we should upstream dedicated error

@AmitAvital1 AmitAvital1 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

BTW As i said some other already opened PR so you can work in parallel but you can just pick other issue :)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Widget shows generic "Something went wrong" when a conversation hits the token budget (429)

2 participants