conversation-session-web-remote-unread-ssh.json 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-web-remote-unread-ssh",
  4. "spec": "./test/e2e/conversation-session/remote/mobile/conversation-session-web-remote-unread-ssh.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-ssh-seed",
  30. "description": "真实SSH历史准备",
  31. "metadata": {
  32. "kind": "main",
  33. "timingPolicy": "fast-text",
  34. "source": "synthetic",
  35. "syntheticReason": "准备同一任务的可重放历史;标题不参与未读判定。"
  36. },
  37. "maxMatches": 1,
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/messages",
  41. "lastUserMessageIncludes": ["E2E_MRO03_SSH_A_FIRST_PROMPT"],
  42. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "text": {
  47. "text": "MRO03_SSH_REPLY"
  48. }
  49. }
  50. },
  51. {
  52. "id": "mro03-ssh-visible",
  53. "description": "SSHVISIBLE实际查看场景",
  54. "metadata": {
  55. "kind": "main",
  56. "timingPolicy": "controlled-stream",
  57. "source": "synthetic",
  58. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  59. },
  60. "maxMatches": 1,
  61. "match": {
  62. "method": "POST",
  63. "pathIncludes": "/messages",
  64. "lastUserMessageIncludes": ["E2E_MRO03_SSH_VISIBLE"],
  65. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  66. },
  67. "response": {
  68. "statusCode": 200,
  69. "headers": {
  70. "content-type": "text/event-stream; charset=utf-8"
  71. },
  72. "chunks": [
  73. {
  74. "offsetMs": 0,
  75. "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"
  76. },
  77. {
  78. "offsetMs": 0,
  79. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  80. },
  81. {
  82. "offsetMs": 0,
  83. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_VISIBLE_STREAMING \"}}\n\n"
  84. },
  85. {
  86. "offsetMs": 0,
  87. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_VISIBLE_DONE\"}}\n\n"
  88. },
  89. {
  90. "offsetMs": 0,
  91. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  92. },
  93. {
  94. "offsetMs": 0,
  95. "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"
  96. },
  97. {
  98. "offsetMs": 0,
  99. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  100. }
  101. ],
  102. "releaseAfterChunks": 3
  103. }
  104. },
  105. {
  106. "id": "mro03-ssh-home",
  107. "description": "SSHHOME实际查看场景",
  108. "metadata": {
  109. "kind": "main",
  110. "timingPolicy": "controlled-stream",
  111. "source": "synthetic",
  112. "syntheticReason": "固定模型响应;由测试在实际查看状态被Main接受后显式释放完成,验证唯一桌面writer与持久marker,不消费模型额度。"
  113. },
  114. "maxMatches": 1,
  115. "match": {
  116. "method": "POST",
  117. "pathIncludes": "/messages",
  118. "lastUserMessageIncludes": ["E2E_MRO03_SSH_HOME"],
  119. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  120. },
  121. "response": {
  122. "statusCode": 200,
  123. "headers": {
  124. "content-type": "text/event-stream; charset=utf-8"
  125. },
  126. "chunks": [
  127. {
  128. "offsetMs": 0,
  129. "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"
  130. },
  131. {
  132. "offsetMs": 0,
  133. "text": "event: content_block_start\ndata: {\"type\":\"content_block_start\",\"index\":0,\"content_block\":{\"type\":\"text\",\"text\":\"\"}}\n\n"
  134. },
  135. {
  136. "offsetMs": 0,
  137. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_HOME_STREAMING \"}}\n\n"
  138. },
  139. {
  140. "offsetMs": 0,
  141. "text": "event: content_block_delta\ndata: {\"type\":\"content_block_delta\",\"index\":0,\"delta\":{\"type\":\"text_delta\",\"text\":\"MRO03_SSH_HOME_DONE\"}}\n\n"
  142. },
  143. {
  144. "offsetMs": 0,
  145. "text": "event: content_block_stop\ndata: {\"type\":\"content_block_stop\",\"index\":0}\n\n"
  146. },
  147. {
  148. "offsetMs": 0,
  149. "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"
  150. },
  151. {
  152. "offsetMs": 0,
  153. "text": "event: message_stop\ndata: {\"type\":\"message_stop\"}\n\n"
  154. }
  155. ],
  156. "releaseAfterChunks": 3
  157. }
  158. }
  159. ]
  160. }