The whole hunk
from line 391, old and new numbered
/
lines
from line 391
391391
392392 - `session_thread_id: optional string or null`
393393
394 When set, the confirmation routes to this subagent's thread rather than the primary. Echo this from the `session_thread_id` on the `agent.tool_use` or `agent.mcp_tool_use` event that prompted the approval.
394 Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread.
395395
396396 - `BetaManagedAgentsUserCustomToolResultEvent object`
397397
from line 473
473473
474474 - `session_thread_id: optional string or null`
475475
476 Routes this result to a subagent thread. Copy from the `agent.custom_tool_use` event's `session_thread_id`.
476 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
477477
478478 - `BetaManagedAgentsAgentCustomToolUseEvent object`
479479
from line 501
501501
502502 - `session_thread_id: optional string or null`
503503
504 When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Echo this on a `user.custom_tool_result` event to route the result back.
504 When set, this event was cross-posted from a subagent's thread to surface its custom tool use on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.custom_tool_result` by `custom_tool_use_id`, so clients do not send it back.
505505
506506 - `BetaManagedAgentsAgentMessageEvent object`
507507
from line 643
643643
644644 - `session_thread_id: optional string or null`
645645
646 When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Echo this on a `user.tool_confirmation` event to route the approval back.
646 When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.tool_confirmation` by `tool_use_id`, so clients do not send it back.
647647
648648 - `BetaManagedAgentsAgentMCPToolResultEvent object`
649649
from line 729
729729
730730 - `session_thread_id: optional string or null`
731731
732 When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Echo this on a `user.tool_confirmation` event to route the approval back.
732 When set, this event was cross-posted from a subagent's thread to surface its permission request on the primary thread's stream. Empty on the thread's own events. Informational only: the server routes the matching `user.tool_confirmation` or `user.tool_result` by `tool_use_id`, so clients do not send it back.
733733
734734 - `BetaManagedAgentsAgentToolResultEvent object`
735735
from line 1621
16211621
16221622 - `session_thread_id: optional string or null`
16231623
1624 Routes this result to a subagent thread. Copy from the `agent.tool_use` event's `session_thread_id`.
1624 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
16251625
16261626 - `BetaManagedAgentsSessionThreadStatusRescheduledEvent object`
16271627