gptscript-ai / desktop

MIT License
19 stars 13 forks source link

"Something went wrong!" message presented when switching threads when response is still being streamed. #162

Closed sangee2004 closed 1 week ago

sangee2004 commented 1 month ago

Electron app version - 0.10.0-rc3

Steps to reproduce the problem:

  1. Have multiple chat threads.
  2. From one of the threads, initiate a chat message and even before a response is streamed fully click on another thread.

This results in the following page presented to the user:

Screenshot 2024-08-14 at 3 14 53 PM

https://github.com/user-attachments/assets/ede4238a-7e8a-40d3-bde0-1cf688cfab43

g-linville commented 3 weeks ago

Moving this back into Triage and unassigning myself since I have been given other things to do.

thedadams commented 1 week ago

PR: https://github.com/gptscript-ai/desktop/pull/407

thedadams commented 1 week ago

The above PR fixed this, but I just tested after merging and it is doing something else weird. Will continue to investigate here.

thedadams commented 1 week ago

I believe this is the rest of it: https://github.com/gptscript-ai/desktop/pull/412

sangee2004 commented 1 week ago

Tested with electron build - 54ecc2c

This issue is not seen anymore.

When I quit the thread when response is still being streamed and when I revisit the same thread , I dont see this chat message/response in this thread. Will follow up on this issue separately.

sangee2004 commented 3 days ago

Logged - https://github.com/gptscript-ai/desktop/issues/500 for tracking the messages being lost in thread when it is revisted.