0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

fix(core): close observers of a canceled parked run when its resume is refused

Persisting the abort as a canceled row made the same-server rejected
approval skip the abort terminal: the fenced-run cleanup only acted on
rows still `suspended`, so attached observers stayed open and the
terminal-triggered stream cleanup never armed. The canceled row is now
kept (it is what stops other servers from resuming the run) and the
abort terminal is published once per process for it.

Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
mastra-platform[bot] 2026-11-09 21:04:22 +00:00
commit c4cbdb987a
2 changed files with 57 additions and 4 deletions