network() stream doesn't forward reasoning events from sub-agents
Environment:
What I Expected: When using agent.network() with extended thinking enabled on sub-agents, I expected reasoning-delta events to be forwarded in the stream (similar to how agent.stream() works with sendReasoning: true).
What Actually Happens: The network stream emits agent-execution-event-text-delta but NOT agent-execution-event-reasoning-* events. Reasoning tokens are consumed internally, but the actual reasoning content is not accessible.
Minimal Reproduction:
Verification:
agent.stream() with toAISdkStream({ sendReasoning: true }) → reasoning events visible
agent.network() → no reasoning events in stream
MastraAgentNetworkStream.usage has reasoningTokens property, suggesting it should be tracked
Question: Is this intentional? If so, is there a recommended way to access sub-agent reasoning in network streams?
What I Expected: When using agent.network() with extended thinking enabled on sub-agents, I expected reasoning-delta events to be forwarded in the stream (similar to how agent.stream() works with sendReasoning: true).
What Actually Happens: The network stream emits agent-execution-event-text-delta but NOT agent-execution-event-reasoning-* events. Reasoning tokens are consumed internally, but the actual reasoning content is not accessible.
Minimal Reproduction:
Verification:
agent.stream() with toAISdkStream({ sendReasoning: true }) → reasoning events visible
agent.network() → no reasoning events in stream
MastraAgentNetworkStream.usage has reasoningTokens property, suggesting it should be tracked
Question: Is this intentional? If so, is there a recommended way to access sub-agent reasoning in network streams?