From ce658176709cd2dac412f9befb82cc7162921b44 Mon Sep 17 00:00:00 2001 From: Francisco Gaona Date: Mon, 26 Jan 2026 19:14:33 +0100 Subject: [PATCH] WIP - do not trim history --- backend/src/ai-assistant/ai-assistant.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/ai-assistant/ai-assistant.service.ts b/backend/src/ai-assistant/ai-assistant.service.ts index 4dcf9d1..d7c0624 100644 --- a/backend/src/ai-assistant/ai-assistant.service.ts +++ b/backend/src/ai-assistant/ai-assistant.service.ts @@ -348,7 +348,7 @@ export class AiAssistantService { const trimmedHistory = Array.isArray(history) ? history.slice(-6) : []; // Use Deep Agent as the main coordinator - const result = await this.runDeepAgent(tenantId, userId, message, trimmedHistory, context, prior); + const result = await this.runDeepAgent(tenantId, userId, message, history, context, prior); // Update conversation state based on result if (result.record) {