| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- {
- "version": 1,
- "caseName": "conversation-session-v4-load-older",
- "spec": "./test/e2e/conversation-session/history/conversation-session-v4-load-older.test.ts",
- "fixtures": [
- {
- "id": "v4-load-older-title",
- "description": "E2E_V4_OLDER_HISTORY_001 首发的 case-local 标题生成响应。",
- "metadata": {
- "kind": "common",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "E2E_V4_OLDER_HISTORY_001 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic,并用该首发 marker 隔离跨 case 匹配。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title", "E2E_V4_OLDER_HISTORY_001"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "v4-load-older-title",
- "inputTokens": 64,
- "outputTokens": 8,
- "text": "{\"title\":\"V4 Load Older E2E\"}"
- }
- }
- },
- {
- "id": "v4-load-older-turn1-long-history",
- "description": "M5④ R-06 loadOlder 门禁:25 个 completed turn → 75 条 raw projection rows(> 快照尾窗 60),重开会话后顶部历史需经 rows/range 补页可达。",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "游标分页断言需要确定的 completed turn 数、raw row 数和可滚动高度;真实 provider 无法稳定复现该窗口边界。"
- },
- "maxMatches": 25,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_V4_OLDER_HISTORY_"],
- "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"
- },
- "chunks": [
- {
- "offsetMs": 0,
- "text": "event: message_start\ndata: {\"type\": \"message_start\", \"message\": {\"id\": \"v4-load-older-turn1\", \"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\n"
- },
- {
- "offsetMs": 5,
- "text": "event: content_block_start\ndata: {\"type\": \"content_block_start\", \"index\": 0, \"content_block\": {\"type\": \"text\", \"text\": \"\"}}\n\n"
- },
- {
- "offsetMs": 10,
- "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"V4 loadOlder completed turn response:此段保持足够长度以形成稳定的 turn 高度,验证 snapshot 尾窗、rows/range prepend 与顶部历史可达;输入 marker 用于区分每一轮持久历史。\"}}\n\n"
- },
- {
- "offsetMs": 15,
- "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
- },
- {
- "offsetMs": 20,
- "text": "event: message_delta\ndata: {\"type\": \"message_delta\", \"delta\": {\"stop_reason\": \"end_turn\", \"stop_sequence\": null}, \"usage\": {\"output_tokens\": 900}}\n\n"
- },
- {
- "offsetMs": 25,
- "text": "event: message_stop\ndata: {\"type\": \"message_stop\"}\n\n"
- }
- ]
- }
- }
- ]
- }
|