Repository navigation
fix(ui): 回复更新时保留右键菜单的键盘选项 - #452
Merged
Merged
Conversation
Qiyuanqiii
changed the base branch from
Qiyuanqiii/docs-current-state
to
main
October 22, 2026 02:41
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.
Agent 继续输出时,资源菜单会重复初始化焦点:用户已用键盘选中“复制链接”,下一段文字到达后却跳回“在浏览器中打开”,此时 Enter 会执行另一项操作。
将关闭菜单的回调与首次定位/聚焦分开,回复更新时保留当前选项;打开新菜单仍聚焦首个可用项,关闭事件继续使用最新回调。
验证:新增真实
V2Narrative流式更新回归在旧实现上失败、修复后通过;资源链接、附件与流式 Markdown 共 26 项测试通过,TypeScript 与生产构建通过。真实 Edge 页面连接 Go API 和本地确定性 SSE 模型,确认更新后仍选中“复制链接”、Enter 复制正确 URL、Esc 关闭并恢复链接焦点。两张原始截图均在下一段文字到达后拍摄,黑框显示键盘当前选项:
验收步骤和来源。基于 #432 的
Qiyuanqiii/docs-current-state。