fix(wechat): yield schedule handler when scheduled-task intent matches

Stop schedule todo replies from intercepting cancel/list/create automation
requests, and recognize 有哪些 for inbound scheduled task listing.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-29 11:38:17 +08:00
parent a1a921eba6
commit 43ec144540
5 changed files with 56 additions and 1 deletions
+1 -1
View File
@@ -164,7 +164,7 @@ export function parseScheduledTaskIntent(text, { now = Date.now(), timezone = 'A
return { action: 'cancel_scheduled_task' };
}
const wantsList = /(?:查看|看看|列出|我的).{0,12}(?:定时|自动).{0,12}(?:任务|自动化)/u.test(compact)
const wantsList = /(?:查看|看看|列出|我的|有哪些).{0,12}(?:定时|自动).{0,12}(?:任务|自动化)/u.test(compact)
|| /(?:list|show).{0,12}(?:scheduled|automation).{0,12}tasks/iu.test(compact);
if (wantsList) {
return { action: 'list_scheduled_tasks' };