gptscript-ai / desktop

MIT License
22 stars 13 forks source link

`Application error: a client side exception has occurred` error seen and application has to closed when trying to send messages when in "Waiting for model response" state #494

Open sangee2004 opened 2 months ago

sangee2004 commented 2 months ago

Electron Build - ceefbf85

Steps to reproduce the problem:

  1. Start a chat with assistant
  2. When we are still in `waiting for model response.." state , send a chat message.

User gets presented with the following error page . Only way to get around this to quit the app.

Screenshot 2024-09-11 at 9 41 34 AM

https://github.com/user-attachments/assets/ff8ff043-c80e-433b-9c69-bd75ebf4d865

Errors seen in logs:

2024-09-11T16:43:50.883Z [client] [ERROR] TypeError: Cannot read properties of undefined (reading 'name')
2024-09-11T16:43:50.886Z [client] [ERROR] TypeError: Cannot read properties of undefined (reading 'name')
2024-09-11T16:43:51.977Z [client] [ERROR] Error: Minified React error #310; visit https://react.dev/errors/310 for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
tybalex commented 2 months ago

what I did in the past is: freeze the send button when it is waiting for model response. ChatGPT does the same thing, except they allow you to terminate it.

cjellick commented 2 months ago

I'll live with this bug for now