Commit 3dd3303
committed
fix(xl-ai): Array.from on filtered iterator — tool calls never marked complete
s.values() returns a MapIterator/SetIterator, not an array. Calling
.filter() directly on an iterator throws TypeError or silently fails
depending on the runtime.
Move .filter() after Array.from() to fix tool call completion detection.
Fixes #29331 parent dee7880 commit 3dd3303
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| |||
0 commit comments