[WEB-UI] No new session can be started #8795

Open
opened 2026-02-16 18:10:52 -05:00 by yindo · 10 comments
Owner

Originally created by @LeonMueller-OneAndOnly on GitHub (Feb 7, 2026).

Originally assigned to: @adamdotdevin on GitHub.

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

  1. Start opencode server opencode serve --hostname localhost --port 4096

  2. Open WebUI

  3. Open new session

  4. Try to send first prompt

Screenshot and/or share link

https://github.com/user-attachments/assets/1a423c8e-19a2-46c6-80c4-08dca8ce6797
Image

Operating System

macOS

Terminal

Browser - Firefox / Zen and also iPhone Safari

Originally created by @LeonMueller-OneAndOnly on GitHub (Feb 7, 2026). Originally assigned to: @adamdotdevin on GitHub. ### 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 1. Start opencode server `opencode serve --hostname localhost --port 4096` 2. Open WebUI 3. Open new session 4. Try to send first prompt ### Screenshot and/or share link https://github.com/user-attachments/assets/1a423c8e-19a2-46c6-80c4-08dca8ce6797 ![Image](https://github.com/user-attachments/assets/1cc65a11-2b19-4c6a-aec3-011e293e9d42) ### Operating System macOS ### Terminal Browser - Firefox / Zen and also iPhone Safari
yindo added the bugweb labels 2026-02-16 18:10:52 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 7, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #12271: opencode web: child session created with ?directory= returns empty body on POST /session/{id}/message
  • #11922: Text duplication when starting a new session
  • #10578: New session UI disappears when stored session list response is late
  • #12453: Web UI: 'Failed to send prompt' false alarm on mobile browsers
  • #12239: Prompt input content is lost when changing sessions via command dialog more than once
  • #10617: last submitted prompt comes back into input on refresh (web/app)
  • #9230: Web UI spawns duplicate MCP server waves during active session
  • #11863: Web UI: client-generated message IDs cause infinite processing loop when client/server clocks diverge

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 7, 2026): This issue might be a duplicate of existing issues. Please check: - #12271: opencode web: child session created with ?directory= returns empty body on POST /session/{id}/message - #11922: Text duplication when starting a new session - #10578: New session UI disappears when stored session list response is late - #12453: Web UI: 'Failed to send prompt' false alarm on mobile browsers - #12239: Prompt input content is lost when changing sessions via command dialog more than once - #10617: last submitted prompt comes back into input on refresh (web/app) - #9230: Web UI spawns duplicate MCP server waves during active session - #11863: Web UI: client-generated message IDs cause infinite processing loop when client/server clocks diverge Feel free to ignore if none of these address your specific case.
Author
Owner

@ccjeaty commented on GitHub (Feb 7, 2026):

same here.

@ccjeaty commented on GitHub (Feb 7, 2026): same here.
Author
Owner

@getjake commented on GitHub (Feb 8, 2026):

Same here.

@getjake commented on GitHub (Feb 8, 2026): Same here.
Author
Owner

@shengliangd commented on GitHub (Feb 9, 2026):

Same here.

@shengliangd commented on GitHub (Feb 9, 2026): Same here.
Author
Owner

@mentoster commented on GitHub (Feb 9, 2026):

I have //session error in web console, will provide more info at home

@mentoster commented on GitHub (Feb 9, 2026): I have //session error in web console, will provide more info at home
Author
Owner

@mentoster commented on GitHub (Feb 9, 2026):

Yea, thats https://github.com/anomalyco/opencode/issues/12840

@mentoster commented on GitHub (Feb 9, 2026): Yea, thats https://github.com/anomalyco/opencode/issues/12840
Author
Owner

@mykcryptodev commented on GitHub (Feb 9, 2026):

any known workarounds?

@mykcryptodev commented on GitHub (Feb 9, 2026): any known workarounds?
Author
Owner

@mentoster commented on GitHub (Feb 10, 2026):

Sometimes reloading helps, but it's unpredictable. I'll wait for a hotfix and then immediately update the opencode

@mentoster commented on GitHub (Feb 10, 2026): Sometimes reloading helps, but it's unpredictable. I'll wait for a hotfix and then immediately update the opencode
Author
Owner

@gareys commented on GitHub (Feb 10, 2026):

Opening a session in another project, then going back to the new session where you couldn't submit usually fixes the problem for me.

@gareys commented on GitHub (Feb 10, 2026): Opening a session in another project, then going back to the new session where you couldn't submit usually fixes the problem for me.
Author
Owner

@ylxdzsw commented on GitHub (Feb 11, 2026):

1.1.56 fixed it for me

@ylxdzsw commented on GitHub (Feb 11, 2026): 1.1.56 fixed it for me
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8795