You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .changeset/fix-streaming-agent-end-lifecycle.md
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,4 @@
2
2
'@openai/agents-core': patch
3
3
---
4
4
5
-
Fix streaming agents not calling agent_end lifecycle hook
6
-
7
-
Streaming agents were not emitting the `agent_end` lifecycle event when completing execution, while non-streaming agents were correctly emitting this event. This fix ensures that both the agent instance and the runner emit the `agent_end` event for streaming agents when they produce a final output, maintaining consistency with the non-streaming behavior.
8
-
9
-
This resolves the issue where users could not collect usage information or perform cleanup tasks at the end of streaming agent runs using the `agent_end` event handler.
5
+
Fix #371 streaming agents not calling agent_end lifecycle hook
0 commit comments