The whole hunk
from line 355, old and new numbered
/
lines
from line 355
355355
356356 - `session_thread_id: optional string or null`
357357
358 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.
358 Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread.
359359
360360 - `BetaManagedAgentsUserCustomToolResultEvent object`
361361
from line 437
437437
438438 - `session_thread_id: optional string or null`
439439
440 Routes this result to a subagent thread. Copy from the `agent.custom_tool_use` event's `session_thread_id`.
440 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
441441
442442 - `BetaManagedAgentsAgentCustomToolUseEvent object`
443443
from line 465
465465
466466 - `session_thread_id: optional string or null`
467467
468 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.
468 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.
469469
470470 - `BetaManagedAgentsAgentMessageEvent object`
471471
from line 607
607607
608608 - `session_thread_id: optional string or null`
609609
610 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.
610 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.
611611
612612 - `BetaManagedAgentsAgentMCPToolResultEvent object`
613613
from line 693
693693
694694 - `session_thread_id: optional string or null`
695695
696 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.
696 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.
697697
698698 - `BetaManagedAgentsAgentToolResultEvent object`
699699
from line 1585
15851585
15861586 - `session_thread_id: optional string or null`
15871587
1588 Routes this result to a subagent thread. Copy from the `agent.tool_use` event's `session_thread_id`.
1588 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
15891589
15901590 - `BetaManagedAgentsSessionThreadStatusRescheduledEvent object`
15911591