typescript-sdk/.changeset/fix-failed-task-result-retrieval.md
Christian Sidak bdfd7f0154
fix: retrieve stored result from tasks/result for failed tasks (#1930)
Co-authored-by: Christian-Sidak <csidak@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-authored-by: Konstantin Konstantinov <KKonstantinov@users.noreply.github.com>
Co-authored-by: Konstantin Konstantinov <konstantin@mach5technology.com>
2026-04-20 14:56:04 +03:00

337 B

@modelcontextprotocol/core
patch

Fix requestStream to call tasks/result for failed tasks instead of yielding a hardcoded ProtocolError. When a task reaches the failed terminal status, the stream now retrieves and yields the actual stored result (matching the behavior for completed tasks), as required by the spec.