What if we have:
-
Backend registers the tool with
needsApproval: trueAND noexecute(client-side tool) -
ai-sdk sends approval-requested to frontend
-
User approves
-
Frontend sends back approval
-
Now what? Since there’s no execute on backend, does ai-sdk then forward to onToolCall?