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
View File
@@ -47,6 +47,7 @@ test('scheduled automation takes precedence over schedule assistant keyword over
test('parses cancel and list intents', () => {
assert.equal(parseScheduledTaskIntent('取消我的定时任务').action, 'cancel_scheduled_task');
assert.equal(parseScheduledTaskIntent('看看我的定时自动任务').action, 'list_scheduled_tasks');
assert.equal(parseScheduledTaskIntent('我有哪些定时任务').action, 'list_scheduled_tasks');
});
test('parses one-shot tonight schedule with task spec', () => {