Enhancement: Multiple Prompts creating a mess in the chat
Hi,
The chat interface lacks proper status checking and a stop mechanism, allowing users to send multiple prompts while AI is still generating responses. This causes overlapping responses and unintended behavior in the chat.
Current Behavior:
- User can send new messages while previous response is still streaming
- No stop/cancel button exists to abort generation
- Multiple prompts queued up create overlapping/mixed responses
- Chat becomes difficult to follow with interleaved messages
https://github.com/user-attachments/assets/cef50af1-e924-41b3-ab10-dbb9c224119a
I'd like to work on this issue. I've identified the root cause and have a solution ready.
Will submit a PR addressing:
- Form submission blocking during streaming states
- Stop button implementation with proper event handling
- Status-based UI rendering
Please let me know if there are any preferences for the implementation approach.
@MaheshtheDev can you pls look once into this issue
@MaheshtheDev Hey is this issue still open i would like to contribute!
Hello @MaheshtheDev, can you assign this issue to me.
@MaheshtheDev could you please assign this issue to me......I would like to contribute to the team
Hey @MaheshtheDev i would like to solve this issue and contribute to the team. Solution:
- add a state based rendering stop button
- disable the send button when the chat is fetching data
- when the user clicks stop button, stop the data fetch