Function: attachStaleResumeRecovery()
attachStaleResumeRecovery(
app):void
Finish a chat request when Mastra throws because the workflow is no
longer suspended. Duplicate approve/resume and late consumeStream
both hit that path; the client already has (or will reload) the
completed turn.
Parameters
Section titled “Parameters”Express
Returns
Section titled “Returns”void