conversation-session-ssh-remote-p0.json 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-ssh-remote-p0",
  4. "spec": "./test/e2e/conversation-session/remote/connection/conversation-session-ssh-remote-p0.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "ssh-remote-p0-title",
  8. "description": "远端 task 标题生成固定响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "标题内容不属于本 case 语义,只需保持 task row 稳定。"
  14. },
  15. "maxMatches": 4,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/chat/completions",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SSH_REMOTE_P0"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "text/event-stream; charset=utf-8"
  25. },
  26. "body": "data: {\"id\":\"chatcmpl-ssh-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"{\\\"title\\\":\\\"SSH Remote P0\\\"}\"},\"finish_reason\":null}]}\n\ndata: {\"id\":\"chatcmpl-ssh-title\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  27. }
  28. },
  29. {
  30. "id": "ssh-remote-p0-a-first",
  31. "description": "workspace A 首发固定回复。",
  32. "metadata": {
  33. "kind": "main",
  34. "timingPolicy": "controlled-stream",
  35. "source": "synthetic",
  36. "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
  37. },
  38. "match": {
  39. "method": "POST",
  40. "pathIncludes": "/chat/completions",
  41. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT"],
  42. "bodyExcludes": ["Generate a concise title"]
  43. },
  44. "response": {
  45. "statusCode": 200,
  46. "headers": {
  47. "content-type": "text/event-stream; charset=utf-8"
  48. },
  49. "chunks": [
  50. {
  51. "offsetMs": 0,
  52. "text": "data: {\"id\":\"chatcmpl-ssh-a1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_A_FIRST_REPLY\"},\"finish_reason\":null}]}\n\n"
  53. },
  54. {
  55. "offsetMs": 0,
  56. "text": "data: {\"id\":\"chatcmpl-ssh-a1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  57. }
  58. ],
  59. "releaseAfterChunks": 1
  60. }
  61. },
  62. {
  63. "id": "ssh-remote-p0-b-first",
  64. "description": "workspace B 首发固定回复。",
  65. "metadata": {
  66. "kind": "main",
  67. "timingPolicy": "controlled-stream",
  68. "source": "synthetic",
  69. "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
  70. },
  71. "match": {
  72. "method": "POST",
  73. "pathIncludes": "/chat/completions",
  74. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT"],
  75. "bodyExcludes": ["Generate a concise title"]
  76. },
  77. "response": {
  78. "statusCode": 200,
  79. "headers": {
  80. "content-type": "text/event-stream; charset=utf-8"
  81. },
  82. "chunks": [
  83. {
  84. "offsetMs": 0,
  85. "text": "data: {\"id\":\"chatcmpl-ssh-b1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_B_FIRST_REPLY\"},\"finish_reason\":null}]}\n\n"
  86. },
  87. {
  88. "offsetMs": 0,
  89. "text": "data: {\"id\":\"chatcmpl-ssh-b1\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":32,\"completion_tokens\":8,\"total_tokens\":40}}\n\ndata: [DONE]\n\n"
  90. }
  91. ],
  92. "releaseAfterChunks": 1
  93. }
  94. },
  95. {
  96. "id": "ssh-remote-p0-a-follow",
  97. "description": "workspace A 续发固定回复。",
  98. "metadata": {
  99. "kind": "main",
  100. "timingPolicy": "controlled-stream",
  101. "source": "synthetic",
  102. "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
  103. },
  104. "match": {
  105. "method": "POST",
  106. "pathIncludes": "/chat/completions",
  107. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_A_FOLLOW_PROMPT"],
  108. "bodyIncludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT"],
  109. "bodyExcludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT", "Generate a concise title"]
  110. },
  111. "response": {
  112. "statusCode": 200,
  113. "headers": {
  114. "content-type": "text/event-stream; charset=utf-8"
  115. },
  116. "chunks": [
  117. {
  118. "offsetMs": 0,
  119. "text": "data: {\"id\":\"chatcmpl-ssh-a2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_A_FOLLOW_REPLY\"},\"finish_reason\":null}]}\n\n"
  120. },
  121. {
  122. "offsetMs": 0,
  123. "text": "data: {\"id\":\"chatcmpl-ssh-a2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":48,\"completion_tokens\":8,\"total_tokens\":56}}\n\ndata: [DONE]\n\n"
  124. }
  125. ],
  126. "releaseAfterChunks": 1
  127. }
  128. },
  129. {
  130. "id": "ssh-remote-p0-b-follow",
  131. "description": "workspace B 续发固定回复。",
  132. "metadata": {
  133. "kind": "main",
  134. "timingPolicy": "controlled-stream",
  135. "source": "synthetic",
  136. "syntheticReason": "首段输出后等待侧栏 active/running 断言,再显式释放结束帧;避免固定时长造成观测竞态。"
  137. },
  138. "match": {
  139. "method": "POST",
  140. "pathIncludes": "/chat/completions",
  141. "lastUserMessageIncludes": ["E2E_SSH_REMOTE_P0_B_FOLLOW_PROMPT"],
  142. "bodyIncludes": ["E2E_SSH_REMOTE_P0_B_FIRST_PROMPT"],
  143. "bodyExcludes": ["E2E_SSH_REMOTE_P0_A_FIRST_PROMPT", "Generate a concise title"]
  144. },
  145. "response": {
  146. "statusCode": 200,
  147. "headers": {
  148. "content-type": "text/event-stream; charset=utf-8"
  149. },
  150. "chunks": [
  151. {
  152. "offsetMs": 0,
  153. "text": "data: {\"id\":\"chatcmpl-ssh-b2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{\"content\":\"E2E_SSH_REMOTE_P0_B_FOLLOW_REPLY\"},\"finish_reason\":null}]}\n\n"
  154. },
  155. {
  156. "offsetMs": 0,
  157. "text": "data: {\"id\":\"chatcmpl-ssh-b2\",\"object\":\"chat.completion.chunk\",\"created\":0,\"model\":\"e2e-ssh-remote-p0-model\",\"choices\":[{\"index\":0,\"delta\":{},\"finish_reason\":\"stop\"}],\"usage\":{\"prompt_tokens\":48,\"completion_tokens\":8,\"total_tokens\":56}}\n\ndata: [DONE]\n\n"
  158. }
  159. ],
  160. "releaseAfterChunks": 1
  161. }
  162. }
  163. ]
  164. }