Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(conversations): update source command test case

Steven Enamakelcdd3e96ee2e4
diff --git a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
index a8f4569cb8..15815c610b 100644
--- a/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
+++ b/app/src/features/conversations/Conversations.processSourceCommand.test.tsx
@@ -374,11 +374,12 @@ describe('the agent-process-source command follows the panel that hosts it', ()
expect(chatSend).toHaveBeenLastCalledWith(
expect.objectContaining({
threadId: THREAD_ID,
- message: 'text',
+ message: uploaded.content,
persistedMessageId: 'persisted-user-row',
attachments: [persistedAttachment],
})
);
+ expect(uploaded.content).not.toMatch(/\[(?:ATTACHMENT|IMAGE|FILE):/i);
});
it('keeps queued raw upload content only in memory until the core append flush', async () => {