events-and-streaming changedmanaged-agents/events-and-streaming
Nearest release: v2.1.299, published 21 hours after 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+18added
Lines−6removed
From line
417
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits29to this page, all time
The whole hunk
from line 417, old and new numbered
/
from line 417
417417 // Tail live events, skipping anything already seen
418418 tail: for await (const event of stream) {
419419 // Preview events (event_start/event_delta) carry no top-level id
420 if (event.type === "event_start" || event.type === "event_delta") continue;
421 if (seenEventIds.has(event.id)) continue;
420 if (event.type === "event_start" || event.type === "event_delta") {
421 continue;
422 }
423 if (seenEventIds.has(event.id)) {
424 continue;
425 }
422426 seenEventIds.add(event.id);
423427 switch (event.type) {
424428 case "agent.message":
from line 862
858862 break;
859863 }
860864 case "session.status_idle":
861 if (event.stop_reason.type === "end_turn") break loop;
865 if (event.stop_reason.type === "end_turn") {
866 break loop;
867 }
862868 break;
863869 }
864870 }
from line 1106
11001106 const stream = await client.beta.sessions.events.stream(session.id);
11011107
11021108 for await (const event of stream) {
1103 if (event.type !== "session.status_idle") continue;
1104 if (event.stop_reason.type === "end_turn") break;
1105 if (event.stop_reason.type !== "requires_action") continue;
1109 if (event.type !== "session.status_idle") {
1110 continue;
1111 }
1112 if (event.stop_reason.type === "end_turn") {
1113 break;
1114 }
1115 if (event.stop_reason.type !== "requires_action") {
1116 continue;
1117 }
11061118
11071119 for (const eventId of event.stop_reason.event_ids) {
11081120 // Approve the pending tool call
No line in this hunk matches that.