Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deployment/runtime/agent/main-websocket.py
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,9 @@ async def stream_agent_events(
yield {"start": True}
continue
if event_data.get("complete"):
yield {"complete": True, "response": final_response}
# Strands emits this lifecycle marker before its AgentResult.
# The client treats completion as terminal, so wait for the
# result event below instead of closing the stream early.
continue
if event_data.get("force_stop"):
yield {
Expand Down