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

fix(mcp): fence stored answers on the suspension they answer

tasks/update wrote answers fenced only on status 'suspended', so an answer
read for one suspension could land after the tool resumed and suspended
again, replacing the new questions and resuming the tool with the old
answer. The write now also expects the suspendedAt it read; once the
suspension it answered is gone, the answer is dropped as one for a key
that isn't open.

Co-Authored-By: mastracode <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
Daniel Lew 2026-10-27 09:08:21 -04:00
commit 639b2bef7f
3 changed files with 54 additions and 4 deletions