anomalyco / anomalyco/opencode
[BUG] Web UI 不等待发送完成快速连点发送按钮会新建多个会话
Open
@Hona is already working on this.
Since Aug 3, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
问题描述
在 opencode 的 Web 界面中新建会话后,输入消息点击发送按钮。在消息尚未发送完成时,快速连续多次点击发送按钮,会创建并切换到多个新的会话,而不是复用当前会话。
复现步骤
- 打开 opencode Web 界面
- 新建一个会话
- 输入消息
- 不等待发送完成,快速连续点击发送按钮多次
预期行为
消息正在发送过程中,发送按钮应被禁用或忽略重复点击;重复快速点击不应创建新的会话,应复用当前会话。
实际行为
不等待发送完成快速连续点击发送按钮,会创建并切换到多个新会话,导致会话数量不断增多。
环境
- opencode 版本: v1.18.6
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.