When using client tools with `addToolOutput` from ai-sdk, messages get duplicated.
AgentMemoryTools
I am using ai-sdk and mastra chat route endpoint. When using ai-sdk and ai-sdk endpoints, the messages get automatically merged when users use the
addToolOutput
addToolOutput
with a clientTool (no execute function). However, with mastra, there is a new message created (optimistic update possibly?) instead of appending to the existing message's tool_call_id part.
has anyone used addToolOutput with ai-sdk , client tools and mastra chat route endpoint?