fix(wechat): route scheduled task cancel and spec updates through Goose MCP

Pass cancel requests to Goose like create instead of inbound title matching,
and add scheduled_task_update_spec so format or execution constraints update
taskSpec without triggering page delivery guards.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-08-29 09:47:39 +08:00
parent e13df82021
commit a1a921eba6
12 changed files with 265 additions and 36 deletions
+3
View File
@@ -398,6 +398,7 @@ test('sandboxMcpTools returns correct tool list based on capabilities', () => {
'scheduled_task_create',
'scheduled_task_list',
'scheduled_task_cancel',
'scheduled_task_update_spec',
]);
const withBrowse = { ...base, code_browse: true };
@@ -424,6 +425,7 @@ test('private_data_space alone exposes private data tools through sandbox MCP',
'scheduled_task_create',
'scheduled_task_list',
'scheduled_task_cancel',
'scheduled_task_update_spec',
]);
const policy = buildAgentExtensionPolicy(caps, {
@@ -458,6 +460,7 @@ test('private_data_space alone exposes private data tools through sandbox MCP',
'scheduled_task_create',
'scheduled_task_list',
'scheduled_task_cancel',
'scheduled_task_update_spec',
]);
});