From 98953d70b7586c780e3021091ec1d337c02372f7 Mon Sep 17 00:00:00 2001
From: Timothy Carambat <rambat1010@gmail.com>
Date: Fri, 10 May 2024 16:09:34 -0700
Subject: [PATCH] Fix typo leading to agent history in threads not being unique
 in same workspace (#1350)

---
 server/utils/agents/index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/server/utils/agents/index.js b/server/utils/agents/index.js
index 7851deb7b..3352718be 100644
--- a/server/utils/agents/index.js
+++ b/server/utils/agents/index.js
@@ -35,7 +35,7 @@ class AgentHandler {
           {
             workspaceId: this.invocation.workspace_id,
             user_id: this.invocation.user_id || null,
-            thread_id: this.invocation.user_id || null,
+            thread_id: this.invocation.thread_id || null,
             include: true,
           },
           limit,
-- 
GitLab