fix(workflows): revert to /stream endpoint after Mastra removed /streamVNext#33
Merged
fix(workflows): revert to /stream endpoint after Mastra removed /streamVNext#33
Conversation
…amVNext The /streamVNext endpoint was a temporary workaround introduced in November 2025 when Mastra's original /stream endpoint was broken. Mastra has since fixed the original endpoint and removed /streamVNext, causing 404 errors in production.
jacobbamio
previously approved these changes
Feb 2, 2026
The execution-result endpoint was also removed by Mastra.
Changed from /runs/{runId}/execution-result to /runs/{runId}
oriolgual
previously approved these changes
Feb 2, 2026
When streaming fails, response.body returns Net::ReadAdapter after read_body is called. Now we capture the error body before it's consumed to provide meaningful error messages.
…tion Updated the Mastra client to capture streaming error messages and check for workflow failures during execution. Added retry logic for fetching execution results to handle pending statuses, ensuring more robust error reporting and improved reliability in workflow processing.
The cassette was still using the old `/execution-result` suffix which no longer matches the code after the API endpoint change.
jacobbamio
previously approved these changes
Feb 2, 2026
- Replace unless/else with if/else (Style/UnlessElse) - Use T.anything instead of T.untyped (Sorbet/ForbidTUntyped) - Use hash access instead of single-arg dig (Style/SingleArgumentDig)
jacobbamio
approved these changes
Feb 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/streamVNextback to/stream/streamVNextendpoint was a temporary workaround introduced in November 2025 when Mastra's original/streamendpoint was broken/streamVNext, causing 404 errors in productionRoot Cause
The translation workflow started hitting 404 on
/api/workflows/translationWorkflow/streamVNextbecause Mastra deprecated this endpoint after fixing the original/streamendpoint.Test plan
/streamendpoint returns HTTP 200 on local Mastra instance/streamVNextendpoint returns HTTP 404 on local Mastra instance