From 96cbd8d9e6911645daab961ae56667acfad22fd3 Mon Sep 17 00:00:00 2001 From: Yichen Jiang Date: Wed, 2 Sep 2026 09:36:54 +0800 Subject: [PATCH] fix(llm): refresh web and packed-fixture expectations for the new retry code Adding `MALFORMED_TOOL_CALL` to the default retryable set changes two expected outputs the session snapshot lane does not own: the shipped Web composition's inline snapshot, and the canonical packed layout of the refreshed `empty-response-retry` fixture. --- apps/web/tests/shipped-composition.e2e.ts | 2 ++ snapshots/session/empty-response-retry/session.jsonl | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/web/tests/shipped-composition.e2e.ts b/apps/web/tests/shipped-composition.e2e.ts index ac882e2cd6..b877b1b485 100644 --- a/apps/web/tests/shipped-composition.e2e.ts +++ b/apps/web/tests/shipped-composition.e2e.ts @@ -93,6 +93,7 @@ it('assembles the shipped Web transport, catalog, guidance, and defaults', async "mode": "normal", "retryableCodes": [ "EMPTY_RESPONSE", + "MALFORMED_TOOL_CALL", "RATE_LIMIT", "SERVER", "TIMEOUT", @@ -126,6 +127,7 @@ it('assembles the shipped Web transport, catalog, guidance, and defaults', async "mode": "normal", "retryableCodes": [ "EMPTY_RESPONSE", + "MALFORMED_TOOL_CALL", "RATE_LIMIT", "SERVER", "TIMEOUT", diff --git a/snapshots/session/empty-response-retry/session.jsonl b/snapshots/session/empty-response-retry/session.jsonl index 1de49ba617..79360b4195 100644 --- a/snapshots/session/empty-response-retry/session.jsonl +++ b/snapshots/session/empty-response-retry/session.jsonl @@ -20,6 +20,6 @@ {"type":"assistant/chunk","data":{"turn":1,"step":1,"chunk":{"type":"block-end","index":0,"block":{"type":"text","text":"Recovered."}}}} {"type":"assistant/chunk","data":{"turn":1,"step":1,"chunk":{"type":"usage","usage":{"inputTokens":12,"outputTokens":3}}}} {"type":"assistant/chunk","data":{"turn":1,"step":1,"chunk":{"type":"finish","reason":{"kind":"stop"}}}} -{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"Recovered."}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:3}}"},"usage":{"inputTokens":12,"outputTokens":3}},"sourceEventSeqs":[[16,20]],"surfaceOp":"append"} +{"type":"assistant/message","data":{"turn":1,"step":1,"message":{"role":"assistant","content":[{"type":"text","text":"Recovered."}],"source":{"kind":"model","provider":"deepseek-official","model":"deepseek-v4-flash"},"id":"{{message:3}}"},"usage":{"inputTokens":12,"outputTokens":3}},"sourceEventSeqs":[16,17,18,19,20],"surfaceOp":"append"} {"type":"step/end","data":{"turn":1,"step":1}} {"type":"turn/end","data":{"turn":1,"reason":{"kind":"completed"}}}