Merged
Conversation
Claude 历史索引依赖 preview 判断会话是否存在有效用户输入。 当用户首条消息只有图片或文件路径时,cleanClaudeUserPrompt 会把路径 作为噪声过滤掉,导致 preview 为空,索引阶段把该会话误判为仅助手输出并忽略。 本次调整: - 在 Claude 用户消息清洗阶段增加路径型输入回退,提取文件名作为预览 - 对常见图片扩展名生成“图片:<文件名>”,其他路径生成“文件:<文件名>” - 补充纯路径输入场景测试,覆盖 summaryOnly 历史索引链路 产品效果: - 上传图片或仅引用文件路径的 Claude 会话会正常出现在历史列表 - 避免这类会话在项目扫描和历史候选中被误判丢失 Signed-off-by: Lulu <58587930+lulu-sk@users.noreply.github.com>
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.
Claude 历史索引依赖 preview 判断会话是否存在有效用户输入。
当用户首条消息只有图片或文件路径时,cleanClaudeUserPrompt 会把路径
作为噪声过滤掉,导致 preview 为空,索引阶段把该会话误判为仅助手输出并忽略。
本次调整:
产品效果: