Commit 418965f
committed
fix(sdk): preserve TriggerApiError shape on AgentChat append errors
When AgentChat.appendInputChunk fails non-2xx after the inline-POST
refactor, it was throwing a plain Error. Callers of sendRaw, sendMessage,
sendHandover, and sendHandoverSkip inspecting error.name ===
"TriggerApiError" or error.status saw "Error" / undefined instead of
the values the prior ApiClient/zodfetch path produced. Synthesize the
same shape here so the public error contract is preserved. Matches the
equivalent fix already applied to TriggerChatTransport.1 parent e8d005a commit 418965f
1 file changed
Lines changed: 10 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
617 | 626 | | |
618 | 627 | | |
619 | 628 | | |
| |||
0 commit comments