{ "version": 1, "caseName": "composer-voice-input", "spec": "./test/e2e/ui-shell/composer/composer-voice-input.test.ts", "fixtures": [ { "id": "composer-voice-input-blocked-title", "description": "VI-22 首发消息的标题旁路响应。", "metadata": { "kind": "common", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "VI-22 首发会触发标题旁路;固定本例标题,避免依赖 legacy fixture 或触发后台重试。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["Generate a concise title", "E2E_VOICE_BLOCKED"] }, "response": { "statusCode": 200, "statusMessage": "OK", "headers": { "content-type": "application/json; charset=utf-8" }, "body": "{\"id\":\"composer-voice-input-blocked-title\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"{\\\"title\\\":\\\"Voice input blocked E2E\\\"}\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":64,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":8,\"service_tier\":\"standard\"}}" } }, { "id": "composer-voice-input-blocked-call", "description": "VI-22:延迟返回一个需要审批的 Bash 调用,让审批卡片在录音进行中出现。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "controlled-stream", "syntheticReason": "需要在录音进行中稳定弹出审批卡片:延迟 4 秒返回 Bash 工具调用,guarded 模式下递归删除会触发守卫审批;用例随后拒绝,命令不会执行。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_VOICE_BLOCKED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"], "lastUserMessageIncludes": ["E2E_VOICE_BLOCKED"] }, "response": { "statusCode": 200, "delayMs": 4000, "toolUse": { "id": "toolu_E2E_VOICE_BLOCKED", "name": "Bash", "input": { "command": "rm -r .zcode-e2e/composer-voice-input/vi22-missing-target" } } } }, { "id": "composer-voice-input-blocked-final", "description": "VI-22:拒绝审批后的收尾回复。", "metadata": { "kind": "main", "source": "synthetic", "timingPolicy": "fast-text", "syntheticReason": "拒绝审批后只需固定收尾文本,用来确认回合结束、输入框恢复显示。" }, "match": { "method": "POST", "pathIncludes": "/messages", "bodyIncludes": ["E2E_VOICE_BLOCKED", "toolu_E2E_VOICE_BLOCKED"], "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"] }, "response": { "statusCode": 200, "text": { "id": "composer-voice-input-blocked-final", "inputTokens": 80, "outputTokens": 8, "text": "E2E_VOICE_BLOCKED_DONE" } } } ] }