From f4fb5fbe1ca24aec833ccfb7287a8f70b5097723 Mon Sep 17 00:00:00 2001 From: fz Date: Fri, 16 Oct 2026 16:50:10 +0800 Subject: [PATCH] test(python): align SDK runtime snapshots with desktop composition Record the six added default SDK tools in the dynamic-tool history. Keep the existing custom snapshot, recovery, and restart compositions independent of the desktop defaults using the same disabled rows as the TypeScript legacy context patch. Validate the original failure and the following scenarios through the supported built CLI path. --- scripts/smoke-python-runtime.py | 7 +++++ .../dynamic-tools/tool-history.json | 30 +++++++++++++++---- 2 files changed, 31 insertions(+), 6 deletions(-) diff --git a/scripts/smoke-python-runtime.py b/scripts/smoke-python-runtime.py index 19158aa9f5..611622b9e4 100644 --- a/scripts/smoke-python-runtime.py +++ b/scripts/smoke-python-runtime.py @@ -75,17 +75,24 @@ SPAWN_NODE_COMMAND = ( ) LEGACY_CUSTOM_DISABLED_ROWS = ( "agent-instructions", + "deliverable-file-references", + "file-reference-local", "goal", "goal-round-driver", "command-goal", "plan-mode", + "present", + "harness-dev-context", "skill", "skill-filesystem", "skill-office", "workspace-dependencies", + "time-context", + "tool-ask-user", "tool-fs", "tool-fs-search", "tool-goal", + "tool-schedule", "tool-skill", "tool-str-replace-editor", "tool-subagent-control", diff --git a/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json b/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json index d93f0c33c1..212f27dca1 100644 --- a/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json +++ b/scripts/snapshots/python-sdk-single-exe/dynamic-tools/tool-history.json @@ -30,7 +30,7 @@ "events": [ { "type": "request/header", - "seq": 11, + "seq": 12, "time": 0, "data": { "header": { @@ -45,6 +45,7 @@ "maxTokens": true }, "tools": [ + "ask_user_question", "create_goal", "edit", "exit_plan_mode", @@ -56,8 +57,13 @@ "job_list", "job_output", "list_agents", + "present", "read", "read_image", + "schedule_create", + "schedule_delete", + "schedule_list", + "schedule_update", "send_message", "skill", "subagent", @@ -76,7 +82,7 @@ }, { "type": "request/context", - "seq": 12, + "seq": 13, "time": 0, "data": { "provider": "deepseek-official", @@ -86,7 +92,7 @@ }, { "type": "request/header", - "seq": 19, + "seq": 20, "time": 0, "data": { "header": { @@ -101,6 +107,7 @@ "maxTokens": true }, "tools": [ + "ask_user_question", "create_goal", "edit", "exit_plan_mode", @@ -112,8 +119,13 @@ "job_list", "job_output", "list_agents", + "present", "read", "read_image", + "schedule_create", + "schedule_delete", + "schedule_list", + "schedule_update", "send_message", "skill", "snapshot_ping", @@ -133,7 +145,7 @@ }, { "type": "developer/message", - "seq": 20, + "seq": 21, "time": 0, "data": { "turn": 1, @@ -157,7 +169,7 @@ }, { "type": "request/header", - "seq": 26, + "seq": 27, "time": 0, "data": { "header": { @@ -172,6 +184,7 @@ "maxTokens": true }, "tools": [ + "ask_user_question", "create_goal", "edit", "exit_plan_mode", @@ -183,8 +196,13 @@ "job_list", "job_output", "list_agents", + "present", "read", "read_image", + "schedule_create", + "schedule_delete", + "schedule_list", + "schedule_update", "send_message", "skill", "subagent", @@ -203,7 +221,7 @@ }, { "type": "developer/message", - "seq": 27, + "seq": 28, "time": 0, "data": { "turn": 1,