conversation-session-subagent-multi-workspace.json 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-subagent-multi-workspace",
  4. "spec": "./test/e2e/conversation-session/subagents/conversation-session-subagent-multi-workspace.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "smw-a-title",
  8. "description": "smw-a-title",
  9. "maxMatches": 1,
  10. "metadata": {
  11. "kind": "common",
  12. "source": "synthetic",
  13. "timingPolicy": "fast-text",
  14. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  15. },
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyIncludes": ["Generate a concise title", "E2E_SMW_A_SEED"]
  20. },
  21. "response": {
  22. "statusCode": 200,
  23. "headers": {
  24. "content-type": "application/json; charset=utf-8"
  25. },
  26. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Workspace a\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
  27. }
  28. },
  29. {
  30. "id": "smw-a-seed",
  31. "description": "smw-a-seed",
  32. "maxMatches": 1,
  33. "metadata": {
  34. "kind": "main",
  35. "source": "synthetic",
  36. "timingPolicy": "fast-text",
  37. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  38. },
  39. "match": {
  40. "method": "POST",
  41. "pathIncludes": "/messages",
  42. "lastUserMessageIncludes": ["E2E_SMW_A_SEED:"],
  43. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  44. },
  45. "response": {
  46. "statusCode": 200,
  47. "text": {
  48. "text": "E2E_SMW_A_SEED_DONE",
  49. "inputTokens": 32
  50. }
  51. }
  52. },
  53. {
  54. "id": "smw-a-hold-tool",
  55. "description": "smw-a-hold-tool",
  56. "maxMatches": 1,
  57. "metadata": {
  58. "kind": "main",
  59. "source": "synthetic",
  60. "timingPolicy": "controlled-stream",
  61. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  62. },
  63. "match": {
  64. "method": "POST",
  65. "pathIncludes": "/messages",
  66. "lastUserMessageIncludes": ["E2E_SMW_A_HOLD:"],
  67. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  68. },
  69. "response": {
  70. "statusCode": 200,
  71. "toolUse": {
  72. "id": "toolu_smw_a_hold",
  73. "name": "Agent",
  74. "inputTokens": 32,
  75. "input": {
  76. "subagent_type": "e2e-workspace-reviewer",
  77. "description": "hold",
  78. "prompt": "E2E_SMW_A_HOLD_CHILD",
  79. "run_in_background": false
  80. }
  81. },
  82. "delayMs": 45000
  83. }
  84. },
  85. {
  86. "id": "smw-a-hold-child",
  87. "description": "smw-a-hold-child",
  88. "maxMatches": 1,
  89. "metadata": {
  90. "kind": "subagent",
  91. "source": "synthetic",
  92. "timingPolicy": "fast-text",
  93. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  94. },
  95. "match": {
  96. "method": "POST",
  97. "pathIncludes": "/messages",
  98. "bodyIncludes": ["E2E_SMW_A_HOLD_CHILD", "E2E_SMW_PROFILE_"],
  99. "bodyExcludes": [
  100. "Generate a concise title",
  101. "CRITICAL: Respond with TEXT ONLY",
  102. "E2E_SMW_A_SEED:"
  103. ]
  104. },
  105. "response": {
  106. "statusCode": 200,
  107. "text": {
  108. "text": "E2E_SMW_A_HOLD_CHILD_DONE",
  109. "inputTokens": 32
  110. }
  111. }
  112. },
  113. {
  114. "id": "smw-a-hold-final",
  115. "description": "smw-a-hold-final",
  116. "maxMatches": 1,
  117. "metadata": {
  118. "kind": "main",
  119. "source": "synthetic",
  120. "timingPolicy": "fast-text",
  121. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  122. },
  123. "match": {
  124. "method": "POST",
  125. "pathIncludes": "/messages",
  126. "bodyIncludes": ["toolu_smw_a_hold", "agentId: agent_"],
  127. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  128. },
  129. "response": {
  130. "statusCode": 200,
  131. "text": {
  132. "text": "E2E_SMW_A_HOLD_DONE",
  133. "inputTokens": 32
  134. }
  135. }
  136. },
  137. {
  138. "id": "smw-a-next-tool",
  139. "description": "smw-a-next-tool",
  140. "maxMatches": 1,
  141. "metadata": {
  142. "kind": "main",
  143. "source": "synthetic",
  144. "timingPolicy": "fast-text",
  145. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  146. },
  147. "match": {
  148. "method": "POST",
  149. "pathIncludes": "/messages",
  150. "lastUserMessageIncludes": ["E2E_SMW_A_NEXT:"],
  151. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  152. },
  153. "response": {
  154. "statusCode": 200,
  155. "toolUse": {
  156. "id": "toolu_smw_a_next",
  157. "name": "Agent",
  158. "inputTokens": 32,
  159. "input": {
  160. "subagent_type": "e2e-workspace-reviewer",
  161. "description": "next",
  162. "prompt": "E2E_SMW_A_NEXT_CHILD",
  163. "run_in_background": false
  164. }
  165. }
  166. }
  167. },
  168. {
  169. "id": "smw-a-next-child",
  170. "description": "smw-a-next-child",
  171. "maxMatches": 1,
  172. "metadata": {
  173. "kind": "subagent",
  174. "source": "synthetic",
  175. "timingPolicy": "fast-text",
  176. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  177. },
  178. "match": {
  179. "method": "POST",
  180. "pathIncludes": "/messages",
  181. "bodyIncludes": ["E2E_SMW_A_NEXT_CHILD", "E2E_SMW_PROFILE_"],
  182. "bodyExcludes": [
  183. "Generate a concise title",
  184. "CRITICAL: Respond with TEXT ONLY",
  185. "E2E_SMW_A_SEED:"
  186. ]
  187. },
  188. "response": {
  189. "statusCode": 200,
  190. "text": {
  191. "text": "E2E_SMW_A_NEXT_CHILD_DONE",
  192. "inputTokens": 32
  193. }
  194. }
  195. },
  196. {
  197. "id": "smw-a-next-final",
  198. "description": "smw-a-next-final",
  199. "maxMatches": 1,
  200. "metadata": {
  201. "kind": "main",
  202. "source": "synthetic",
  203. "timingPolicy": "fast-text",
  204. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  205. },
  206. "match": {
  207. "method": "POST",
  208. "pathIncludes": "/messages",
  209. "bodyIncludes": ["toolu_smw_a_next", "agentId: agent_"],
  210. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  211. },
  212. "response": {
  213. "statusCode": 200,
  214. "text": {
  215. "text": "E2E_SMW_A_NEXT_DONE",
  216. "inputTokens": 32
  217. }
  218. }
  219. },
  220. {
  221. "id": "smw-b-title",
  222. "description": "smw-b-title",
  223. "maxMatches": 1,
  224. "metadata": {
  225. "kind": "common",
  226. "source": "synthetic",
  227. "timingPolicy": "fast-text",
  228. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  229. },
  230. "match": {
  231. "method": "POST",
  232. "pathIncludes": "/messages",
  233. "bodyIncludes": ["Generate a concise title", "E2E_SMW_B_SEED"]
  234. },
  235. "response": {
  236. "statusCode": 200,
  237. "headers": {
  238. "content-type": "application/json; charset=utf-8"
  239. },
  240. "body": "{\"id\":\"msg_upstream_e2e_text\",\"type\":\"message\",\"role\":\"assistant\",\"model\":\"deepseek-v4-flash\",\"content\":[{\"type\":\"text\",\"text\":\"Workspace b\"}],\"stop_reason\":\"end_turn\",\"stop_sequence\":null,\"usage\":{\"input_tokens\":32,\"cache_creation_input_tokens\":0,\"cache_read_input_tokens\":0,\"output_tokens\":12,\"service_tier\":\"standard\"}}"
  241. }
  242. },
  243. {
  244. "id": "smw-b-seed",
  245. "description": "smw-b-seed",
  246. "maxMatches": 1,
  247. "metadata": {
  248. "kind": "main",
  249. "source": "synthetic",
  250. "timingPolicy": "fast-text",
  251. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  252. },
  253. "match": {
  254. "method": "POST",
  255. "pathIncludes": "/messages",
  256. "lastUserMessageIncludes": ["E2E_SMW_B_SEED:"],
  257. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  258. },
  259. "response": {
  260. "statusCode": 200,
  261. "text": {
  262. "text": "E2E_SMW_B_SEED_DONE",
  263. "inputTokens": 32
  264. }
  265. }
  266. },
  267. {
  268. "id": "smw-b-hold-tool",
  269. "description": "smw-b-hold-tool",
  270. "maxMatches": 1,
  271. "metadata": {
  272. "kind": "main",
  273. "source": "synthetic",
  274. "timingPolicy": "controlled-stream",
  275. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  276. },
  277. "match": {
  278. "method": "POST",
  279. "pathIncludes": "/messages",
  280. "lastUserMessageIncludes": ["E2E_SMW_B_HOLD:"],
  281. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  282. },
  283. "response": {
  284. "statusCode": 200,
  285. "toolUse": {
  286. "id": "toolu_smw_b_hold",
  287. "name": "Agent",
  288. "inputTokens": 32,
  289. "input": {
  290. "subagent_type": "e2e-workspace-reviewer",
  291. "description": "hold",
  292. "prompt": "E2E_SMW_B_HOLD_CHILD",
  293. "run_in_background": false
  294. }
  295. },
  296. "delayMs": 45000
  297. }
  298. },
  299. {
  300. "id": "smw-b-hold-child",
  301. "description": "smw-b-hold-child",
  302. "maxMatches": 1,
  303. "metadata": {
  304. "kind": "subagent",
  305. "source": "synthetic",
  306. "timingPolicy": "fast-text",
  307. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  308. },
  309. "match": {
  310. "method": "POST",
  311. "pathIncludes": "/messages",
  312. "bodyIncludes": ["E2E_SMW_B_HOLD_CHILD", "E2E_SMW_PROFILE_"],
  313. "bodyExcludes": [
  314. "Generate a concise title",
  315. "CRITICAL: Respond with TEXT ONLY",
  316. "E2E_SMW_B_SEED:"
  317. ]
  318. },
  319. "response": {
  320. "statusCode": 200,
  321. "text": {
  322. "text": "E2E_SMW_B_HOLD_CHILD_DONE",
  323. "inputTokens": 32
  324. }
  325. }
  326. },
  327. {
  328. "id": "smw-b-hold-final",
  329. "description": "smw-b-hold-final",
  330. "maxMatches": 1,
  331. "metadata": {
  332. "kind": "main",
  333. "source": "synthetic",
  334. "timingPolicy": "fast-text",
  335. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  336. },
  337. "match": {
  338. "method": "POST",
  339. "pathIncludes": "/messages",
  340. "bodyIncludes": ["toolu_smw_b_hold", "agentId: agent_"],
  341. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  342. },
  343. "response": {
  344. "statusCode": 200,
  345. "text": {
  346. "text": "E2E_SMW_B_HOLD_DONE",
  347. "inputTokens": 32
  348. }
  349. }
  350. },
  351. {
  352. "id": "smw-b-next-tool",
  353. "description": "smw-b-next-tool",
  354. "maxMatches": 1,
  355. "metadata": {
  356. "kind": "main",
  357. "source": "synthetic",
  358. "timingPolicy": "fast-text",
  359. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  360. },
  361. "match": {
  362. "method": "POST",
  363. "pathIncludes": "/messages",
  364. "lastUserMessageIncludes": ["E2E_SMW_B_NEXT:"],
  365. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  366. },
  367. "response": {
  368. "statusCode": 200,
  369. "toolUse": {
  370. "id": "toolu_smw_b_next",
  371. "name": "Agent",
  372. "inputTokens": 32,
  373. "input": {
  374. "subagent_type": "e2e-workspace-reviewer",
  375. "description": "next",
  376. "prompt": "E2E_SMW_B_NEXT_CHILD",
  377. "run_in_background": false
  378. }
  379. }
  380. }
  381. },
  382. {
  383. "id": "smw-b-next-child",
  384. "description": "smw-b-next-child",
  385. "maxMatches": 1,
  386. "metadata": {
  387. "kind": "subagent",
  388. "source": "synthetic",
  389. "timingPolicy": "fast-text",
  390. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  391. },
  392. "match": {
  393. "method": "POST",
  394. "pathIncludes": "/messages",
  395. "bodyIncludes": ["E2E_SMW_B_NEXT_CHILD", "E2E_SMW_PROFILE_"],
  396. "bodyExcludes": [
  397. "Generate a concise title",
  398. "CRITICAL: Respond with TEXT ONLY",
  399. "E2E_SMW_B_SEED:"
  400. ]
  401. },
  402. "response": {
  403. "statusCode": 200,
  404. "text": {
  405. "text": "E2E_SMW_B_NEXT_CHILD_DONE",
  406. "inputTokens": 32
  407. }
  408. }
  409. },
  410. {
  411. "id": "smw-b-next-final",
  412. "description": "smw-b-next-final",
  413. "maxMatches": 1,
  414. "metadata": {
  415. "kind": "main",
  416. "source": "synthetic",
  417. "timingPolicy": "fast-text",
  418. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  419. },
  420. "match": {
  421. "method": "POST",
  422. "pathIncludes": "/messages",
  423. "bodyIncludes": ["toolu_smw_b_next", "agentId: agent_"],
  424. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  425. },
  426. "response": {
  427. "statusCode": 200,
  428. "text": {
  429. "text": "E2E_SMW_B_NEXT_DONE",
  430. "inputTokens": 32
  431. }
  432. }
  433. },
  434. {
  435. "id": "smw-a-project-tool",
  436. "description": "smw-a-project-tool",
  437. "maxMatches": 1,
  438. "metadata": {
  439. "kind": "main",
  440. "source": "synthetic",
  441. "timingPolicy": "fast-text",
  442. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  443. },
  444. "match": {
  445. "method": "POST",
  446. "pathIncludes": "/messages",
  447. "lastUserMessageIncludes": ["E2E_SMW_A_PROJECT:"],
  448. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  449. },
  450. "response": {
  451. "statusCode": 200,
  452. "toolUse": {
  453. "id": "toolu_smw_a_project",
  454. "name": "Agent",
  455. "inputTokens": 32,
  456. "input": {
  457. "subagent_type": "e2e-workspace-reviewer",
  458. "description": "next",
  459. "prompt": "E2E_SMW_A_PROJECT_CHILD",
  460. "run_in_background": false
  461. }
  462. }
  463. }
  464. },
  465. {
  466. "id": "smw-a-project-child",
  467. "description": "smw-a-project-child",
  468. "maxMatches": 1,
  469. "metadata": {
  470. "kind": "subagent",
  471. "source": "synthetic",
  472. "timingPolicy": "fast-text",
  473. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  474. },
  475. "match": {
  476. "method": "POST",
  477. "pathIncludes": "/messages",
  478. "bodyIncludes": ["E2E_SMW_A_PROJECT_CHILD", "E2E_SMW_PROFILE_"],
  479. "bodyExcludes": [
  480. "Generate a concise title",
  481. "CRITICAL: Respond with TEXT ONLY",
  482. "E2E_SMW_A_SEED:"
  483. ]
  484. },
  485. "response": {
  486. "statusCode": 200,
  487. "text": {
  488. "text": "E2E_SMW_A_PROJECT_CHILD_DONE",
  489. "inputTokens": 32
  490. }
  491. }
  492. },
  493. {
  494. "id": "smw-a-project-final",
  495. "description": "smw-a-project-final",
  496. "maxMatches": 1,
  497. "metadata": {
  498. "kind": "main",
  499. "source": "synthetic",
  500. "timingPolicy": "fast-text",
  501. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  502. },
  503. "match": {
  504. "method": "POST",
  505. "pathIncludes": "/messages",
  506. "bodyIncludes": ["toolu_smw_a_project", "agentId: agent_"],
  507. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  508. },
  509. "response": {
  510. "statusCode": 200,
  511. "text": {
  512. "text": "E2E_SMW_A_PROJECT_DONE",
  513. "inputTokens": 32
  514. }
  515. }
  516. },
  517. {
  518. "id": "smw-b-project-tool",
  519. "description": "smw-b-project-tool",
  520. "maxMatches": 1,
  521. "metadata": {
  522. "kind": "main",
  523. "source": "synthetic",
  524. "timingPolicy": "fast-text",
  525. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  526. },
  527. "match": {
  528. "method": "POST",
  529. "pathIncludes": "/messages",
  530. "lastUserMessageIncludes": ["E2E_SMW_B_PROJECT:"],
  531. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  532. },
  533. "response": {
  534. "statusCode": 200,
  535. "toolUse": {
  536. "id": "toolu_smw_b_project",
  537. "name": "Agent",
  538. "inputTokens": 32,
  539. "input": {
  540. "subagent_type": "e2e-workspace-reviewer",
  541. "description": "next",
  542. "prompt": "E2E_SMW_B_PROJECT_CHILD",
  543. "run_in_background": false
  544. }
  545. }
  546. }
  547. },
  548. {
  549. "id": "smw-b-project-child",
  550. "description": "smw-b-project-child",
  551. "maxMatches": 1,
  552. "metadata": {
  553. "kind": "subagent",
  554. "source": "synthetic",
  555. "timingPolicy": "fast-text",
  556. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  557. },
  558. "match": {
  559. "method": "POST",
  560. "pathIncludes": "/messages",
  561. "bodyIncludes": ["E2E_SMW_B_PROJECT_CHILD", "E2E_SMW_PROFILE_"],
  562. "bodyExcludes": [
  563. "Generate a concise title",
  564. "CRITICAL: Respond with TEXT ONLY",
  565. "E2E_SMW_B_SEED:"
  566. ]
  567. },
  568. "response": {
  569. "statusCode": 200,
  570. "text": {
  571. "text": "E2E_SMW_B_PROJECT_CHILD_DONE",
  572. "inputTokens": 32
  573. }
  574. }
  575. },
  576. {
  577. "id": "smw-b-project-final",
  578. "description": "smw-b-project-final",
  579. "maxMatches": 1,
  580. "metadata": {
  581. "kind": "main",
  582. "source": "synthetic",
  583. "timingPolicy": "fast-text",
  584. "syntheticReason": "通过真实 UI 打开两个 workspace,provider fixture 延迟父请求;测试 stdio 代理仅记录真实 CLI pid/session 配置读取,不替换业务执行。"
  585. },
  586. "match": {
  587. "method": "POST",
  588. "pathIncludes": "/messages",
  589. "bodyIncludes": ["toolu_smw_b_project", "agentId: agent_"],
  590. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  591. },
  592. "response": {
  593. "statusCode": 200,
  594. "text": {
  595. "text": "E2E_SMW_B_PROJECT_DONE",
  596. "inputTokens": 32
  597. }
  598. }
  599. },
  600. {
  601. "id": "smw-b-fallback-tool",
  602. "description": "smw-b-fallback-tool",
  603. "maxMatches": 1,
  604. "metadata": {
  605. "kind": "main",
  606. "source": "synthetic",
  607. "timingPolicy": "fast-text",
  608. "syntheticReason": "B 项目读取失败时自定义 Agent 明确失败且不创建 child;A 保存/执行正常,B 恢复后重新消费用户配置。"
  609. },
  610. "match": {
  611. "method": "POST",
  612. "pathIncludes": "/messages",
  613. "lastUserMessageIncludes": ["E2E_SMW_B_FALLBACK:"],
  614. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  615. },
  616. "response": {
  617. "statusCode": 200,
  618. "toolUse": {
  619. "id": "toolu_smw_b_fallback",
  620. "name": "Agent",
  621. "inputTokens": 32,
  622. "input": {
  623. "subagent_type": "e2e-workspace-reviewer",
  624. "description": "next",
  625. "prompt": "E2E_SMW_B_FALLBACK_CHILD",
  626. "run_in_background": false
  627. }
  628. }
  629. }
  630. },
  631. {
  632. "id": "smw-b-fallback-final",
  633. "description": "smw-b-fallback-final",
  634. "maxMatches": 1,
  635. "metadata": {
  636. "kind": "main",
  637. "source": "synthetic",
  638. "timingPolicy": "fast-text",
  639. "syntheticReason": "B 项目读取失败时自定义 Agent 明确失败且不创建 child;A 保存/执行正常,B 恢复后重新消费用户配置。"
  640. },
  641. "match": {
  642. "method": "POST",
  643. "pathIncludes": "/messages",
  644. "bodyIncludes": ["toolu_smw_b_fallback", "agentId: agent_"],
  645. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  646. },
  647. "response": {
  648. "statusCode": 200,
  649. "text": {
  650. "text": "E2E_SMW_B_FALLBACK_DONE",
  651. "inputTokens": 32
  652. }
  653. }
  654. }
  655. ]
  656. }