Commit 88c8930
committed
fix: address PR review comments for streaming tool calls
- Add clearAllStreamingToolCalls() to prevent memory leak when streams are interrupted
- Add hasActiveStreamingToolCalls() for debugging/testing
- Add comment clarifying the intentional difference between partial and complete
validation logic for insert_content (partial uses OR to show progress incrementally)
- Call clearAllStreamingToolCalls() in Task.ts when resetting streaming state1 parent 67d8b8d commit 88c8930
File tree
2 files changed
+23
-1
lines changed- src/core
- assistant-message
- task
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
43 | 60 | | |
44 | 61 | | |
45 | 62 | | |
| |||
145 | 162 | | |
146 | 163 | | |
147 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
148 | 168 | | |
149 | 169 | | |
150 | 170 | | |
| |||
155 | 175 | | |
156 | 176 | | |
157 | 177 | | |
158 | | - | |
| 178 | + | |
159 | 179 | | |
160 | 180 | | |
161 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2253 | 2253 | | |
2254 | 2254 | | |
2255 | 2255 | | |
| 2256 | + | |
| 2257 | + | |
2256 | 2258 | | |
2257 | 2259 | | |
2258 | 2260 | | |
| |||
0 commit comments