Install
openclaw skills install weixin-runtime-fix修复 @tencent-weixin/openclaw-weixin@2.4.1 在 OpenClaw 2026.5.4+ 上的两个关键 bug: 1. Runtime 模块隔离导致 waitForWeixinRuntime 超时 2. undici 8.2.0 拒绝手动设置的 Content-Length 头 修复后微信通道可正常收发消息。
openclaw skills install weixin-runtime-fix修复 @tencent-weixin/openclaw-weixin@2.4.1 在 OpenClaw 2026.5.4+ 上的关键 bug。
runtime.ts 被加载两次,waitForWeixinRuntime() 读取的实例与 setWeixinRuntime() 写入的实例不同,导致超时Content-Length 头 return monitorWeixinProvider({
...
setStatus: ctx.setStatus,
+ channelRuntime: ctx.channelRuntime,
});
let channelRuntime;
- try {
- const pluginRuntime = await waitForWeixinRuntime();
- channelRuntime = pluginRuntime.channel;
- }
+ if (opts.channelRuntime) {
+ channelRuntime = opts.channelRuntime;
+ } else {
+ try {
+ const pluginRuntime = await waitForWeixinRuntime();
+ channelRuntime = pluginRuntime.channel;
+ }
+ catch (err) { ... }
+ }
删除 buildHeaders() 中手动设置 Content-Length 的代码。
openclaw health --json 显示 lastError: nullopenclaw plugins install 重装插件后,需要重新运行此修复channel.js.bak 和 monitor.js.bak