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:
parent
6fb648cd33
commit
639b2bef7f
3 changed files with 54 additions and 4 deletions
Loading…
Add table
Add a link
Reference in a new issue