conversation-session-subagent-sidebar-isolation.json 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-subagent-sidebar-isolation",
  4. "spec": "./test/e2e/conversation-session/conversation-session-subagent-sidebar-isolation.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "subagent-sidebar-parent-agent",
  8. "description": "subagent-sidebar-parent-agent",
  9. "metadata": {
  10. "kind": "main",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "只固定模型回复;真实 Agent 派发、SQLite、冷恢复与 UI 路径执行生产代码。"
  14. },
  15. "maxMatches": 1,
  16. "match": {
  17. "method": "POST",
  18. "pathIncludes": "/messages",
  19. "bodyExcludes": [
  20. "Generate a concise title",
  21. "CRITICAL: Respond with TEXT ONLY"
  22. ],
  23. "lastUserMessageIncludes": [
  24. "E2E_SUBAGENT_SIDEBAR_PARENT"
  25. ]
  26. },
  27. "response": {
  28. "statusCode": 200,
  29. "toolUse": {
  30. "id": "toolu_e2e_subagent_sidebar",
  31. "name": "Agent",
  32. "input": {
  33. "description": "Sidebar isolation child",
  34. "prompt": "E2E_SUBAGENT_SIDEBAR_CHILD: reply with exactly E2E_SUBAGENT_SIDEBAR_CHILD_DONE",
  35. "subagent_type": "general-purpose"
  36. }
  37. }
  38. }
  39. },
  40. {
  41. "id": "subagent-sidebar-child",
  42. "description": "subagent-sidebar-child",
  43. "metadata": {
  44. "kind": "main",
  45. "timingPolicy": "fast-text",
  46. "source": "synthetic",
  47. "syntheticReason": "只固定模型回复;真实 Agent 派发、SQLite、冷恢复与 UI 路径执行生产代码。"
  48. },
  49. "maxMatches": 1,
  50. "match": {
  51. "method": "POST",
  52. "pathIncludes": "/messages",
  53. "bodyExcludes": [
  54. "Generate a concise title",
  55. "CRITICAL: Respond with TEXT ONLY"
  56. ],
  57. "lastUserMessageIncludes": [
  58. "E2E_SUBAGENT_SIDEBAR_CHILD"
  59. ]
  60. },
  61. "response": {
  62. "statusCode": 200,
  63. "text": {
  64. "id": "child",
  65. "text": "E2E_SUBAGENT_SIDEBAR_CHILD_DONE",
  66. "inputTokens": 64,
  67. "outputTokens": 8
  68. }
  69. }
  70. },
  71. {
  72. "id": "subagent-sidebar-parent-final",
  73. "description": "subagent-sidebar-parent-final",
  74. "metadata": {
  75. "kind": "main",
  76. "timingPolicy": "fast-text",
  77. "source": "synthetic",
  78. "syntheticReason": "只固定模型回复;真实 Agent 派发、SQLite、冷恢复与 UI 路径执行生产代码。"
  79. },
  80. "maxMatches": 1,
  81. "match": {
  82. "method": "POST",
  83. "pathIncludes": "/messages",
  84. "bodyExcludes": [
  85. "Generate a concise title",
  86. "CRITICAL: Respond with TEXT ONLY"
  87. ],
  88. "bodyIncludes": [
  89. "E2E_SUBAGENT_SIDEBAR_PARENT",
  90. "E2E_SUBAGENT_SIDEBAR_CHILD_DONE",
  91. "E2E_SUBAGENT_SIDEBAR_PARENT_DONE"
  92. ]
  93. },
  94. "response": {
  95. "statusCode": 200,
  96. "text": {
  97. "id": "parent-final",
  98. "text": "E2E_SUBAGENT_SIDEBAR_PARENT_DONE",
  99. "inputTokens": 64,
  100. "outputTokens": 8
  101. }
  102. }
  103. }
  104. ]
  105. }