inputData is undefined on resume when step is preceded by .map()
Workflows
Mastra Version: @mastra/core@1.0.0-beta.14
Description: When resuming a suspended workflow step that is preceded by a .map() step, inputData is undefined instead of containing the data from the .map() output. The .map() step doesn't re-execute on resume, and the original inputData is not restored from the snapshot.
Expected Behavior: Based on the suspend/resume docs, inputData should be accessible on both first run and resume:
execute: async ({ inputData, resumeData, suspend }) => { const { userEmail } = inputData; // <-- docs show this works on resume const { approved } = resumeData ?? {}; // ... } Actual Behavior: On resume, inputData is undefined when the step is preceded by a .map().