Skip to content

feat(chat): search saved messages within the current chat - #446

Merged
Qiyuanqiii merged 1 commit into
mainfrom
Qiyuanqiii/current-chat-search
Oct 23, 2026
Merged

Qiyuanqiii merged 1 commit into
mainfrom
Qiyuanqiii/current-chat-search

Conversation

@Qiyuanqiii

Copy link
Copy Markdown
Member

当前对话内查找可以检索全部已保存正文,并直接跳到匹配消息。侧栏新增“所有聊天 / 当前聊天”范围切换;Ctrl/Cmd+F 打开当前聊天搜索,Ctrl/Cmd+K 保持全局搜索。窄屏从关闭状态打开搜索时,会在侧栏可交互后聚焦输入框。

HTTP 搜索新增可选 thread_id,分页游标绑定搜索范围。分支继承的公开助手回复也进入搜索候选,并沿用公开投影及脱敏规则。

基于 #437,依赖其完整消息读取接口。请先合并 #437;本 PR 保持未合并。

验证:Go 搜索、全文读取、OpenAPI 和项目移动相关测试通过;93 项相关 React 测试通过,最终焦点调整后再次通过 19 项搜索测试;API 生成检查、生产构建、协议登记检查通过。真实 Windows Chrome + Go API + SQLite 已验证范围切换、保存消息定位、390px 搜索重开及焦点。生成文件经工具核对;生产代码、新增测试、文档和截图由主 agent 审阅。未验证原生桌面打包程序。

变更前:全部聊天匹配 变更后:当前聊天正文及定位
变更前 变更后

390px 窄屏

实际验证范围与截图说明

@Qiyuanqiii
Qiyuanqiii added this pull request to stack #480 October 23, 2026 16:54
@Qiyuanqiii
Qiyuanqiii force-pushed the Qiyuanqiii/current-chat-search branch from 3dac0ec to 3f43edf Compare October 23, 2026 16:55
Base automatically changed from Qiyuanqiii/chat-markdown-export to main October 23, 2026 16:55
@Qiyuanqiii
Qiyuanqiii force-pushed the Qiyuanqiii/current-chat-search branch from 3f43edf to 4e5c23e Compare October 23, 2026 16:55
@Qiyuanqiii
Qiyuanqiii merged commit 6d88c47 into main Oct 23, 2026
17 of 18 checks passed
@Qiyuanqiii
Qiyuanqiii deleted the Qiyuanqiii/current-chat-search branch October 23, 2026 16:57
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