Commit 911410f
committed
Fix tool name extraction from ToolUseBlock messages
- Extract tool name, parameters, and ID directly from ToolUseBlock attributes instead of parsing from string
- Extract tool_use_id from ToolResultBlock to link results to tool calls
- Keeps fallback to regex-based extraction for edge cases
- Fixes issue where many tool calls showed as 'unknown' in dashboard1 parent 5a7b984 commit 911410f
1 file changed
+23
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
287 | 304 | | |
288 | 305 | | |
289 | 306 | | |
| |||
0 commit comments