@ynhcj/xiaoyi-channel 0.0.151-beta → 0.0.152-beta

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.
@@ -103,10 +103,13 @@ export async function monitorXYProvider(opts = {}) {
103
103
  }
104
104
  catch (err) {
105
105
  // ✅ Only log error, don't re-throw to prevent gateway restart
106
- releaseGate();
107
106
  logger.error(`XY gateway: error handling message from ${serverId}: ${String(err)}`);
108
107
  }
109
108
  finally {
109
+ // 🔑 确保门控始终被释放。handleXYMessage 内部会 catch 所有异常
110
+ // 且某些提前返回路径(clearContext、tasks/cancel 等)不会调用
111
+ // onInitComplete,因此必须在 finally 中兜底释放。
112
+ releaseGate();
110
113
  // Remove from active messages when done
111
114
  activeMessages.delete(messageKey);
112
115
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ynhcj/xiaoyi-channel",
3
- "version": "0.0.151-beta",
3
+ "version": "0.0.152-beta",
4
4
  "description": "OpenClaw Xiaoyi Channel plugin - Xiaoyi A2A protocol integration",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",