Repository navigation
feat(chat): recall saved prompts with arrow keys - #440
Merged
Qiyuanqiii merged 2 commits intoOct 26, 2026
Merged
Conversation
Keep candidate keys ahead of prompt history and suppress selection callbacks while restoring rich-text drafts. Verify combined history, path selection, and Escape behavior.
Qiyuanqiii
changed the base branch from
Qiyuanqiii/chat-markdown-export
to
Qiyuanqiii/composer-file-path
October 21, 2026 21:24
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.
当前聊天的空输入框现在支持按 ↑ 回填上一条已发送文字;在全文开头按 ↑ 浏览更早输入,在全文末尾按 ↓ 浏览较新输入并返回空草稿。富文本和纯文本模式都保留原始 Markdown。
回填使用已保存的完整消息,覆盖当前界面尚未加载的历史页。手工编辑会退出历史浏览;IME、选区、多行光标、附件和文件/MCP 引用均保留原有操作。读取失败保留草稿,迟到的结果不会覆盖后来编辑的内容。
基于 #465(项目文件路径补全)。路径候选先处理方向键和 Enter,再处理输入历史与发送;没有新增后端接口。
最初交付验证:46 个聚焦测试、生产构建通过;Windows Edge + 真实 Go API/SQLite 验证两种编辑器的首次回填、前后浏览、返回空草稿、Markdown 保留与键盘保护。未作为原生打包窗口验证。完整验证记录。
本次组合修复:外部历史草稿回填期间暂不生成路径候选,避免富文本选区回调拿到旧正文,导致 Enter 选择文件失效。新增回归先失败后通过,最终 87 项聚焦测试和生产构建通过。
Windows Chrome + 真实 API/SQLite 已验证两种编辑模式的历史回填、候选方向键/Enter 选择、Esc 关闭候选和运行中 Esc 停止(202 后转 idle,草稿保留)。运行中沿用现有的文件引用限制,两个 Esc 场景分别实测,连续双 Esc 优先级由 Composer 集成测试覆盖。原始前后截图保留;组合记录与六张新增截图。