Why the new input messages from CopilotKit submission causes duplicate record from prev messages? - Mastra