The stop button only stops the streaming to the UI and does not actually stop the generation so that you can start over.
Steps to reproduce:
- Generate some long text. Example: "write a 1000 character essay about the feelings of potatoes."
- As it is streaming in the results hit "stop"
- You will see that the streaming has stopped but if you hit "regenerate" button or if you edit and submit the previous message you get the "only one request at a time error"
- Refresh the page and you will see the generation completed in the background and never actually stopped.
Expected result:
Hitting stop should interrupt the generation and allow the user to fix something without having to wait until the completion is fully generated.
Actual result:
The streaming stops in the UI but the user gets errors when when trying to generate a new completion.
Additional information
Browser: Chrome Version 115.0.5790.102
OS: Windows 11