@ynhcj/xiaoyi 2.3.8 → 2.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/channel.js +2 -2
- package/package.json +1 -1
package/dist/channel.js
CHANGED
|
@@ -214,8 +214,8 @@ exports.xiaoyiPlugin = {
|
|
|
214
214
|
const { getXiaoYiRuntime } = require("./runtime");
|
|
215
215
|
const runtime = getXiaoYiRuntime();
|
|
216
216
|
console.log(`XiaoYi: [Message Handler] Using runtime instance: ${runtime.getInstanceId()}`);
|
|
217
|
-
// For message/stream, sessionId
|
|
218
|
-
const sessionId = message.params.sessionId;
|
|
217
|
+
// For message/stream, prioritize params.sessionId, fallback to top-level sessionid
|
|
218
|
+
const sessionId = message.params.sessionId || message.sessionid;
|
|
219
219
|
// Store sessionId -> taskId mapping in runtime (use params.id as taskId)
|
|
220
220
|
runtime.setTaskIdForSession(sessionId, message.params.id);
|
|
221
221
|
// Get PluginRuntime from our runtime wrapper
|