Commit 712539c
fix(sdk): keep late response parts on a skipped empty response
When the model returns no content the response is no longer accumulated,
but a non-transient data part written during onBeforeTurnComplete still
has to be persisted. The late-part drain now commits the previously
skipped response into the UI transcript (kept out of the model lane,
since the parts are UI-only) instead of clearing the parts without
saving them.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VG39FXXkFFU24U5EtJMwPi1 parent fd27a6c commit 712539c
2 files changed
Lines changed: 40 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9482 | 9482 | | |
9483 | 9483 | | |
9484 | 9484 | | |
9485 | | - | |
9486 | | - | |
9487 | | - | |
| 9485 | + | |
| 9486 | + | |
| 9487 | + | |
| 9488 | + | |
| 9489 | + | |
| 9490 | + | |
| 9491 | + | |
9488 | 9492 | | |
| 9493 | + | |
| 9494 | + | |
| 9495 | + | |
| 9496 | + | |
9489 | 9497 | | |
9490 | 9498 | | |
9491 | 9499 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
528 | 528 | | |
529 | 529 | | |
530 | 530 | | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
| 535 | + | |
| 536 | + | |
| 537 | + | |
| 538 | + | |
| 539 | + | |
| 540 | + | |
| 541 | + | |
| 542 | + | |
| 543 | + | |
| 544 | + | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
531 | 560 | | |
532 | 561 | | |
533 | 562 | | |
| |||
0 commit comments