From b42b5b5e9483041f6a596dcff225f44af67a9ef0 Mon Sep 17 00:00:00 2001 From: fz Date: Tue, 8 Sep 2026 23:57:15 +0800 Subject: [PATCH] fix(ci): align minimal prompt-history expectations with shell-only turns --- scripts/smoke-python-runtime.py | 2 +- .../minimal-in-history/prompt-history.json | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/scripts/smoke-python-runtime.py b/scripts/smoke-python-runtime.py index 47b8d664d2..5004b15efc 100644 --- a/scripts/smoke-python-runtime.py +++ b/scripts/smoke-python-runtime.py @@ -1837,7 +1837,7 @@ def build_in_history_snapshot_files( assert all(event.get("surfaceOp") in (None, "append") for event in result.events) first_tool = next(index for index, event in enumerate(result.events) if event.get("type") == "tool/result") assert result.events.index(systems[1]) > first_tool - assert len(requests) == 4, requests + assert len(requests) == 3, requests request_prompts = [] for index, request in enumerate(requests): messages = request["messages"] diff --git a/scripts/snapshots/python-sdk-single-exe/minimal-in-history/prompt-history.json b/scripts/snapshots/python-sdk-single-exe/minimal-in-history/prompt-history.json index 9fe5365ee8..7faf3de3ee 100644 --- a/scripts/snapshots/python-sdk-single-exe/minimal-in-history/prompt-history.json +++ b/scripts/snapshots/python-sdk-single-exe/minimal-in-history/prompt-history.json @@ -7,10 +7,6 @@ "You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.", "You are a helpful software engineer assistant.\n\nPython SDK prompt version 2." ], - [ - "You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.", - "You are a helpful software engineer assistant.\n\nPython SDK prompt version 2." - ], [ "You are a helpful software engineer assistant.\n\nPython SDK prompt version 1.", "You are a helpful software engineer assistant.\n\nPython SDK prompt version 2."