Commit b73b736
committed
fix: add defensive copy in BetaMessageStream content_block_start
Add object spread when pushing content blocks in BetaMessageStream to
match MessageStream behavior. Since we now mutate content blocks in
place during delta accumulation, this prevents the original event
object from being modified.1 parent eedf0cb commit b73b736
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
603 | 603 | | |
604 | 604 | | |
605 | 605 | | |
606 | | - | |
| 606 | + | |
607 | 607 | | |
608 | 608 | | |
609 | 609 | | |
| |||
0 commit comments