Skip to content

feat(chat): recall saved prompts with arrow keys - #440

Merged
Qiyuanqiii merged 2 commits into
Qiyuanqiii/composer-file-pathfrom
Qiyuanqiii/prompt-history
Oct 26, 2026
Merged

Qiyuanqiii merged 2 commits into
Qiyuanqiii/composer-file-pathfrom
Qiyuanqiii/prompt-history

Conversation

@Qiyuanqiii

@Qiyuanqiii Qiyuanqiii commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

当前聊天的空输入框现在支持按 ↑ 回填上一条已发送文字;在全文开头按 ↑ 浏览更早输入,在全文末尾按 ↓ 浏览较新输入并返回空草稿。富文本和纯文本模式都保留原始 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 集成测试覆盖。原始前后截图保留;组合记录与六张新增截图。

组合后选择项目文件

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
Qiyuanqiii changed the base branch from Qiyuanqiii/chat-markdown-export to Qiyuanqiii/composer-file-path October 21, 2026 21:24
@Qiyuanqiii
Qiyuanqiii merged commit dcfc6e3 into Qiyuanqiii/composer-file-path Oct 26, 2026
29 checks passed
@Qiyuanqiii
Qiyuanqiii deleted the Qiyuanqiii/prompt-history branch October 26, 2026 10:52
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