conversation-session-sidebar-unread-clear.json 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {
  2. "version": 1,
  3. "caseName": "conversation-session-sidebar-unread-clear",
  4. "spec": "./test/e2e/conversation-session/conversation-session-sidebar-unread-clear.test.ts",
  5. "fixtures": [
  6. {
  7. "id": "sidebar-unread-clear-title",
  8. "description": "未读清除首发的 case-local 标题生成响应。",
  9. "metadata": {
  10. "kind": "common",
  11. "timingPolicy": "fast-text",
  12. "source": "synthetic",
  13. "syntheticReason": "首发会触发默认 title sidecar;固定 marker 响应避免回退共享 provider fixture。"
  14. },
  15. "match": {
  16. "method": "POST",
  17. "pathIncludes": "/messages",
  18. "bodyIncludes": ["Generate a concise title", "E2E_SIDEBAR_UNREAD_CLEAR_SEED"]
  19. },
  20. "response": {
  21. "statusCode": 200,
  22. "text": {
  23. "id": "sidebar-unread-clear-title",
  24. "inputTokens": 64,
  25. "outputTokens": 8,
  26. "text": "{\"title\":\"Unread Clear E2E\"}"
  27. }
  28. }
  29. },
  30. {
  31. "id": "sidebar-unread-clear-seed",
  32. "description": "建立一个可由侧栏右键标记未读的正式 V4 session。",
  33. "metadata": {
  34. "kind": "main",
  35. "timingPolicy": "fast-text",
  36. "source": "synthetic",
  37. "syntheticReason": "该 case 验证任务列表与 tasks-index 的本地交互闭环,模型回复只用于确定性建立正式 session。"
  38. },
  39. "maxMatches": 1,
  40. "match": {
  41. "method": "POST",
  42. "pathIncludes": "/messages",
  43. "lastUserMessageIncludes": ["E2E_SIDEBAR_UNREAD_CLEAR_SEED"],
  44. "bodyExcludes": ["Generate a concise title", "CRITICAL: Respond with TEXT ONLY"]
  45. },
  46. "response": {
  47. "statusCode": 200,
  48. "text": {
  49. "id": "sidebar-unread-clear-seed",
  50. "inputTokens": 80,
  51. "outputTokens": 8,
  52. "text": "SIDEBAR_UNREAD_CLEAR_OK"
  53. }
  54. }
  55. }
  56. ]
  57. }