writer.custom() in tool freezes stream of agents - Mastra