Description
When trying to open a new session and sending the first message, the message can't be submitted.
Instead a lot of new session are created, all with a new placeholder name. In none of them the typed message is sent and the text input is also not cleared.
These newly created session are not even created in the same workspace / directory path.
I attach a screen recoding of me trying to submit a prompt in a new session and then a screenshot of the other workspace / directory where these empty placeholder session are created.
The new session are created in the base directory the server is running in.
In exisiting sessions new messages can be send without a problem.
Additonal debugging
This only happens when the root workspace ~ is opened as a directory in the webUI.
Correction: This also happens when this is not the case, this also happens often when this is not the case.
The server is also started from that directory.
Correction: This also happens when starting the server in a specific project folder.
So there exists a workaround, the webUI needs to be reloaded once after removing/closing this root directory for it to work.
Correction: Not true, no reliable workaround found yet
Plugins
none
OpenCode version
1.1.53
Steps to reproduce
-
Start opencode server opencode serve --hostname localhost --port 4096
-
Open WebUI
-
Open new session
-
Try to send first prompt
Screenshot and/or share link
https://github.com/user-attachments/assets/1a423c8e-19a2-46c6-80c4-08dca8ce6797

Operating System
macOS
Terminal
Browser - Firefox / Zen and also iPhone Safari
Description
When trying to open a new session and sending the first message, the message can't be submitted.
Instead a lot of new session are created, all with a new placeholder name. In none of them the typed message is sent and the text input is also not cleared.
These newly created session are not even created in the same workspace / directory path.
I attach a screen recoding of me trying to submit a prompt in a new session and then a screenshot of the other workspace / directory where these empty placeholder session are created.
The new session are created in the base directory the server is running in.
In exisiting sessions new messages can be send without a problem.
Additonal debugging
This only happens when the root workspace ~ is opened as a directory in the webUI.
Correction: This also happens when this is not the case, this also happens often when this is not the case.
The server is also started from that directory.
Correction: This also happens when starting the server in a specific project folder.
So there exists a workaround, the webUI needs to be reloaded once after removing/closing this root directory for it to work.
Correction: Not true, no reliable workaround found yet
Plugins
none
OpenCode version
1.1.53
Steps to reproduce
Start opencode server
opencode serve --hostname localhost --port 4096Open WebUI
Open new session
Try to send first prompt
Screenshot and/or share link
https://github.com/user-attachments/assets/1a423c8e-19a2-46c6-80c4-08dca8ce6797

Operating System
macOS
Terminal
Browser - Firefox / Zen and also iPhone Safari