Phone webui - enter key breaks up the slash command

未关闭 适合新手
#67,835 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
70/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
frontend, mobile

调研方向

首先跟踪移动端 Web UI 的斜杠命令输入和命令停靠栏的行为,然后将其与 pull request #61773 引入的更改进行比较。在移动版 Chrome 中输入/compa并按 Enter,以重现问题。高亮的命令能够执行,且不会插入换行或取消斜杠命令时,即为完成。

由索引模型根据 Issue 内容生成。

描述

area/web platform/android platform/windows type/feature version/v2
Description

After experiencing https://github.com/anomalyco/opencode/issues/62647 on the desktop, I realized that slash commands are canceled and broken into a new line by pressing enter. I reproduced the same on webui on mobile chrome.

I think it was introduced in https://github.com/anomalyco/opencode/pull/61773.

Fix request:
On mobile Enter should not break the line if we started typing a slash command and the command dock is displayed.

Plugins

No response

OpenCode version

2.4.3

Steps to reproduce
  1. Start webserver and open it on mobile
  2. Start typing /compa using virtual keyboard.
  3. Press Enter

The highlighted command doesn't execute.

Screenshot

No response

Operating System

opencode served on Windows, Android + Chrome mobile client.

Terminal

No response

主要语言
TypeScript
星标
230k
派生
31.3k
平均合并
6 小时
30 天内合并 PR
528

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

anomalyco/opencode 的其他 Issue

查看 anomalyco/opencode 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。