Repository navigation
fix(buddy): 仅拖入本地文件发送时在聊天记录中显示用户消息 - #420
Merged
shanyuhai123 merged 1 commit intoOct 22, 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.
背景与关联 / Context and related issue
panelResourceIds),正文没有@文件名;本地文件只有localReference快照、没有附件记录,message.attachments为空。isVisibleChatMessage只看文本、附件和引用,三者都为空时就把这条消息当成空消息过滤掉了。主要改动 / Changes
isVisibleChatMessage同时把用户消息的资源快照(resourceSnapshots)非空视为可见,使只携带本地文件引用的消息能进入转录和大纲。消息气泡本身已能渲染本地文件卡片,无需改动。chatMessageContent.spec.ts用例:仅含两个面板本地文件引用、正文为空的用户消息应当可见。验证 / Verification
vitest run chatMessageContent.spec.ts,8 项通过;其余检查由 CI 给出结论。兼容与风险 / Compatibility and risks
不涉及已有数据、配置或权限。仅放宽“消息是否可见”的判断,只影响此前被隐藏的“无文字、仅本地文件引用”的用户消息。
界面变更 / UI changes
不适用 / N/A