fix(desktop): set default WebSocket username and prevent repeated calling of terminal spawn properly closing the terminal#17061
Conversation
…ling of terminal spawn properly closing the terminal
|
@adamdotdevin I might need your input in here.
Im thinking if we can solve number |
…word are provided for server connection
|
I decided to go ahead and implement I reverted back to the |
Issue for this PR
Closes #17058
Type of change
What does this PR do?
Currently if you dont pass in a username when adding an authenticated opencode server, the desktop tries to spawn and connect to the terminal ws without a username and causes a 401 error. Also when this happens rather than the terminal closing it just keeps trying to connect to the terminal ws causing the desktop to attack the server till it crashes.
This PR does the following
How did you verify your code works?
Tested on my local machine, with a remote opencode server running on railway and connecting to it on my local dev desktop build with the changes.
Screenshots / recordings
Checklist