Files
hapi/shared/fixtures/chat/codex-exploration-tool-group.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

300 lines
12 KiB
JSON

{
"description": "Codex exploration grouping family: consecutive CodexBash calls whose command_actions are all read/listFiles/search (and command_source is not userShell) collapse into one tool-group in visibleBlocks — a family boundary distinct from the default read/search grouping.",
"expected": {
"blocks": [
{
"createdAt": 1755000000000,
"id": "msg-user-571",
"kind": "user-text",
"localId": null,
"text": "Where is the pagination cursor built?"
},
{
"createdAt": 1755000001500,
"id": "call_expl_read01",
"kind": "tool-call",
"localId": null,
"tool": {
"id": "call_expl_read01",
"input": {
"command": [
"bash",
"-lc",
"cat package.json"
],
"command_actions": [
{
"command": "cat package.json",
"name": "package.json",
"path": "/repo/package.json",
"type": "read"
}
],
"command_source": "agent",
"cwd": "/repo"
},
"name": "CodexBash",
"result": {
"exit_code": 0,
"stdout": "{\n \"name\": \"hapi\",\n \"workspaces\": [\"cli\", \"hub\", \"web\", \"shared\"]\n}"
},
"state": "completed"
}
},
{
"createdAt": 1755000003300,
"id": "call_expl_search01",
"kind": "tool-call",
"localId": null,
"tool": {
"id": "call_expl_search01",
"input": {
"command": [
"bash",
"-lc",
"rg buildCursor web/src"
],
"command_actions": [
{
"command": "rg buildCursor web/src",
"path": "web/src",
"query": "buildCursor",
"type": "search"
}
],
"command_source": "agent",
"cwd": "/repo"
},
"name": "CodexBash",
"result": {
"exit_code": 0,
"stdout": "web/src/lib/message-window-store.ts:412:function buildCursor(page) {"
},
"state": "completed"
}
}
],
"hasReadyEvent": false,
"latestUsage": null,
"visibleBlocks": [
{
"createdAt": 1755000000000,
"id": "msg-user-571",
"kind": "user-text",
"localId": null,
"text": "Where is the pagination cursor built?"
},
{
"createdAt": 1755000001500,
"firstToolId": "call_expl_read01",
"id": "tool-group:call_expl_read01",
"kind": "tool-group",
"lastToolId": "call_expl_search01",
"tools": [
{
"createdAt": 1755000001500,
"id": "call_expl_read01",
"kind": "tool-call",
"localId": null,
"tool": {
"id": "call_expl_read01",
"input": {
"command": [
"bash",
"-lc",
"cat package.json"
],
"command_actions": [
{
"command": "cat package.json",
"name": "package.json",
"path": "/repo/package.json",
"type": "read"
}
],
"command_source": "agent",
"cwd": "/repo"
},
"name": "CodexBash",
"result": {
"exit_code": 0,
"stdout": "{\n \"name\": \"hapi\",\n \"workspaces\": [\"cli\", \"hub\", \"web\", \"shared\"]\n}"
},
"state": "completed"
}
},
{
"createdAt": 1755000003300,
"id": "call_expl_search01",
"kind": "tool-call",
"localId": null,
"tool": {
"id": "call_expl_search01",
"input": {
"command": [
"bash",
"-lc",
"rg buildCursor web/src"
],
"command_actions": [
{
"command": "rg buildCursor web/src",
"path": "web/src",
"query": "buildCursor",
"type": "search"
}
],
"command_source": "agent",
"cwd": "/repo"
},
"name": "CodexBash",
"result": {
"exit_code": 0,
"stdout": "web/src/lib/message-window-store.ts:412:function buildCursor(page) {"
},
"state": "completed"
}
}
]
}
]
},
"fixtureVersion": 1,
"input": {
"agentState": null,
"messages": [
{
"content": {
"content": {
"text": "Where is the pagination cursor built?",
"type": "text"
},
"role": "user"
},
"createdAt": 1755000000000,
"id": "msg-user-571",
"localId": null,
"seq": 1
},
{
"content": {
"content": {
"data": {
"callId": "call_expl_read01",
"id": "d1a3c4e5-8ce9-4f5a-9bc1-b5c6d7e8f572",
"input": {
"command": [
"bash",
"-lc",
"cat package.json"
],
"command_actions": [
{
"command": "cat package.json",
"name": "package.json",
"path": "/repo/package.json",
"type": "read"
}
],
"command_source": "agent",
"cwd": "/repo"
},
"name": "CodexBash",
"type": "tool-call"
},
"type": "codex"
},
"role": "agent"
},
"createdAt": 1755000001500,
"id": "msg-codex-572",
"localId": null,
"seq": 2
},
{
"content": {
"content": {
"data": {
"callId": "call_expl_read01",
"id": "e2b4d5f6-9dfa-4a6b-8cd2-c6d7e8f9a573",
"is_error": false,
"output": {
"exit_code": 0,
"stdout": "{\n \"name\": \"hapi\",\n \"workspaces\": [\"cli\", \"hub\", \"web\", \"shared\"]\n}"
},
"type": "tool-call-result"
},
"type": "codex"
},
"role": "agent"
},
"createdAt": 1755000002400,
"id": "msg-codex-573",
"localId": null,
"seq": 3
},
{
"content": {
"content": {
"data": {
"callId": "call_expl_search01",
"id": "f3c5e6a7-0eab-4b7c-9de3-d7e8f9a0b574",
"input": {
"command": [
"bash",
"-lc",
"rg buildCursor web/src"
],
"command_actions": [
{
"command": "rg buildCursor web/src",
"path": "web/src",
"query": "buildCursor",
"type": "search"
}
],
"command_source": "agent",
"cwd": "/repo"
},
"name": "CodexBash",
"type": "tool-call"
},
"type": "codex"
},
"role": "agent"
},
"createdAt": 1755000003300,
"id": "msg-codex-574",
"localId": null,
"seq": 4
},
{
"content": {
"content": {
"data": {
"callId": "call_expl_search01",
"id": "a4d6f7b8-1fbc-4c8d-8ef4-e8f9a0b1c575",
"is_error": false,
"output": {
"exit_code": 0,
"stdout": "web/src/lib/message-window-store.ts:412:function buildCursor(page) {"
},
"type": "tool-call-result"
},
"type": "codex"
},
"role": "agent"
},
"createdAt": 1755000004100,
"id": "msg-codex-575",
"localId": null,
"seq": 5
}
],
"options": {
"hasMoreMessages": false
}
},
"name": "codex-exploration-tool-group"
}