Files
hapi/shared/fixtures/chat/cursor-plan-snapshot.json
T
weishu c1ecb4798e feat(fixtures): batch 2 — events, permissions, sidechains, flavors, catalogs (K6)
34 new golden chat fixtures generated from the web pipeline, plus a
machine-generated modes catalog:

- Claude output: away_summary/microcompact_boundary/compact_boundary system
  subtypes, <task-notification> summary extraction, multi-block assistant
  message with an array-of-parts (text+image) tool_result
- AgentEvent union completed: switch/message/error/title-changed(+dedupe)/
  limit-warning(pipe text)/api-error folding/turn-duration/compact-summary/
  abort-restore/unknown-type passthrough; thread-goal updated+cleared (silent)
- Permission lifecycle via agentState.completedRequests: approved_for_session
  (mode+allowTools), denied with reason, canceled, AskUserQuestion flat
  answers, request_user_input nested answers (all with explicit createdAt)
- Sidechain: Task tool_use with parentToolUseId-grouped subagent children
- codex family: error, context_compacted, generated-image, review JSON,
  thread-goal messages, CodexBash call/result pair, exploration tool group
- cli-output: cli-origin command block + stdout merge
- agy flavor (output envelope): agy_message, agy_tool_action run_command
  mapping; cursor ACP plan snapshot (copilot skipped: identical codex shapes)
- generator now also emits shared/fixtures/catalogs/modes.json from
  shared/src/modes.ts (per-flavor permission modes with labels/tones);
  self-conformance test covers it; README documents the catalogs contract
2026-08-17 12:04:22 +08:00

169 lines
6.2 KiB
JSON

{
"description": "Cursor ACP plan message (data.type plan, entries[{content, status}]) becomes a completed update_plan tool-call with the stable id cursor-plan-state; input and result both carry {plan: [{step, status}], source: cursor} and later snapshots would merge into the same card.",
"expected": {
"blocks": [
{
"createdAt": 1755000000000,
"id": "msg-user-741",
"kind": "user-text",
"localId": null,
"text": "Fix the crash on empty sessions."
},
{
"createdAt": 1755000002900,
"id": "cursor-plan-state",
"kind": "tool-call",
"localId": null,
"tool": {
"id": "cursor-plan-state",
"input": {
"plan": [
{
"status": "completed",
"step": "Reproduce the crash"
},
{
"status": "in_progress",
"step": "Fix the null check in session list"
},
{
"status": "pending",
"step": "Add a regression test"
}
],
"source": "cursor"
},
"name": "update_plan",
"result": {
"plan": [
{
"status": "completed",
"step": "Reproduce the crash"
},
{
"status": "in_progress",
"step": "Fix the null check in session list"
},
{
"status": "pending",
"step": "Add a regression test"
}
],
"source": "cursor"
},
"state": "completed"
}
}
],
"hasReadyEvent": false,
"latestUsage": null,
"visibleBlocks": [
{
"createdAt": 1755000000000,
"id": "msg-user-741",
"kind": "user-text",
"localId": null,
"text": "Fix the crash on empty sessions."
},
{
"createdAt": 1755000002900,
"id": "cursor-plan-state",
"kind": "tool-call",
"localId": null,
"tool": {
"id": "cursor-plan-state",
"input": {
"plan": [
{
"status": "completed",
"step": "Reproduce the crash"
},
{
"status": "in_progress",
"step": "Fix the null check in session list"
},
{
"status": "pending",
"step": "Add a regression test"
}
],
"source": "cursor"
},
"name": "update_plan",
"result": {
"plan": [
{
"status": "completed",
"step": "Reproduce the crash"
},
{
"status": "in_progress",
"step": "Fix the null check in session list"
},
{
"status": "pending",
"step": "Add a regression test"
}
],
"source": "cursor"
},
"state": "completed"
}
}
]
},
"fixtureVersion": 1,
"input": {
"agentState": null,
"messages": [
{
"content": {
"content": {
"text": "Fix the crash on empty sessions.",
"type": "text"
},
"role": "user"
},
"createdAt": 1755000000000,
"id": "msg-user-741",
"localId": null,
"seq": 1
},
{
"content": {
"content": {
"data": {
"entries": [
{
"content": "Reproduce the crash",
"status": "completed"
},
{
"content": "Fix the null check in session list",
"status": "in_progress"
},
{
"content": "Add a regression test",
"status": "pending"
}
],
"id": "cursor-plan-0a1b2c",
"type": "plan"
},
"type": "codex"
},
"role": "agent"
},
"createdAt": 1755000002900,
"id": "msg-cursor-742",
"localId": null,
"seq": 2
}
],
"options": {
"hasMoreMessages": false
}
},
"name": "cursor-plan-snapshot"
}