Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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 native approval flow is used on the client (no extra server-side wiring required). The v6 stream now emits native `tool-approval-request` parts so `useChat` can surface approval UI and call `addToolApprovalResponse()`, while also emitting the existing `data-tool-call-approval` chunk for backwards compatibility.
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