feat(search): 升级 package-aware 搜索并修复单字检索不稳#82
Merged
abraxas914 merged 1 commit intomainfrom Mar 28, 2026
Merged
Conversation
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.
背景
现有搜索链存在两层断裂:Threads 的 offscreen/body-search 仍以
content_text为单一真源,Reader 与列表/高亮对单字查询的门槛也不一致。在
attachments[] / citations[] / artifacts[]已进入运行时与渲染契约后,搜索若继续只理解正文,会出现 sidecar 搜不到、能搜到但不能导航、以及单字查询忽明忽暗的问题。本次修正
SearchReadiness规则:>= 2进入 full-textcontent_text升级为 package-aware projection,统一覆盖:bodysourceattachmentartifactannotationConversationMatchSummary,新增:firstMatchedSurfacematchedSurfacesSources / Attachments / Artifacts命中可自动展开并定位非目标
验证
pnpm -C frontend eval:prompts --mode=mock --strictfrontend\\node_modules\\.bin\\tsc.cmd -p frontend\\tsconfig.json --noEmitpnpm -C frontend buildpnpm -C vesti-web build手测重点
messages / sources / attachments / artifacts / notes