返回 CodeWhale
cancel_midstream.case.json
根目录 / crates / tui / tests / fixtures / conformance / events / cancel_midstream.case.json
1 {
2 "model": "deepseek-v4-pro",
3 "mode": "agent",
4 "approval_mode": "suggest",
5 "auto_approve": false,
6 "allow_shell": true,
7 "recorded_platform": {
8 "recorded_on": "macOS",
9 "os": "macos",
10 "shell": "/bin/bash",
11 "sandbox_enforcement": "local_os",
12 "no_new_privs_active": null,
13 "host_tools": [
14 "code_execution",
15 "image_ocr",
16 "js_execution",
17 "pandoc_convert"
18 ]
19 },
20 "workspace_files": {
21 "README.md": "conformance fixture\n",
22 "NOTES.md": "second file\n"
23 },
24 "description": "The provider streams part of an answer and then stalls; the host cancels. The turn ends interrupted without waiting for any provider timeout.",
25 "user_message": "Tell me a long story.",
26 "provider_script": [
27 {
28 "events": [
29 {
30 "type": "message_start",
31 "message": {
32 "id": "msg_stall",
33 "type": "message",
34 "role": "assistant",
35 "content": [],
36 "model": "deepseek-v4-pro",
37 "stop_reason": null,
38 "stop_sequence": null,
39 "usage": {
40 "input_tokens": 120,
41 "output_tokens": 0
42 }
43 }
44 },
45 {
46 "type": "content_block_start",
47 "index": 0,
48 "content_block": {
49 "type": "text",
50 "text": ""
51 }
52 },
53 {
54 "type": "content_block_delta",
55 "index": 0,
56 "delta": {
57 "type": "text_delta",
58 "text": "Here is a partial"
59 }
60 }
61 ],
62 "then": "hang"
63 }
64 ],
65 "driver": [
66 {
67 "when": {
68 "event": "response_delta",
69 "delta_contains": "partial"
70 },
71 "action": "cancel"
72 }
73 ]
74 }
75
75 lines JSON