Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/seven-suns-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mastra/ai-sdk': patch
---

Fixed tool call approvals in AI SDK v6: `handleChatStream` now automatically routes to `resumeStream` when the AI SDK v6 `approve()` method is used on the client, enabling the suspend/resume flow without any extra server-side wiring. The v6 stream now also emits native `tool-approval-request` parts alongside the existing `data-tool-call-approval` chunk for backwards compatibility with `@mastra/react`.
Comment thread
coderabbitai[bot] marked this conversation as resolved.
Outdated
5 changes: 5 additions & 0 deletions .changeset/tired-comics-cover.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@mastra/ai-sdk': patch
---

Fixed AI SDK v6 tool approval streams so requireApproval works with handleChatStream and AssistantChatTransport.
Loading
Loading