© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
AI SDK workflowRoute does not pass through runtimeContext/requestContext - Mastra
M
Mastra
•
4mo ago
•
2 replies
Vulcano
AI SDK workflowRoute does not pass through runtimeContext/requestContext
Using the
mastra/ai-sdk
mastra/ai-sdk
workflowRoute
workflowRoute
, if you set
runtimeContext
runtimeContext
variables in your middleware
, they are not received by the workflow
.
chatRoute
chatRoute
does
properly pass
runtimeContext
runtimeContext
, because tool calls by that agent do receive the variables
.
Mastra
Join
The TypeScript Agent FrameworkFrom the team that brought you Gatsby: prototype and productionize AI features with a modern JavaScript stack.
5,321
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Confusing usage of RuntimeContext in workflowRoute and chatRoute
M
Mastra / help-bugs-problems
4mo ago
RequestContext regression?
M
Mastra / help-bugs-problems
2mo ago