Commit 7a03779
fix(web): tool call args missing — show input from result detail
Transport SDK tool.call events arrive at content_block_start before
input is streamed, so payload.input is undefined. The complete input
only appears in the tool.result's detail.input (from content_block_stop).
The consolidation and render code only checked the call's input,
resulting in "> Agent ✓" with no args visible.
Fix: fall back to result detail.input when the call has no input,
in both the consolidation merge and the render path.
Also default tool detail <details> to open so args are always visible.
Add 3 tests:
- Transport SDK tool.call with no input → args from result detail
- Normal tool.call with input → args shown directly
- Agent tool → prompt from result detail.input
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7233734 commit 7a03779
2 files changed
Lines changed: 104 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
236 | 239 | | |
237 | 240 | | |
238 | 241 | | |
| |||
1193 | 1196 | | |
1194 | 1197 | | |
1195 | 1198 | | |
1196 | | - | |
1197 | | - | |
1198 | 1199 | | |
| 1200 | + | |
| 1201 | + | |
| 1202 | + | |
| 1203 | + | |
1199 | 1204 | | |
1200 | 1205 | | |
1201 | 1206 | | |
| |||
1209 | 1214 | | |
1210 | 1215 | | |
1211 | 1216 | | |
1212 | | - | |
| 1217 | + | |
1213 | 1218 | | |
1214 | 1219 | | |
1215 | 1220 | | |
| |||
1239 | 1244 | | |
1240 | 1245 | | |
1241 | 1246 | | |
1242 | | - | |
| 1247 | + | |
1243 | 1248 | | |
1244 | 1249 | | |
1245 | 1250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
407 | 501 | | |
0 commit comments