When using client tools with `addToolOutput` from ai-sdk, messages get duplicated. - Mastra