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,