Skip to content

Conversation

@yen-tt
Copy link
Collaborator

@yen-tt yen-tt commented May 6, 2024

  • created a new hook, useSendMessageWithRetries, that sends a message to the chat API, and perform retries if the API returns a 5xx status code.
  • updated ChatInput and MessageSuggestions component to use the new hook to retry once for failed 5xx responses.
  • updated ChatPanel to show a retry text next to loading dots ("Error occurred. Retrying")

Will deploy a new minor (0.9.0) once merged

J=CLIP-1189
TEST=manual&auto

see unit tests passed
see that it works as expected in test-site

retry-final.mov

@yen-tt yen-tt requested a review from a team as a code owner May 6, 2024 18:55
@yen-tt yen-tt merged commit 6aa7f23 into main May 7, 2024
@yen-tt yen-tt deleted the dev/retry-message branch May 7, 2024 14:33
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.

3 participants