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
{{ message }}
Repository navigation
.NET: Workflow Host-as-Agent can improperly reorder messages in history and when running non-streaming #5720
When using a Workflow with tool calls and responses wrapped in .AsAgent(), outgoing messages are topologically sorted and merged using the MessageMerger. This does not behave correctly in the presence of ToolCalls/Responses in Handoff workflows, resulting in unexpected message ordering.
This is somewhat hidden when running using WorkflowHostAgent.RunStreamingAsync() because the outgoing enumeration yields the events in raw order, rather than in merged order. History still uses merged order, and this is directly visible when running using WorkflowHostAgent.RunAsync()
changed the title [-]Workflow Host-as-Agent can improperly reorder messages in history and when running non-streaming[/-][+].NET: Workflow Host-as-Agent can improperly reorder messages in history and when running non-streaming[/+]on May 8, 2026
Activity
[-]Workflow Host-as-Agent can improperly reorder messages in history and when running non-streaming[/-][+].NET: Workflow Host-as-Agent can improperly reorder messages in history and when running non-streaming[/+]