Stream Events changedapi/beta/sessions/events/stream
Nearest release: v2.1.272, published 5 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+6added
Lines−6removed
From line
353
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits30to this page, all time
The whole hunk
from line 353, old and new numbered
/
from line 353
353353
354354 - `session_thread_id: optional string or null`
355355
356 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.
356 Set by the server to the subagent thread this confirmation was routed to. Omitted when it was routed to the primary thread.
357357
358358 - `BetaManagedAgentsUserCustomToolResultEvent object`
359359
from line 435
435435
436436 - `session_thread_id: optional string or null`
437437
438 Routes this result to a subagent thread. Copy from the `agent.custom_tool_use` event's `session_thread_id`.
438 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
439439
440440 - `BetaManagedAgentsAgentCustomToolUseEvent object`
441441
from line 463
463463
464464 - `session_thread_id: optional string or null`
465465
466 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.
466 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.
467467
468468 - `BetaManagedAgentsAgentMessageEvent object`
469469
from line 605
605605
606606 - `session_thread_id: optional string or null`
607607
608 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.
608 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.
609609
610610 - `BetaManagedAgentsAgentMCPToolResultEvent object`
611611
from line 691
691691
692692 - `session_thread_id: optional string or null`
693693
694 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.
694 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.
695695
696696 - `BetaManagedAgentsAgentToolResultEvent object`
697697
from line 1583
15831583
15841584 - `session_thread_id: optional string or null`
15851585
1586 Routes this result to a subagent thread. Copy from the `agent.tool_use` event's `session_thread_id`.
1586 Set by the server to the subagent thread this result was routed to. Omitted when it was routed to the primary thread.
15871587
15881588 - `BetaManagedAgentsSessionThreadStatusRescheduledEvent object`
15891589
No line in this hunk matches that.