From 18cfc8e1b29a5b2284d23d0a632879d21541e9e2 Mon Sep 17 00:00:00 2001 From: lik Date: Sat, 24 Oct 2026 19:28:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E8=81=8A=E5=A4=A9=E6=AE=8B?= =?UTF-8?q?=E7=95=99=E7=9A=84=20appId=20=E5=85=9C=E5=BA=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agent/bots/bot-escort/agent.js | 2 +- agent/bots/bot-escort/task.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {