Ever since the update that changed the way generate works to streaming, I have been unable to avoid this error.
Error executing step (step name): Error: terminated.
It is usually accompanied by a network error, but I know my network is not facing any issues. It seems surprising that this is related to Mastra, but when I switch to the AI-SDK or use the model provider API directly, the error never occurs. The steps the errors occur on are seemingly random and unrelated to presumed task complexity.