| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- {
- "version": 1,
- "caseName": "conversation-session-subagent-sidebar-isolation",
- "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-sidebar-isolation.test.ts",
- "fixtures": [
- {
- "id": "conversation-session-subagent-sidebar-isolation-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": "subagent-sidebar-parent-agent",
- "description": "subagent-sidebar-parent-agent",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "只固定模型回复;真实 Agent 派发、SQLite、冷恢复与 UI 路径执行生产代码。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_SUBAGENT_SIDEBAR_PARENT"]
- },
- "response": {
- "statusCode": 200,
- "toolUse": {
- "id": "toolu_e2e_subagent_sidebar",
- "name": "Agent",
- "input": {
- "description": "Sidebar isolation child",
- "prompt": "E2E_SUBAGENT_SIDEBAR_CHILD: reply with exactly E2E_SUBAGENT_SIDEBAR_CHILD_DONE",
- "subagent_type": "general-purpose"
- }
- }
- }
- },
- {
- "id": "subagent-sidebar-child",
- "description": "subagent-sidebar-child",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "只固定模型回复;真实 Agent 派发、SQLite、冷恢复与 UI 路径执行生产代码。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "lastUserMessageIncludes": ["E2E_SUBAGENT_SIDEBAR_CHILD"]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "child",
- "text": "E2E_SUBAGENT_SIDEBAR_CHILD_DONE",
- "inputTokens": 64,
- "outputTokens": 8
- }
- }
- },
- {
- "id": "subagent-sidebar-parent-final",
- "description": "subagent-sidebar-parent-final",
- "metadata": {
- "kind": "main",
- "timingPolicy": "fast-text",
- "source": "synthetic",
- "syntheticReason": "只固定模型回复;真实 Agent 派发、SQLite、冷恢复与 UI 路径执行生产代码。"
- },
- "maxMatches": 1,
- "match": {
- "method": "POST",
- "pathIncludes": "/messages",
- "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"],
- "bodyIncludes": [
- "E2E_SUBAGENT_SIDEBAR_PARENT",
- "E2E_SUBAGENT_SIDEBAR_CHILD_DONE",
- "E2E_SUBAGENT_SIDEBAR_PARENT_DONE"
- ]
- },
- "response": {
- "statusCode": 200,
- "text": {
- "id": "parent-final",
- "text": "E2E_SUBAGENT_SIDEBAR_PARENT_DONE",
- "inputTokens": 64,
- "outputTokens": 8
- }
- }
- }
- ]
- }
|