Skip to content

feat(chat): stop replies with Escape from the message input - #458

Merged
Qiyuanqiii merged 4 commits into
mainfrom
Qiyuanqiii/composer-stop-shortcut
Oct 23, 2026
Merged

Qiyuanqiii merged 4 commits into
mainfrom
Qiyuanqiii/composer-stop-shortcut

Conversation

@Qiyuanqiii

@Qiyuanqiii Qiyuanqiii commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

在聊天正文输入框按 Esc 可停止当前回复,原停止按钮同时显示快捷键提示。快捷键调用同一个停止按钮,沿用已有权限、停止状态和操作去重;未提交草稿保留。

基于 #454。仅正文输入区处理无修饰键的 Esc;输入法组字、按键连发、附件/模型菜单、弹窗和其他编辑区域保留各自行为。富文本编辑器原有 Esc 处理会消费事件,因此在限定输入区域的捕获阶段处理实际停止。

验证:94 项相关 React 测试、生产构建、journey 构建和协议检查通过。Windows Chrome 中用真实生产 API 分别验证富文本/纯文本:停止请求返回 202,执行状态随后为 idle、last_turn_interrupted=true;未提交草稿不变,菜单内 Esc 不会停止。macOS 原生窗口未验证。

变更前 变更后
Esc后仍在运行 Esc停止且保留草稿

停止按钮快捷键提示

真实截图来源和验证记录。专用等待场景仅存在于 workbenchjourney 构建标签下的离线模型,使用真实请求取消,未替换停止 API 响应。

2026-10-22 基线同步:以保留祖先的合并方式同步 #454(a07575e9ee863f94cf65d5add5623d27b7358d69),继承 #450 的 113756e10125a84c619e226b68ec840415513eef 及 #432 的 fc0935d6fc03ca7abccbd148ce52d26c2bc154f8 Chrome 握手/DMG Resource busy 修复。相对本 PR 同步前提交,仅增加该修复的 4 个文件;diff 检查通过,原功能说明、验证记录和截图保留。本次未重复运行测试或截图;最新提交的 CI 尚未完成,不能沿用旧提交的结果。

@Qiyuanqiii
Qiyuanqiii force-pushed the Qiyuanqiii/chat-read-state-api branch 5 times, most recently from ff3e125 to 25508fe Compare October 23, 2026 16:58
Base automatically changed from Qiyuanqiii/chat-read-state-api to main October 23, 2026 16:59
@Qiyuanqiii
Qiyuanqiii merged commit 6b135f5 into main Oct 23, 2026
1 check passed
@Qiyuanqiii
Qiyuanqiii deleted the Qiyuanqiii/composer-stop-shortcut branch October 28, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant