Skip to content

[Bug]: Buggy behaviour on chat interface if tabs are switched mid response generation #1216

@Vaisakh-r558

Description

@Vaisakh-r558

OpenRAG Version

0.4.0 dev 5

Deployment Method

uvx (uvx openrag)

Operating System

macOS Tahoe 26.3

Python Version

3.13

Affected Area

Chat (chat interface, conversations, AI responses), Frontend (Next.js UI, components)

Bug Description

The response shows blank when the user switches from Chat tab to another tab(say Knowledge or Settings) in the middle of a response being generated. The UI reaches a state that might confuse the user of the current status of the response. No helpful UI prompt generated on reloading the page either(i.e. thinking...). The response may or may not be generated eventually but an ambiguity is created from the user perspective.

Steps to Reproduce

  1. Go to chat interface.
  2. Type a question.
  3. When the response is loading switch to knowledge tab and come back.
  4. Observe the status of response generation for the prompt that was given earlier.

Screen Recording 2026-03-23 at 3.35.12 PM.zip

Expected Behavior

The loading(thinking...) text in UI must persist to indicate to the user that the response for the prompt is still being generated. On reload if the response is generated it must be shown otherwise thinking... must be present.

Actual Behavior

The "thinking" text disappears, only the chat logo is present in place of response, there is a loading icon in the send button but the state of the response becomes unclear. Also on page reload the loading icon also disappears and the chat contains the user question but no response generated.

Relevant Logs

Screenshots

Image

Additional Context

No response

Checklist

  • I have searched existing issues to ensure this bug hasn't been reported before.
  • I have provided all the requested information.

Metadata

Metadata

Assignees

Labels

bug🔴 Something isn't working.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions