Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
test(desktop): match the attachment condition in the share-source guard
zqchris5b518de93a6f
diff --git a/apps/desktop/src/renderer/__tests__/userMessageSourceLabels.test.ts b/apps/desktop/src/renderer/__tests__/userMessageSourceLabels.test.tsindex 08c1c3ef10..0994899819 100644--- a/apps/desktop/src/renderer/__tests__/userMessageSourceLabels.test.ts+++ b/apps/desktop/src/renderer/__tests__/userMessageSourceLabels.test.ts@@ -20,9 +20,11 @@ describe('UserMessage share-image privacy boundary', () => {);});+ // A teammate DM bubble that also holds attachments is content, not an annotation;+ // HookTaskCard.test.tsx covers that share-image path through the real component.it('marks a bubble containing only a plugin annotation for stripping', () => {expect(source).toMatch(- /\{\.\.\.\(inlineQuoteCount === 0 && !displayBubbleBody\.trim\(\)\s*\? \{ \[SHARE_SOURCE_ATTR\]: '' \}\s*: \{\}\)\}/,+ /\{\.\.\.\(inlineQuoteCount === 0 && !displayBubbleBody\.trim\(\) && !attachmentsInBubble\s*\? \{ \[SHARE_SOURCE_ATTR\]: '' \}\s*: \{\}\)\}/,);});});