@vrs-soft/wecom-aibot-mcp 3.4.9-beta.0 → 3.4.9-beta.1
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-server.js +8 -0
- package/package.json +1 -1
package/dist/channel-server.js
CHANGED
|
@@ -1108,6 +1108,14 @@ function registerChannelTools(server) {
|
|
|
1108
1108
|
// 注销本地 active-projects 记录
|
|
1109
1109
|
unregisterActiveProject(localProjectDir);
|
|
1110
1110
|
logChannel('本地 active-projects 已注销', { projectDir: localProjectDir });
|
|
1111
|
+
// v3.4.9-beta.1: 关闭本地 wecom-aibot.json 的 wechatMode 开关(治本)
|
|
1112
|
+
// 否则 stop-hook 读到 wechatMode:true 会阻塞 stop 并发 stderr 提示"恢复轮询",
|
|
1113
|
+
// LLM 看到提示又调 enter_headless_mode → CC 被"自动复活"永远退不掉
|
|
1114
|
+
updateWechatModeConfig(localProjectDir, {
|
|
1115
|
+
wechatMode: false,
|
|
1116
|
+
heartbeatJobId: undefined,
|
|
1117
|
+
});
|
|
1118
|
+
logger.info('本地 wecom-aibot.json wechatMode 已置 false', { projectDir: localProjectDir });
|
|
1111
1119
|
return forwardToHttpMcp('exit_headless_mode', { cc_id, project_dir: localProjectDir });
|
|
1112
1120
|
});
|
|
1113
1121
|
// ============================================
|