The whole hunk
from line 357, old and new numbered
/
lines
from line 357
357357
358358 - `session_thread_id: optional string or null`
359359
360 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.
360 Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread.
361361
362362 - `BetaManagedAgentsUserCustomToolResultEvent object`
363363
from line 439
439439
440440 - `session_thread_id: optional string or null`
441441
442 Routes this result to a subagent thread. Copy from the `agent.custom_tool_use` event's `session_thread_id`.
442 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
443443
444444 - `BetaManagedAgentsAgentCustomToolUseEvent object`
445445
from line 467
467467
468468 - `session_thread_id: optional string or null`
469469
470 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.
470 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.
471471
472472 - `BetaManagedAgentsAgentMessageEvent object`
473473
from line 609
609609
610610 - `session_thread_id: optional string or null`
611611
612 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.
612 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.
613613
614614 - `BetaManagedAgentsAgentMCPToolResultEvent object`
615615
from line 695
695695
696696 - `session_thread_id: optional string or null`
697697
698 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.
698 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.
699699
700700 - `BetaManagedAgentsAgentToolResultEvent object`
701701
from line 1587
15871587
15881588 - `session_thread_id: optional string or null`
15891589
1590 Routes this result to a subagent thread. Copy from the `agent.tool_use` event's `session_thread_id`.
1590 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
15911591
15921592 - `BetaManagedAgentsSessionThreadStatusRescheduledEvent object`
15931593