conversation-session-web-remote-unread.json 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-web-remote-unread",
  4. "spec": "./test/e2e/conversation-session/remote/mobile/conversation-session-web-remote-unread.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "mro03-title",
  8. "description": "未读用例标题",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "准备同一任务的可重放历史;标题不参与未读判定。"
  14. },
  15. "maxMatches": 12,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["Generate a concise title", "E2E_MRO03"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "text": {
  24. "text": "{\"title\":\"MRO03 Task\"}"
  25. }
  26. }
  27. },
  28. {
  29. "id": "mro03-seed",
  30. "description": "本地历史准备",
  31. "metadata": {
  32. "kind": "main",
  33. "timingPolicy": "fast-text",
  34. "source": "synthetic",
  35. "syntheticReason": "准备同一任务的可重放历史;标题不参与未读判定。"
  36. },
  37. "maxMatches": 2,
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "lastUserMessageIncludes": ["E2E_MRO03_SEED"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "text": {
  47. "text": "MRO03_SEED_DONE"
  48. }
  49. }
  50. },
  51. {
  52. "id": "mro03-ssh-seed",
  53. "description": "真实SSH历史准备",
  54. "metadata": {
  55. "kind": "main",
  56. "timingPolicy": "fast-text",
  57. "source": "synthetic",
  58. "syntheticReason": "准备同一任务的可重放历史;标题不参与未读判定。"
  59. },
  60. "maxMatches": 1,
  61. "match": {
  62. "method": "POST",
  63. "pathIncludes": "/messages",
  64. "lastUserMessageIncludes": ["E2E_MRO03_SSH_A_FIRST_PROMPT"],
  65. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  66. },
  67. "response": {
  68. "statusCode": 200,
  69. "text": {
  70. "text": "MRO03_SSH_REPLY"
  71. }
  72. }
  73. },
  74. {
  75. "id": "mro03-visible",
  76. "description": "本地VISIBLE实际查看场景",
  77. "metadata": {
  78. "kind": "main",
  79. "timingPolicy": "controlled-stream",
  80. "source": "synthetic",
  81. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  82. },
  83. "maxMatches": 2,
  84. "match": {
  85. "method": "POST",
  86. "pathIncludes": "/messages",
  87. "lastUserMessageIncludes": ["E2E_MRO03_VISIBLE"],
  88. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  89. },
  90. "response": {
  91. "statusCode": 200,
  92. "headers": {
  93. "content-type": "text/event-stream; charset=utf-8"
  94. },
  95. "chunks": [
  96. {
  97. "offsetMs": 0,
  98. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-visible\",\"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}}}\n\n"
  99. },
  100. {
  101. "offsetMs": 0,
  102. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  103. },
  104. {
  105. "offsetMs": 0,
  106. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_VISIBLE_STREAMING \"}}\n\n"
  107. },
  108. {
  109. "offsetMs": 0,
  110. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_VISIBLE_DONE\"}}\n\n"
  111. },
  112. {
  113. "offsetMs": 0,
  114. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  115. },
  116. {
  117. "offsetMs": 0,
  118. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  119. },
  120. {
  121. "offsetMs": 0,
  122. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  123. }
  124. ],
  125. "releaseAfterChunks": 3
  126. }
  127. },
  128. {
  129. "id": "mro03-home",
  130. "description": "本地HOME实际查看场景",
  131. "metadata": {
  132. "kind": "main",
  133. "timingPolicy": "controlled-stream",
  134. "source": "synthetic",
  135. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  136. },
  137. "maxMatches": 2,
  138. "match": {
  139. "method": "POST",
  140. "pathIncludes": "/messages",
  141. "lastUserMessageIncludes": ["E2E_MRO03_HOME"],
  142. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  143. },
  144. "response": {
  145. "statusCode": 200,
  146. "headers": {
  147. "content-type": "text/event-stream; charset=utf-8"
  148. },
  149. "chunks": [
  150. {
  151. "offsetMs": 0,
  152. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-home\",\"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}}}\n\n"
  153. },
  154. {
  155. "offsetMs": 0,
  156. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  157. },
  158. {
  159. "offsetMs": 0,
  160. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_HOME_STREAMING \"}}\n\n"
  161. },
  162. {
  163. "offsetMs": 0,
  164. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_HOME_DONE\"}}\n\n"
  165. },
  166. {
  167. "offsetMs": 0,
  168. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  169. },
  170. {
  171. "offsetMs": 0,
  172. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  173. },
  174. {
  175. "offsetMs": 0,
  176. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  177. }
  178. ],
  179. "releaseAfterChunks": 3
  180. }
  181. },
  182. {
  183. "id": "mro03-reconnect",
  184. "description": "本地RECONNECT实际查看场景",
  185. "metadata": {
  186. "kind": "main",
  187. "timingPolicy": "controlled-stream",
  188. "source": "synthetic",
  189. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  190. },
  191. "maxMatches": 2,
  192. "match": {
  193. "method": "POST",
  194. "pathIncludes": "/messages",
  195. "lastUserMessageIncludes": ["E2E_MRO03_RECONNECT"],
  196. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  197. },
  198. "response": {
  199. "statusCode": 200,
  200. "headers": {
  201. "content-type": "text/event-stream; charset=utf-8"
  202. },
  203. "chunks": [
  204. {
  205. "offsetMs": 0,
  206. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-reconnect\",\"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}}}\n\n"
  207. },
  208. {
  209. "offsetMs": 0,
  210. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  211. },
  212. {
  213. "offsetMs": 0,
  214. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_RECONNECT_STREAMING \"}}\n\n"
  215. },
  216. {
  217. "offsetMs": 0,
  218. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_RECONNECT_DONE\"}}\n\n"
  219. },
  220. {
  221. "offsetMs": 0,
  222. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  223. },
  224. {
  225. "offsetMs": 0,
  226. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  227. },
  228. {
  229. "offsetMs": 0,
  230. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  231. }
  232. ],
  233. "releaseAfterChunks": 3
  234. }
  235. },
  236. {
  237. "id": "mro03-promotion",
  238. "description": "本地PROMOTION实际查看场景",
  239. "metadata": {
  240. "kind": "main",
  241. "timingPolicy": "controlled-stream",
  242. "source": "synthetic",
  243. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  244. },
  245. "maxMatches": 2,
  246. "match": {
  247. "method": "POST",
  248. "pathIncludes": "/messages",
  249. "lastUserMessageIncludes": ["E2E_MRO03_PROMOTION"],
  250. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  251. },
  252. "response": {
  253. "statusCode": 200,
  254. "headers": {
  255. "content-type": "text/event-stream; charset=utf-8"
  256. },
  257. "chunks": [
  258. {
  259. "offsetMs": 0,
  260. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-promotion\",\"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}}}\n\n"
  261. },
  262. {
  263. "offsetMs": 0,
  264. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  265. },
  266. {
  267. "offsetMs": 0,
  268. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_PROMOTION_STREAMING \"}}\n\n"
  269. },
  270. {
  271. "offsetMs": 0,
  272. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_PROMOTION_DONE\"}}\n\n"
  273. },
  274. {
  275. "offsetMs": 0,
  276. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  277. },
  278. {
  279. "offsetMs": 0,
  280. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  281. },
  282. {
  283. "offsetMs": 0,
  284. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  285. }
  286. ],
  287. "releaseAfterChunks": 3
  288. }
  289. },
  290. {
  291. "id": "mro03-background",
  292. "description": "本地BACKGROUND实际查看场景",
  293. "metadata": {
  294. "kind": "main",
  295. "timingPolicy": "controlled-stream",
  296. "source": "synthetic",
  297. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  298. },
  299. "maxMatches": 1,
  300. "match": {
  301. "method": "POST",
  302. "pathIncludes": "/messages",
  303. "lastUserMessageIncludes": ["E2E_MRO03_BACKGROUND"],
  304. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  305. },
  306. "response": {
  307. "statusCode": 200,
  308. "headers": {
  309. "content-type": "text/event-stream; charset=utf-8"
  310. },
  311. "chunks": [
  312. {
  313. "offsetMs": 0,
  314. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-background\",\"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}}}\n\n"
  315. },
  316. {
  317. "offsetMs": 0,
  318. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  319. },
  320. {
  321. "offsetMs": 0,
  322. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_BACKGROUND_STREAMING \"}}\n\n"
  323. },
  324. {
  325. "offsetMs": 0,
  326. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_BACKGROUND_DONE\"}}\n\n"
  327. },
  328. {
  329. "offsetMs": 0,
  330. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  331. },
  332. {
  333. "offsetMs": 0,
  334. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  335. },
  336. {
  337. "offsetMs": 0,
  338. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  339. }
  340. ],
  341. "releaseAfterChunks": 3
  342. }
  343. },
  344. {
  345. "id": "mro03-ssh-visible",
  346. "description": "SSHVISIBLE实际查看场景",
  347. "metadata": {
  348. "kind": "main",
  349. "timingPolicy": "controlled-stream",
  350. "source": "synthetic",
  351. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  352. },
  353. "maxMatches": 1,
  354. "match": {
  355. "method": "POST",
  356. "pathIncludes": "/messages",
  357. "lastUserMessageIncludes": ["E2E_MRO03_SSH_VISIBLE"],
  358. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  359. },
  360. "response": {
  361. "statusCode": 200,
  362. "headers": {
  363. "content-type": "text/event-stream; charset=utf-8"
  364. },
  365. "chunks": [
  366. {
  367. "offsetMs": 0,
  368. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-ssh-visible\",\"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}}}\n\n"
  369. },
  370. {
  371. "offsetMs": 0,
  372. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  373. },
  374. {
  375. "offsetMs": 0,
  376. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_VISIBLE_STREAMING \"}}\n\n"
  377. },
  378. {
  379. "offsetMs": 0,
  380. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_VISIBLE_DONE\"}}\n\n"
  381. },
  382. {
  383. "offsetMs": 0,
  384. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  385. },
  386. {
  387. "offsetMs": 0,
  388. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  389. },
  390. {
  391. "offsetMs": 0,
  392. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  393. }
  394. ],
  395. "releaseAfterChunks": 3
  396. }
  397. },
  398. {
  399. "id": "mro03-ssh-home",
  400. "description": "SSHHOME实际查看场景",
  401. "metadata": {
  402. "kind": "main",
  403. "timingPolicy": "controlled-stream",
  404. "source": "synthetic",
  405. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  406. },
  407. "maxMatches": 1,
  408. "match": {
  409. "method": "POST",
  410. "pathIncludes": "/messages",
  411. "lastUserMessageIncludes": ["E2E_MRO03_SSH_HOME"],
  412. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  413. },
  414. "response": {
  415. "statusCode": 200,
  416. "headers": {
  417. "content-type": "text/event-stream; charset=utf-8"
  418. },
  419. "chunks": [
  420. {
  421. "offsetMs": 0,
  422. "text": "event: message_start\ndata: {\"type\":\"message_start\",\"message\":{\"id\":\"mro03-ssh-home\",\"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}}}\n\n"
  423. },
  424. {
  425. "offsetMs": 0,
  426. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  427. },
  428. {
  429. "offsetMs": 0,
  430. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_HOME_STREAMING \"}}\n\n"
  431. },
  432. {
  433. "offsetMs": 0,
  434. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_HOME_DONE\"}}\n\n"
  435. },
  436. {
  437. "offsetMs": 0,
  438. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  439. },
  440. {
  441. "offsetMs": 0,
  442. "text": "event: message_delta\ndata: {\"type\":\"message_delta\",\"delta\":{\"stop_reason\":\"end_turn\",\"stop_sequence\":null},\"usage\":{\"input_tokens\":80,\"output_tokens\":8}}\n\n"
  443. },
  444. {
  445. "offsetMs": 0,
  446. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  447. }
  448. ],
  449. "releaseAfterChunks": 3
  450. }
  451. }
  452. ]
  453. }