移除聊天残留的 appId 兜底

This commit is contained in:
lik
2026-10-24 19:28:42 +08:00
committed by trae-solo-agent
parent 83ef5c2960
commit 18cfc8e1b2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ export default class EscortAgent {
recursion_limit: 50, recursion_limit: 50,
streamMode: ["updates", "messages", "custom"], subgraphs: true, streamMode: ["updates", "messages", "custom"], subgraphs: true,
configurable: { configurable: {
thread_id: msgs[0].userId || msgs[0].appId thread_id: msgs[0].userId
} }
})) { })) {
const isSubagent = namespace.some(s => s.startsWith("tools:")); const isSubagent = namespace.some(s => s.startsWith("tools:"));
+1 -1
View File
@@ -16,7 +16,7 @@ class ChatTask {
} }
async streamChat(userInfo, message, callback) { async streamChat(userInfo, message, callback) {
const userId = userInfo ? userInfo._id : message.appId; const userId = userInfo?._id;
let agent = this.agents.get(userId); let agent = this.agents.get(userId);
if (agent) { if (agent) {