conversation-session-queue-edit-freeze-mobile.json 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-queue-edit-freeze-mobile",
  4. "spec": "./test/e2e/conversation-session/queue/conversation-session-queue-edit-freeze-mobile.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "conversation-session-queue-edit-freeze-mobile-title",
  8. "description": "E2E_QEFM_ 首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "E2E_QEFM_ 首发会触发默认 title sidecar;固定 case-local 标题响应,避免 default replay 回退 legacy provider-basic。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_QEFM_"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "conversation-session-queue-edit-freeze-mobile-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\": \"Queue Edit Freeze Mobile E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "qefm-slow-1",
  32. "description": "B09m/B09j 首轮慢流,手机端编辑期间保持队列。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "controlled-stream",
  36. "source": "synthetic",
  37. "syntheticReason": "编辑态需要 running 窗口;在 UI 动作与断言完成后由测试显式释放,不改变产品时钟。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_QEFM_SLOW_1"],
  44. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "statusMessage": "OK",
  49. "headers": {
  50. "cache-control": "no-cache",
  51. "content-type": "text/event-stream; charset=utf-8"
  52. },
  53. "chunks": [
  54. {
  55. "offsetMs": 0,
  56. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"qefm-slow-1\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  57. },
  58. {
  59. "offsetMs": 250,
  60. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  61. },
  62. {
  63. "offsetMs": 500,
  64. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"QEFM_1_STREAMING \"}}\n\n"
  65. },
  66. {
  67. "offsetMs": 600,
  68. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  69. },
  70. {
  71. "offsetMs": 700,
  72. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":4,\"service_tier\":\"standard\"}}\n\n"
  73. },
  74. {
  75. "offsetMs": 800,
  76. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  77. }
  78. ],
  79. "text": {
  80. "id": "qefm-slow-1",
  81. "inputTokens": 80,
  82. "outputTokens": 4,
  83. "text": "QEFM_1_STREAMING"
  84. },
  85. "releaseAfterChunks": 3
  86. }
  87. },
  88. {
  89. "id": "qefm-c",
  90. "description": "B09j 桌面解除锁后冻结项消费。",
  91. "metadata": {
  92. "kind": "main",
  93. "timingPolicy": "fast-text",
  94. "source": "synthetic",
  95. "syntheticReason": "证明解除后续跑从冻结项继续。"
  96. },
  97. "match": {
  98. "method": "POST",
  99. "pathIncludes": "/messages",
  100. "lastUserMessageIncludes": ["E2E_QEFM_C"],
  101. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  102. },
  103. "response": {
  104. "statusCode": 200,
  105. "text": {
  106. "id": "qefm-c",
  107. "inputTokens": 80,
  108. "outputTokens": 6,
  109. "text": "QEFM_C_REPLY"
  110. }
  111. }
  112. },
  113. {
  114. "id": "qefm-d",
  115. "description": "B09j 冻结项之后的队列项消费。",
  116. "metadata": {
  117. "kind": "main",
  118. "timingPolicy": "fast-text",
  119. "source": "synthetic",
  120. "syntheticReason": "证明顺序不变。"
  121. },
  122. "match": {
  123. "method": "POST",
  124. "pathIncludes": "/messages",
  125. "lastUserMessageIncludes": ["E2E_QEFM_D"],
  126. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  127. },
  128. "response": {
  129. "statusCode": 200,
  130. "text": {
  131. "id": "qefm-d",
  132. "inputTokens": 80,
  133. "outputTokens": 6,
  134. "text": "QEFM_D_REPLY"
  135. }
  136. }
  137. },
  138. {
  139. "id": "qefm-e",
  140. "description": "B09m 队首冻结且空闲时的新输入入队尾。",
  141. "metadata": {
  142. "kind": "main",
  143. "timingPolicy": "fast-text",
  144. "source": "synthetic",
  145. "syntheticReason": "证明新输入不弹暂停队列确认、排到队尾。"
  146. },
  147. "match": {
  148. "method": "POST",
  149. "pathIncludes": "/messages",
  150. "lastUserMessageIncludes": ["E2E_QEFM_E"],
  151. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  152. },
  153. "response": {
  154. "statusCode": 200,
  155. "text": {
  156. "id": "qefm-e",
  157. "inputTokens": 80,
  158. "outputTokens": 6,
  159. "text": "QEFM_E_REPLY"
  160. }
  161. }
  162. },
  163. {
  164. "id": "qefm-slow-2",
  165. "description": "B09l 停止后形成暂停队列的慢流。",
  166. "metadata": {
  167. "kind": "main",
  168. "timingPolicy": "controlled-stream",
  169. "source": "synthetic",
  170. "syntheticReason": "暂停队列需要 running 后 Stop;该流由 Stop 结束,不释放。"
  171. },
  172. "maxMatches": 1,
  173. "match": {
  174. "method": "POST",
  175. "pathIncludes": "/messages",
  176. "lastUserMessageIncludes": ["E2E_QEFM_SLOW_2"],
  177. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  178. },
  179. "response": {
  180. "statusCode": 200,
  181. "statusMessage": "OK",
  182. "headers": {
  183. "cache-control": "no-cache",
  184. "content-type": "text/event-stream; charset=utf-8"
  185. },
  186. "chunks": [
  187. {
  188. "offsetMs": 0,
  189. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"qefm-slow-2\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  190. },
  191. {
  192. "offsetMs": 250,
  193. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  194. },
  195. {
  196. "offsetMs": 500,
  197. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"QEFM_2_STREAMING \"}}\n\n"
  198. },
  199. {
  200. "offsetMs": 600,
  201. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  202. },
  203. {
  204. "offsetMs": 700,
  205. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":4,\"service_tier\":\"standard\"}}\n\n"
  206. },
  207. {
  208. "offsetMs": 800,
  209. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  210. }
  211. ],
  212. "text": {
  213. "id": "qefm-slow-2",
  214. "inputTokens": 80,
  215. "outputTokens": 4,
  216. "text": "QEFM_2_STREAMING"
  217. },
  218. "releaseAfterChunks": 3
  219. }
  220. },
  221. {
  222. "id": "qefm-h",
  223. "description": "B09l 清空队列并发送的新输入。",
  224. "metadata": {
  225. "kind": "main",
  226. "timingPolicy": "fast-text",
  227. "source": "synthetic",
  228. "syntheticReason": "清空删除手机端冻结项后,桌面新输入正常执行。"
  229. },
  230. "match": {
  231. "method": "POST",
  232. "pathIncludes": "/messages",
  233. "lastUserMessageIncludes": ["E2E_QEFM_H"],
  234. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  235. },
  236. "response": {
  237. "statusCode": 200,
  238. "text": {
  239. "id": "qefm-h",
  240. "inputTokens": 80,
  241. "outputTokens": 6,
  242. "text": "QEFM_H_REPLY"
  243. }
  244. }
  245. },
  246. {
  247. "id": "qefm-slow-3",
  248. "description": "B09j 手机断开后桌面解除锁的慢流窗口。",
  249. "metadata": {
  250. "kind": "main",
  251. "timingPolicy": "controlled-stream",
  252. "source": "synthetic",
  253. "syntheticReason": "编辑态需要 running 窗口;在 UI 动作与断言完成后由测试显式释放,不改变产品时钟。"
  254. },
  255. "maxMatches": 1,
  256. "match": {
  257. "method": "POST",
  258. "pathIncludes": "/messages",
  259. "lastUserMessageIncludes": ["E2E_QEFM_SLOW_3"],
  260. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  261. },
  262. "response": {
  263. "statusCode": 200,
  264. "statusMessage": "OK",
  265. "headers": {
  266. "cache-control": "no-cache",
  267. "content-type": "text/event-stream; charset=utf-8"
  268. },
  269. "chunks": [
  270. {
  271. "offsetMs": 0,
  272. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"qefm-slow-3\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[],\"stop_reason\":null,\"stop_sequence\":null,\"usage\":{\"input_tokens\":80,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":0,\"service_tier\":\"standard\"}}}\n\n"
  273. },
  274. {
  275. "offsetMs": 250,
  276. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  277. },
  278. {
  279. "offsetMs": 500,
  280. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"QEFM_3_STREAMING \"}}\n\n"
  281. },
  282. {
  283. "offsetMs": 600,
  284. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  285. },
  286. {
  287. "offsetMs": 700,
  288. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":4,\"service_tier\":\"standard\"}}\n\n"
  289. },
  290. {
  291. "offsetMs": 800,
  292. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  293. }
  294. ],
  295. "text": {
  296. "id": "qefm-slow-3",
  297. "inputTokens": 80,
  298. "outputTokens": 4,
  299. "text": "QEFM_3_STREAMING"
  300. },
  301. "releaseAfterChunks": 3
  302. }
  303. },
  304. {
  305. "id": "qefm-j",
  306. "description": "B09j 手机断开后桌面解除锁,冻结项消费。",
  307. "metadata": {
  308. "kind": "main",
  309. "timingPolicy": "fast-text",
  310. "source": "synthetic",
  311. "syntheticReason": "证明离线锁由用户手动解除,不依赖超时。"
  312. },
  313. "match": {
  314. "method": "POST",
  315. "pathIncludes": "/messages",
  316. "lastUserMessageIncludes": ["E2E_QEFM_J"],
  317. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  318. },
  319. "response": {
  320. "statusCode": 200,
  321. "text": {
  322. "id": "qefm-j",
  323. "inputTokens": 80,
  324. "outputTokens": 6,
  325. "text": "QEFM_J_REPLY"
  326. }
  327. }
  328. }
  329. ]
  330. }