Repository navigation
搜索结果点开后不定位、不高亮:跨会话检索的最后一公里断了 #8796
ray-yuaner
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
环境:DeepSeek Harness Desktop
0.2.0-rc.2(Windows 10)。按
@deepseek-ai/dsh-session-query-sqlite的 README,在 profile 的cordis.patch.yml里把该行从默认的openAt: never改成:重启后跨会话全文搜索确实可用了,侧栏搜索能命中消息正文并显示摘要——先谢谢这个能力。
问题:点击搜索结果后,只做两件事:打开会话、收起搜索框;不滚动到命中的那条消息,也不高亮关键词。会话打开后停在默认位置(通常底部),用户还得自己翻。整个客户端里也没有"对话内查找"(find bar),所以想定位只能靠浏览器的 Ctrl+F(而桌面应用里没有这个兜底)。实测体感明显不如浏览器端。
源码依据(
@deepseek-ai/dsh-client-ui-workspace/lib/client.js,搜索结果项注释原文):实现上
openSearchResult(sessionId)只接收sessionId。我在客户端包里也搜不到任何定位/高亮机制:revealEvent/highlightQuery/scrollToEvent/jumpToEvent/searchHighlight命中数均为 0。复现步骤
期望行为
@tanstack/react-virtual,overscan 3),屏幕外的消息不在 DOM 里,所以还需要一个"跳到某个事件"的锚点导航能力——这也正是结果页与转录视图之间目前缺失的那一环。为什么值得做:全文检索的价值在"找到并落到那一条";少了跳转/高亮,跨会话检索就退化成"打开会话再自己翻",很多用户会因此回到 Ctrl+F 或干脆不用。
English summary
After enabling
session-query-sqlite(openAt: first-search), content search across sessions works. But clicking a result only opens the session — it neither scrolls to the matched message nor highlights the keyword, and there is no in-conversation find bar. The client bundle comment in@deepseek-ai/dsh-client-ui-workspacestates it explicitly: "Search navigation opens the session only; it does not address an event." The transcript is virtualized (@tanstack/react-virtual, overscan 3), so off-screen messages are not mounted; a "jump to event" anchor would also unblock community plugins. Suggestion: scroll to + highlight the match (with next/previous), or add an in-conversation find bar.All reactions