| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233 |
- {
- "version": 1,
- "caseName": "conversation-session-id-compatibility",
- "spec": "./test/e2e/conversation-session/runtime/conversation-session-id-compatibility.test.ts",
- "fixtures": [
- {
- "id": "sid-title",
- "metadata": {
- "kind": "common",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "{\"title\":\"Session ID compatibility\"}"
- }
- },
- {
- "id": "sid-tool-0",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_REFERENCE_0"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_sid_0",
- "name": "ReadSession",
- "input": {
- "sessionId": "session_0123456789abcdef0123456789abcdef",
- "view": "messages",
- "limit": 20
- }
- }
- },
- "maxMatches": 1
- },
- {
- "id": "sid-reference-0",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SID_REFERENCE_0", "E2E_SID_HISTORY_0"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_REFERENCE_OK_0"
- }
- },
- {
- "id": "sid-follow-0",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_FOLLOW_0"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_FOLLOW_OK_0"
- }
- },
- {
- "id": "sid-tool-1",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_REFERENCE_1"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_sid_1",
- "name": "ReadSession",
- "input": {
- "sessionId": "session_12345678-1234-4234-8234-123456789abc",
- "view": "messages",
- "limit": 20
- }
- }
- },
- "maxMatches": 1
- },
- {
- "id": "sid-reference-1",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyIncludes": ["E2E_SID_REFERENCE_1", "E2E_SID_HISTORY_1"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_REFERENCE_OK_1"
- }
- },
- {
- "id": "sid-follow-1",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_FOLLOW_1"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_FOLLOW_OK_1"
- }
- },
- {
- "id": "sid-new",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_NEW"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_NEW_OK"
- }
- },
- {
- "id": "sid-mobile-0",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_MOBILE_0"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_MOBILE_OK_0"
- }
- },
- {
- "id": "sid-mobile-1",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "验证原会话 ID 的持久化、完整重启与引用读取,模型只产生固定响应和精确工具调用。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_MOBILE_1"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_MOBILE_OK_1"
- }
- },
- {
- "id": "sid-retry",
- "metadata": {
- "kind": "main",
- "source": "synthetic",
- "timingPolicy": "fast-text",
- "syntheticReason": "旧客户端重复、并发、重启重放及 admission 后退出、横幅确认重发使用真实 Host/CLI/SQLite,仅模型响应固定。"
- },
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "lastUserMessageIncludes": ["E2E_SID_RETRY"],
- "bodyExcludes": ["Generate a concise title"]
- },
- "response": {
- "statusCode": 200,
- "text": "E2E_SID_RETRY_OK"
- }
- }
- ]
- }
|