mirror of
https://github.com/mastra-ai/mastra.git
synced 2026-11-17 08:44:46 +00:00
fix(core): end the run as a deadline or abort when a stopped call's toModelOutput throws
A deadline landing while a tool resolves, followed by a throwing toModelOutput, returned a mapping failure without the stop flags, and the mapping step threw the mapping error before reading them. The run ended as a mapping failure and the turn was never saved. Co-Authored-By: mastra-platform[bot] <284800079+mastra-platform[bot]@users.noreply.github.com>
This commit is contained in:
parent
075ebd8ce8
commit
8092124987
5 changed files with 116 additions and 0 deletions
Loading…
Add table
Add a link
Reference in a new issue