Skip to content

[UX] Add Chatbot Retry Button for Failed Messages in Offline State #2127

Description

@dinesh9997

Files Involved:

frontend/src/screens/ChatbotScreen.tsx

Description:

  • When the app is offline, sending a message in the chatbot prints a text message: "Unable to connect. Please check your internet connection and try again." However, the user has no quick way to retry sending the message once connection is restored. They have to type the prompt again manually.

Suggested Fix:

  • Render a "Retry" button under failed messages.
  • Implement a retry handler that pulls the originalPrompt stored in the failed message metadata and calls performSendMessage(prompt) once the network is connected.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions