Commit 24bec99
committed
fix: restore presentAssistantMessage for all partial blocks
PR #9542 added a condition that only called presentAssistantMessage()
if there was at least one non-tool_use partial block. This broke XML
protocol because XML tools are parsed from the text stream (not via
native events), and when only a malformed tool_use was the partial
block, presentAssistantMessage was never called, causing a hang.
This commit restores the original behavior that works for both protocols.1 parent aaf4317 commit 24bec99
1 file changed
+5
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2940 | 2940 | | |
2941 | 2941 | | |
2942 | 2942 | | |
2943 | | - | |
2944 | | - | |
2945 | | - | |
| 2943 | + | |
| 2944 | + | |
| 2945 | + | |
| 2946 | + | |
| 2947 | + | |
2946 | 2948 | | |
2947 | 2949 | | |
2948 | 2950 | | |
| |||
0 commit comments