© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
ThreadId undefined in network mode - Mastra
M
Mastra
•
5mo ago
•
4 replies
Aman Zishan
ThreadId undefined in network mode
I am trying to implement a multi agent setup by using workflow as tool to an agent
. I have the following setup
:
chat agent
: serves as the entrypoint to the multi agent system
sub
-agent
: specialised agent equipped with
startWorkflow
startWorkflow
and
resumeWorkflow
resumeWorkflow
tool
.
Sub agent works perfectly fine with suspend
/resuming a workflow using the above tools
.
When this sub agent is added to the chat agent and used
.network()
.network()
the chat agent loses track of when to resume
.
In order to fix this i am using working memory to keep track of the workflow by run ID
, the problem however is that i get thread ID and resource ID as
undefined
undefined
when used within the sub
-agent tool context
Hence i am not able to retrieve working memory
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
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
agent.network threadiD is inccorect
M
Mastra / help-bugs-problems
5mo ago
Get threadId associated with agent memory
M
Mastra / help-bugs-problems
5mo ago