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) {