Repository navigation
feat(chat): stop replies with Escape from the message input - #458
Merged
Merged
Conversation
This was referenced Oct 21, 2026
Merged
Qiyuanqiii
force-pushed
the
Qiyuanqiii/chat-read-state-api
branch
5 times, most recently
from
October 23, 2026 16:58
ff3e125 to
25508fe
Compare
… resolved to main
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
在聊天正文输入框按 Esc 可停止当前回复,原停止按钮同时显示快捷键提示。快捷键调用同一个停止按钮,沿用已有权限、停止状态和操作去重;未提交草稿保留。
基于 #454。仅正文输入区处理无修饰键的 Esc;输入法组字、按键连发、附件/模型菜单、弹窗和其他编辑区域保留各自行为。富文本编辑器原有 Esc 处理会消费事件,因此在限定输入区域的捕获阶段处理实际停止。
验证:94 项相关 React 测试、生产构建、journey 构建和协议检查通过。Windows Chrome 中用真实生产 API 分别验证富文本/纯文本:停止请求返回 202,执行状态随后为 idle、last_turn_interrupted=true;未提交草稿不变,菜单内 Esc 不会停止。macOS 原生窗口未验证。
真实截图来源和验证记录。专用等待场景仅存在于 workbenchjourney 构建标签下的离线模型,使用真实请求取消,未替换停止 API 响应。
2026-10-22 基线同步:以保留祖先的合并方式同步 #454(
a07575e9ee863f94cf65d5add5623d27b7358d69),继承 #450 的113756e10125a84c619e226b68ec840415513eef及 #432 的fc0935d6fc03ca7abccbd148ce52d26c2bc154f8Chrome 握手/DMG Resource busy 修复。相对本 PR 同步前提交,仅增加该修复的 4 个文件;diff 检查通过,原功能说明、验证记录和截图保留。本次未重复运行测试或截图;最新提交的 CI 尚未完成,不能沿用旧提交的结果。