@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.
Files changed (2) hide show
  1. package/dist/channel.js +2 -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 is ONLY in params
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi",
3
- "version": "2.3.8",
3
+ "version": "2.3.9",
4
4
  "description": "XiaoYi channel plugin for OpenClaw",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",