diff --git a/agent/bots/bot-escort/agent.js b/agent/bots/bot-escort/agent.js index f021444..c2f3f15 100644 --- a/agent/bots/bot-escort/agent.js +++ b/agent/bots/bot-escort/agent.js @@ -90,7 +90,7 @@ export default class EscortAgent { recursion_limit: 50, streamMode: ["updates", "messages", "custom"], subgraphs: true, configurable: { - thread_id: msgs[0].userId || msgs[0].appId + thread_id: msgs[0].userId } })) { const isSubagent = namespace.some(s => s.startsWith("tools:")); diff --git a/agent/bots/bot-escort/task.js b/agent/bots/bot-escort/task.js index 5a10418..685cecd 100644 --- a/agent/bots/bot-escort/task.js +++ b/agent/bots/bot-escort/task.js @@ -16,7 +16,7 @@ class ChatTask { } async streamChat(userInfo, message, callback) { - const userId = userInfo ? userInfo._id : message.appId; + const userId = userInfo?._id; let agent = this.agents.get(userId); if (agent) {