Commit 46f463e
fix: tool-error result serialized as {} due to non-enumerable Error properties
Two fixes:
1. MonoDriver: tool-error event now sends error.message instead of raw
Error object. Error properties are non-enumerable, so JSON.stringify
produced "{}".
2. Presentation reducer: handleToolResult adds instanceof Error check
as defense-in-depth, extracting .message before serialization.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent c24428e commit 46f463e
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
385 | 390 | | |
386 | 391 | | |
387 | 392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | | - | |
| 302 | + | |
303 | 303 | | |
304 | 304 | | |
305 | 305 | | |
| |||
0 commit comments