fix: update to @anthropic-ai/claude-agent-sdk 0.3.333 (#1739)

Updates the dependencies to their latest versions. #1726 moved the
Claude Agent SDK to 0.3.332 without a changelog review, so this covers
the Claude Agent SDK and Claude Code changelogs of both 0.3.332 and
0.3.333.

## Dependencies

| Package | From | To |
| --- | --- | --- |
| `@anthropic-ai/claude-agent-sdk` | 0.3.332 | 0.3.333 (Claude Code
2.1.333) |
| `@anthropic-ai/sdk` | 1.14.0 | 1.15.0 |
| `globals` | 17.14.0 | 17.15.0 |

Lockfile only, within the existing ranges: `brace-expansion` 5.1.2,
`cross-spawn` 7.1.2, `flatted` 3.5.1, `ignore` 7.0.17, `jose` 6.2.19,
`minimatch` 11.0.10, `source-map-js` 1.3.0.

Not updated: `typescript` 7.0.2. `@typescript-eslint/parser` 8.74.0
needs `typescript <6.1.0`.

## Changelog review

The update needs no change of behavior in the adapter. One comment is
updated (see the fork entry).

- **0.3.333, breaking: `mcpServersDelivery` defaults to
`'initialize'`.** The adapter sets the option for every session
(`cliDelivery`), so its delivery does not change.
- **0.3.332: `Query.setPermissionMode()` resolves with the mode in
effect.** The adapter awaits the call and ignores the answer, so it
still compiles. #1737 records the answer.
- **0.3.332: mid-turn user messages count as the user's in auto mode.**
The adapter writes two user messages of its own, `/compact` for the idle
compaction and the plan continuation, and both stand for a choice of the
user. Nothing to mark as synthetic.
- **Claude Code 2.1.332 no longer streams the result that a foreground
fork inherits for its own launch** ("Fork started — that fork is you.").
The v1 loop drops that frame so that it cannot complete the Agent call
early. Checked live: 2.1.326 sends the frame, 2.1.333 does not. With
2.1.326 as the `CLAUDE_CODE_EXECUTABLE`, v1 completes the Agent call
once with the fork's report, and v2 shows the fork as a child session.
The filter stays for such an older CLI, and its comment now names the
version.
- **0.3.333: `getSubagentMessages()` no longer drops parallel tool
calls.** The replay of a subagent's history gets the fix without a
change.
- **2.1.332: skills from MCP servers (beta)** are listed as
`server:skill`. The adapter lists and sends command names as Claude Code
reports them, so they pass through. Not checked live: it needs an MCP
server that serves `skills/list`.
- Not adopted: `tool_progress.description`, `gitOperation.pr.changed`,
the `PreSkillShellCommand` hook event,
`tool_result_meta[].rewritten_by_plugin`.

## Testing

- `npm run build`, `npm run check` and `npm run test:run` (4,959 tests
pass), and the whole suite against Claude Code 2.1.333 with
`RUN_INTEGRATION_TESTS=true` (5,010 tests pass), on this branch together
with #1737, #1738, #1740 and #1741. In that run the 10 s `tsc` setup
hook of "ACP subprocess integration" timed out on a loaded machine; that
suite passes by itself.
- On this branch alone, one test of the whole suite fails against the
real CLI: "keeps a provider's route when Claude Code does not load the
client's settings" in `v2-integration.test.ts`. It fails on `main` too,
since #1719, and #1738 fixes it.
This commit is contained in:
Ben Brandt
2026-12-01 18:11:17 +01:00
committed by GitHub
parent 0e7eda1d97
commit daeda8cce3
4 changed files with 74 additions and 72 deletions

130
package-lock.json generated
View File

@@ -10,7 +10,7 @@
"license": "Apache-2.0",
"dependencies": {
"@agentclientprotocol/sdk": "2.12.0",
"@anthropic-ai/claude-agent-sdk": "0.3.332",
"@anthropic-ai/claude-agent-sdk": "0.3.333",
"diff": "9.0.0",
"zod": "4.6.7"
},
@@ -18,7 +18,7 @@
"claude-agent-acp": "dist/index.js"
},
"devDependencies": {
"@anthropic-ai/sdk": "1.14.0",
"@anthropic-ai/sdk": "1.15.0",
"@eslint/js": "10.0.1",
"@tsconfig/node22": "22.0.7",
"@types/node": "26.6.11",
@@ -28,7 +28,7 @@
"ajv-formats": "3.0.1",
"eslint": "10.16.0",
"eslint-config-prettier": "10.1.9",
"globals": "17.14.0",
"globals": "17.15.0",
"prettier": "3.10.1",
"typescript": "6.0.3",
"vitest": "5.1.2"
@@ -53,22 +53,22 @@
}
},
"node_modules/@anthropic-ai/claude-agent-sdk": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.332.tgz",
"integrity": "sha512-N0ejnrTLMNJYXkvhdmLEy8QSfjym2ljJCkUBCrLKesYNGgqooi8zHDHawNsi+An6zav/ImPnpi27sbRsRjfcOw==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk/-/claude-agent-sdk-0.3.333.tgz",
"integrity": "sha512-1Yuranwacb9CbG7qXtJN47aRnwLC3SbkG2gCD9JqMMr/ztRJFV4GkzGS1ouNC+OPElQtSVA9cWLV/rls6EhpCQ==",
"license": "SEE LICENSE IN README.md",
"engines": {
"node": ">=18.14.0"
},
"optionalDependencies": {
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.332",
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.332",
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.332",
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.332",
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.332",
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.332",
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.332",
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.332"
"@anthropic-ai/claude-agent-sdk-darwin-arm64": "0.3.333",
"@anthropic-ai/claude-agent-sdk-darwin-x64": "0.3.333",
"@anthropic-ai/claude-agent-sdk-linux-arm64": "0.3.333",
"@anthropic-ai/claude-agent-sdk-linux-arm64-musl": "0.3.333",
"@anthropic-ai/claude-agent-sdk-linux-x64": "0.3.333",
"@anthropic-ai/claude-agent-sdk-linux-x64-musl": "0.3.333",
"@anthropic-ai/claude-agent-sdk-win32-arm64": "0.3.333",
"@anthropic-ai/claude-agent-sdk-win32-x64": "0.3.333"
},
"peerDependencies": {
"@anthropic-ai/sdk": ">=0.93.0",
@@ -77,9 +77,9 @@
}
},
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-arm64": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.332.tgz",
"integrity": "sha512-EFqYJyg1zpgQM3NxfOsOLCi2ktm8uYwgSR1DP9D6Z/InlQ0KSBbWAXL/s11itvLTAj6Pn15VeFtNJS7Ehw4xpg==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-arm64/-/claude-agent-sdk-darwin-arm64-0.3.333.tgz",
"integrity": "sha512-Jd+OhK0DES/U6d9cko6r1sEsXgdfbNcyXMeYOsK/pToivadk4DkRpwUgbnIalaYhRVP7fkOdZnR3tpHbnzMJUg==",
"cpu": [
"arm64"
],
@@ -90,9 +90,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-darwin-x64": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.332.tgz",
"integrity": "sha512-vHanIaflUZ5OGgkefYjLjUBfQfiduETCqFlnpvh3DjelEdpphDkBvVmYnPLgH1Lx/eAQBLbIwR8z0qry30u8Dw==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-darwin-x64/-/claude-agent-sdk-darwin-x64-0.3.333.tgz",
"integrity": "sha512-j+EyETEx2+VAHr0uY/M8yHNDybTIc+0MHivcd349nHvd9BwS6JapGSPYxbLlEc3fLEs+HVkYXj2xay6ySTyP9Q==",
"cpu": [
"x64"
],
@@ -103,9 +103,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.332.tgz",
"integrity": "sha512-sFApHjuWc+1+1cPoEvC9OpSKv+1LxWQJisjgGK2zIVXE+tBGYSodbsVvhLfLHFKc3pWEnqm90QqUqEQ+v+5vWA==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64/-/claude-agent-sdk-linux-arm64-0.3.333.tgz",
"integrity": "sha512-v0s0Tmf8bOIV3PUX1FuN+4hO44D7W7fvKfEvIkwbMIQfoQw0gQ5IUEZp98AoxhFu7sP0uoYYQZykGvShZ+1pig==",
"cpu": [
"arm64"
],
@@ -119,9 +119,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-arm64-musl": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.332.tgz",
"integrity": "sha512-dlt1/pFZ4PNTsmSa/cS3m/DD4D17c5S7LEtlD0I8Ue4jbTIdYaNZOIUOYulhy9iD4Eoa47rWfP9L8MkmCrCMUg==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-arm64-musl/-/claude-agent-sdk-linux-arm64-musl-0.3.333.tgz",
"integrity": "sha512-oEUYg+BurCsSNHaTcTMhetICM0+Q8NCiTfTrqDh+3tC4Vnig6VL+DeYJQQF2mMqFF5kuF6+Yr5icH6aB2RAxkg==",
"cpu": [
"arm64"
],
@@ -135,9 +135,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.332.tgz",
"integrity": "sha512-jcy9+qHfZp8chlyAzugVCDSVoMv3lNIrDxuWo8ukM2SkZWJn0pr4K8sXhJIKbUIvbGrZhZeY5E68zPHNfpv6Sw==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64/-/claude-agent-sdk-linux-x64-0.3.333.tgz",
"integrity": "sha512-vKQb+fHKNDnhkftZduG9heKzsbLsERqnu/wpfWxz2yXtoe6RxJp5/ybodMZwkYlmcp++vUxmmlbs+7+Ek+MXjQ==",
"cpu": [
"x64"
],
@@ -151,9 +151,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-linux-x64-musl": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.332.tgz",
"integrity": "sha512-weDfrdbgQVDuIKjk4kMoQA2x+/FPCpWno/5a9tDKeYg+jbqjIhlpvfvniteEjViL7GVf/U3SfTrjHljylsvSSg==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-linux-x64-musl/-/claude-agent-sdk-linux-x64-musl-0.3.333.tgz",
"integrity": "sha512-P6PlCMmTwpkdYvilGEED2QA1VkPHzP9nKaUhCJOtu5vgW2XqzQCGn7ZnbiRu3AWdEhQAzEsdBx8VHCGPsQIyUQ==",
"cpu": [
"x64"
],
@@ -167,9 +167,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-win32-arm64": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.332.tgz",
"integrity": "sha512-FWzNarl2AiOzNlF6FQZRFMN1t75elEdDsgVfrB+yIlMZeoMZG9OhFv38oWfgcVbZe4Hv+sR0VEQ5aYRtFDh0AQ==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-arm64/-/claude-agent-sdk-win32-arm64-0.3.333.tgz",
"integrity": "sha512-mJVDE+gPoNO1HJny1esj/MOyUuwyTNQ+ZpNQjbA0kFnuL7fmf85UlJ6E3+Kr8GyGHfIDZksh4IP/N9R7WgMTnQ==",
"cpu": [
"arm64"
],
@@ -180,9 +180,9 @@
]
},
"node_modules/@anthropic-ai/claude-agent-sdk-win32-x64": {
"version": "0.3.332",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.332.tgz",
"integrity": "sha512-UgAe9yBXZJU3km8SY2/jRetE16HpPtWhEcfmQscS4PQFwqGvKHbpUjIZ6J917gAKA8jpJ2PRtDNpDHvCcgrOqg==",
"version": "0.3.333",
"resolved": "https://registry.npmjs.org/@anthropic-ai/claude-agent-sdk-win32-x64/-/claude-agent-sdk-win32-x64-0.3.333.tgz",
"integrity": "sha512-JXxT3cKu7RYrp6rFxHlv682qfblciAHZrqpTR77Bv5Xj9VA7pReHiK2m0x5OTg9TN3iyPJwUPep3NvBcnF9Paw==",
"cpu": [
"x64"
],
@@ -193,9 +193,9 @@
]
},
"node_modules/@anthropic-ai/sdk": {
"version": "1.14.0",
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.14.0.tgz",
"integrity": "sha512-nADYXUd5fn9Zgw2nHi1iKyt/kb1UUt1cN3RbdxEI6XjTDTxbx4LLG4GnMrxWyS9GgXQllFOyAKSiFM3joDNK9A==",
"version": "1.15.0",
"resolved": "https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-1.15.0.tgz",
"integrity": "sha512-N6noVzTApqN4S7XQvaxjDJtoxlDj36lAdj1DfDmh4puzUJjVlR7cYPLJa8Ch2pRaBhRd3of/4a5apg8Wn52g0A==",
"license": "Apache-2.0",
"dependencies": {
"@opentelemetry/api": "^1.4.1",
@@ -1344,9 +1344,9 @@
}
},
"node_modules/brace-expansion": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.0.tgz",
"integrity": "sha512-aa11Dv491GKnYqxaul3aRJ0szew7yMJMfZPnqD44NjGrZXoj62l41OEDDpdpC4eE2P88vBFfLuSyRhpG91NUvg==",
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.1.2.tgz",
"integrity": "sha512-ELhY3JEerIBbhgW+rh0/8glkZAaMqn1x3BAvp3yTULSEGozMK/5PT6WTdBgsdvJqwwmv7MAQNOydfYbvK1Vgfw==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -1484,9 +1484,9 @@
}
},
"node_modules/cross-spawn": {
"version": "7.0.6",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",
"integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",
"version": "7.1.2",
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.1.2.tgz",
"integrity": "sha512-8BPK2r+sKWC8sDinRwLwrFMq2lXTBBwzYYEB9LiCznfMurOi4FOvQflq3XOLGG+HPdMSVpe+k/s96+AtDEOgPg==",
"license": "MIT",
"dependencies": {
"path-key": "^3.1.0",
@@ -2131,9 +2131,9 @@
}
},
"node_modules/flatted": {
"version": "3.4.4",
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz",
"integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==",
"version": "3.5.1",
"resolved": "https://registry.npmjs.org/flatted/-/flatted-3.5.1.tgz",
"integrity": "sha512-qzp88St5qssOkS6hnWEvsFqE6SGoQtamMc6ghNo2s2idGn3rvHl/mdmLKQr5egZeVcqHfVCXtPoY+DP0flzPTg==",
"dev": true,
"license": "ISC"
},
@@ -2236,9 +2236,9 @@
}
},
"node_modules/globals": {
"version": "17.14.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-17.14.0.tgz",
"integrity": "sha512-UtdkTVyAJePQv0J2M9Xe4L0ruNSDV314XiIJsADI2Zf40bcdAonE/D/OhAU8AT99oij9mhLByb+NvA3QWZYgCg==",
"version": "17.15.0",
"resolved": "https://registry.npmjs.org/globals/-/globals-17.15.0.tgz",
"integrity": "sha512-OyBOdPnzu9B2lFpums9/4wcyNHx4haAxY2X5PgO9LqCvXJgKYMMr/1y4TU7om/vTy4eYqRsVes1ZTJEJYKap8Q==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2356,9 +2356,9 @@
}
},
"node_modules/ignore": {
"version": "7.0.16",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.16.tgz",
"integrity": "sha512-52N+Y4HRMOJmbLmr+DqO4iSRyyB7N52gm7PWCT6h0p978+oKbqHCB7gIJIwZvBUsjlSdWbrBFqUSmIFNZMpn0A==",
"version": "7.0.17",
"resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.17.tgz",
"integrity": "sha512-0c3zcBRlWmcKhcIQWckzkYncJRv5HHB8O32wO/FcWL8DDXWDJgiEF6SX9ThbTv5h/eZ+xJK+VvDjjQ+cQJhp3Q==",
"dev": true,
"license": "MIT",
"engines": {
@@ -2439,9 +2439,9 @@
"license": "ISC"
},
"node_modules/jose": {
"version": "6.2.18",
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.18.tgz",
"integrity": "sha512-doV4thUwgkrycJH4yLeqwTGIIZphHl+pk7CPReuMIhYhncmgzdko85MaCG4YQFTxqMFr1/oEH32tZuKKovcDEg==",
"version": "6.2.19",
"resolved": "https://registry.npmjs.org/jose/-/jose-6.2.19.tgz",
"integrity": "sha512-NnThKzdK4dJTUQOBoMB0bF3Xmw4EtbFTo4xzeLaoBwcuOdBVDQcKB3/86DUTWjVMXkZOdaqZVo2OU6DllhS+9Q==",
"license": "MIT",
"peer": true,
"funding": {
@@ -2881,9 +2881,9 @@
}
},
"node_modules/minimatch": {
"version": "11.0.9",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.9.tgz",
"integrity": "sha512-KCFkfyjqerNlSstjlhIGNXIKZGA/6O4V4RlhZ+Dsr621SPPw0mzlypE9D9ZOoPiVefHID+j7/XuMMlqfD/F60Q==",
"version": "11.0.10",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-11.0.10.tgz",
"integrity": "sha512-L3/cjhQ5E6lft0VCp/2mO3Ic74RnutKy3rz7iGwp/6w1hKcO262g2rbfacFyw6eBig5OdI0nu5PpuA0/WQs9Tw==",
"dev": true,
"license": "BlueOak-1.0.0",
"dependencies": {
@@ -3554,9 +3554,9 @@
}
},
"node_modules/source-map-js": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.4.tgz",
"integrity": "sha512-J7ZjMvHd9O1fcT/5V09QWaaSl2BbWx3F6O08spde82Namf9UB0GxRVIPiNbVsdKkoizHiSpTodo3vp2bAy91MA==",
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.3.0.tgz",
"integrity": "sha512-pdUVfIWcK0kCgK831ibqkZDcL7I9zljjOu0TQFnA+fiQ6y1CYqYB7RkTOHHO45FGMg5P/Mvk/+4ToQ7gAYAL5Q==",
"dev": true,
"license": "BSD-3-Clause",
"peer": true,

View File

@@ -69,12 +69,12 @@
},
"dependencies": {
"@agentclientprotocol/sdk": "2.12.0",
"@anthropic-ai/claude-agent-sdk": "0.3.332",
"@anthropic-ai/claude-agent-sdk": "0.3.333",
"diff": "9.0.0",
"zod": "4.6.7"
},
"devDependencies": {
"@anthropic-ai/sdk": "1.14.0",
"@anthropic-ai/sdk": "1.15.0",
"@eslint/js": "10.0.1",
"@tsconfig/node22": "22.0.7",
"@types/node": "26.6.11",
@@ -84,7 +84,7 @@
"ajv-formats": "3.0.1",
"eslint": "10.16.0",
"eslint-config-prettier": "10.1.9",
"globals": "17.14.0",
"globals": "17.15.0",
"prettier": "3.10.1",
"typescript": "6.0.3",
"vitest": "5.1.2"

View File

@@ -17987,8 +17987,9 @@ describe("foreground fork tool results", () => {
],
parent,
);
// The fork inherits a result for its own launch. It cannot complete
// that call: the launching side sends the actual report later.
// The fork inherits a result for its own launch, which Claude Code
// before 2.1.332 streams. It cannot complete that call: the
// launching side sends the actual report later.
yield user([toolResult("toolu_fork", "Fork started — that fork is you.")], "toolu_fork");
yield assistant(
[

View File

@@ -7351,8 +7351,9 @@ export class ClaudeAcpAgent {
Array.isArray(message.message.content)
) {
// A foreground fork inherits a placeholder result for its own
// launch. Only the launching side can complete that Agent call
// with the fork's actual report.
// launch, and Claude Code before 2.1.332 streams it ("Fork
// started — that fork is you."). Only the launching side can
// complete that Agent call with the fork's actual report.
const launchId = message.parent_tool_use_id;
content = message.message.content.filter(
(block) => block.type !== "tool_result" || block.tool_use_id !== launchId,