{ "version": 1, "caseName": "conversation-session-message-image-gallery", "spec": "./test/e2e/conversation-session/presentation/conversation-session-message-image-gallery.test.ts", "fixtures": [ { "id": "message-image-gallery-title", "description": "消息图片画廊 case 的固定标题响应。", "metadata": { "kind": "common", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "标题生成不属于图片布局合同,只需避免 sidecar 阻塞主消息。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "cache-control": "no-cache", "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"message-image-gallery-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Message Image Gallery\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8,\"service_tier\":\"standard\"}}" } }, { "id": "message-image-gallery-main", "description": "稳定返回三张连续本地 Markdown 图片和一张正文分隔后的独立图片。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "图片 gallery 布局需要确定的相邻 Markdown 块、alt 和 workspace-relative 文件路径,真实模型输出不稳定。" }, "maxMatches": 3, "match": { "method": "POST", "pathIncludes": "/messages", "lastUserMessageIncludes": ["E2E_MESSAGE_IMAGE_GALLERY"], "bodyIncludes": ["E2E_MESSAGE_IMAGE_GALLERY"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "cache-control": "no-cache", "content-type": "text/event-stream; charset=utf-8" }, "body": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"message-image-gallery-main\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\nevent: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\nevent: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"E2E_MESSAGE_IMAGE_GALLERY\\n\\n![MIG one](.zcode-e2e/message-image-gallery/one.svg)\\n\\n![MIG two](.zcode-e2e/message-image-gallery/two.svg)\\n\\n![MIG three](.zcode-e2e/message-image-gallery/three.svg)\\n\\nStandalone image follows.\\n\\n![MIG standalone](.zcode-e2e/message-image-gallery/standalone.svg)\"}}\n\nevent: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\nevent: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":64,\"output_tokens\":64,\"service_tier\":\"standard\"}}\n\nevent: message_stop\ndata: {\"type\":\"message_stop\"}\n\n" } } ] }