Commit ff37e9f
fix: Extract JSON from all assistant messages, not just last
Claude Code may output text in multiple turns. The JSON result could
be in any message, not necessarily the last one. Join all text content
and search for the JSON block in the combined output.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>1 parent 0994a1c commit ff37e9f
2 files changed
Lines changed: 8 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
161 | | - | |
162 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 189 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
201 | 194 | | |
202 | 195 | | |
203 | 196 | | |
| |||
212 | 205 | | |
213 | 206 | | |
214 | 207 | | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | 208 | | |
219 | | - | |
220 | | - | |
221 | 209 | | |
222 | 210 | | |
223 | 211 | | |
| |||
0 commit comments