返回 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 "pandoc_convert"
17 ]
18 },
19 "workspace_files": {
20 "README.md": "conformance fixture\n",
21 "NOTES.md": "second file\n"
22 },
23 "description": "The provider streams part of an answer and then stalls; the host cancels. The turn ends interrupted without waiting for any provider timeout.",
24 "user_message": "Tell me a long story.",
25 "provider_script": [
26 {
27 "events": [
28 {
29 "type": "message_start",
30 "message": {
31 "id": "msg_stall",
32 "type": "message",
33 "role": "assistant",
34 "content": [],
35 "model": "deepseek-v4-pro",
36 "stop_reason": null,
37 "stop_sequence": null,
38 "usage": {
39 "input_tokens": 120,
40 "output_tokens": 0
41 }
42 }
43 },
44 {
45 "type": "content_block_start",
46 "index": 0,
47 "content_block": {
48 "type": "text",
49 "text": ""
50 }
51 },
52 {
53 "type": "content_block_delta",
54 "index": 0,
55 "delta": {
56 "type": "text_delta",
57 "text": "Here is a partial"
58 }
59 }
60 ],
61 "then": "hang"
62 }
63 ],
64 "driver": [
65 {
66 "when": {
67 "event": "response_delta",
68 "delta_contains": "partial"
69 },
70 "action": "cancel"
71 }
72 ]
73 }
74
74 lines JSON