{ "version": 1, "caseName": "conversation-session-large-text-attachment", "spec": "./test/e2e/conversation-session/attachments/conversation-session-large-text-attachment.test.ts", "fixtures": [ { "id": "conversation-session-large-text-attachment-title-sidecar", "description": "本例标题旁路响应。", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "运行时证据显示标题旁路缺少响应;在本例显式登记固定标题,避免依赖 legacy fixture 或触发后台网络重试。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"upstream-e2e-title-fixture\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Upstream E2E Fixture\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":125,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":24,\"service_tier\":\"standard\"}}" } }, { "id": "large-text-only", "description": "T18 only:4096 字节跨中文字符的大文本附件首发。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "固定回复隔离模型随机性;真实文件选择、Agent 读取和 provider 请求正文由 E2E 断言,不模拟附件读取。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["e2e-large-text-only.txt", "E2E_LARGE_TEXT_ONLY_CONTENT"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": { "id": "large-text-only", "inputTokens": 10000, "outputTokens": 8, "text": "LARGE_TEXT_ATTACHMENT_OK" } } }, { "id": "large-text-with-query", "description": "T18 with-query:4096 字节跨中文字符的大文本附件首发。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "固定回复隔离模型随机性;真实文件选择、Agent 读取和 provider 请求正文由 E2E 断言,不模拟附件读取。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["e2e-large-text-with-query.txt", "E2E_LARGE_TEXT_QUERY_CONTENT"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": { "id": "large-text-with-query", "inputTokens": 10000, "outputTokens": 8, "text": "LARGE_TEXT_ATTACHMENT_OK" } } }, { "id": "large-text-gbk", "description": "T18 gbk:ASCII 前缀后的 GBK 字符跨 4096 字节采样边界,补读后排除 UTF-8。", "metadata": { "kind": "main", "timingPolicy": "fast-text", "source": "synthetic", "syntheticReason": "固定回复隔离模型随机性;真实文件选择、Agent 读取和 provider 请求正文由 E2E 断言,不模拟附件读取。" }, "maxMatches": 1, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["e2e-large-text-gbk.txt", "E2E_LARGE_TEXT_GBK_CONTENT"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": { "id": "large-text-gbk", "inputTokens": 10000, "outputTokens": 8, "text": "LARGE_TEXT_ATTACHMENT_OK" } } } ] }