fix(wechat): resolve scheduled task cancel via manage LLM instead of hard rules

Use a lightweight LLM over active task lists to pick taskId for cancel,
exclude page.generate from scheduled-task inbound, and remove single-task
auto-cancel so Cursor page generation stays isolated.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-29 13:45:28 +08:00
parent d8463829f7
commit 5de58af9ed
11 changed files with 528 additions and 14 deletions
+4
View File
@@ -285,6 +285,7 @@ let systemDisclosurePolicyService = null;
let agentCodeRunPolicyService = null;
let wechatCursorExecutorPolicyService = null;
let wechatScheduleLlmConfigService = null;
let wechatScheduledTaskManageLlmConfigService = null;
let wechatIntentRouter = null;
let mindSpace = null;
let mindSpaceAssets = null;
@@ -481,6 +482,8 @@ async function bootstrapUserAuth() {
memorySessionServices.wechatCursorExecutorPolicyService;
wechatScheduleLlmConfigService =
memorySessionServices.wechatScheduleLlmConfigService;
wechatScheduledTaskManageLlmConfigService =
memorySessionServices.wechatScheduledTaskManageLlmConfigService;
wechatIntentRouter =
memorySessionServices.wechatIntentRouter;
conversationMemoryService =
@@ -545,6 +548,7 @@ async function bootstrapUserAuth() {
taskUnifiedService,
sessionSnapshotService,
wechatScheduleLlmConfigService,
wechatScheduledTaskManageLlmConfigService,
wechatIntentRouter,
wechatCursorExecutorPolicyService,
agentRunGateway,