The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(chatService): add persisted message id to attachment test
Steven Enamakelb69e81f83e87
diff --git a/app/src/services/__tests__/chatService.test.ts b/app/src/services/__tests__/chatService.test.tsindex 0782e3f54a..7e80b79951 100644--- a/app/src/services/__tests__/chatService.test.ts+++ b/app/src/services/__tests__/chatService.test.ts@@ -537,10 +537,16 @@ describe('chatService typed attachments', () => {it('chatSend forwards attachments as typed parts and leaves the text alone', async () => {bindMockSocket(createMockSocket());- await chatSend({ threadId: 'thread-1', message: 'look', attachments: [image] });+ await chatSend({+ threadId: 'thread-1',+ message: 'look',+ persistedMessageId: 'persisted-user-row',+ attachments: [image],+ });const params = mockCallCoreRpc.mock.calls[0][0].params;expect(params.message).toBe('look');+ expect(params.persisted_message_id).toBe('persisted-user-row');expect(params.attachments).toEqual([image]);expect(JSON.stringify(params.message)).not.toMatch(/\[(IMAGE|FILE):/);});