anomalyco / anomalyco/opencode

[BUG] Web UI 不等待发送完成快速连点发送按钮会新建多个会话

Open
#40,224 1 comment 0 reactions 1 assignee View on GitHub

@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 界面中新建会话后,输入消息点击发送按钮。在消息尚未发送完成时,快速连续多次点击发送按钮,会创建并切换到多个新的会话,而不是复用当前会话。

复现步骤
  1. 打开 opencode Web 界面
  2. 新建一个会话
  3. 输入消息
  4. 不等待发送完成,快速连续点击发送按钮多次
预期行为

消息正在发送过程中,发送按钮应被禁用或忽略重复点击;重复快速点击不应创建新的会话,应复用当前会话。

实际行为

不等待发送完成快速连续点击发送按钮,会创建并切换到多个新会话,导致会话数量不断增多。

环境
  • opencode 版本: v1.18.6

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.