chatccc 0.2.109 → 0.2.110
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/package.json +1 -1
- package/src/orchestrator.ts +6 -0
package/package.json
CHANGED
package/src/orchestrator.ts
CHANGED
|
@@ -286,6 +286,12 @@ export async function handleCommand(
|
|
|
286
286
|
const content = buildCdContent(targetDir, withStats, isUpdate, sessionCwd);
|
|
287
287
|
await platform.sendCard(chatId, "新会话工作路径", content, "blue");
|
|
288
288
|
logTrace(tid, "DONE", { outcome: "cd_path", targetDir, isUpdate });
|
|
289
|
+
|
|
290
|
+
// 微信模式下,若用户没有活跃会话,自动创建新会话
|
|
291
|
+
if (platform.kind === "wechat" && !sessionInfoMap.has(chatId)) {
|
|
292
|
+
logTrace(tid, "BRANCH", { cmd: "/new", trigger: "auto_after_cd" });
|
|
293
|
+
await handleCommand(platform, "/new", chatId, openId, msgTimestamp, chatType, traceId);
|
|
294
|
+
}
|
|
289
295
|
}
|
|
290
296
|
return;
|
|
291
297
|
}
|