Fix intermediate filtering on .AsAgent()

This commit is contained in:
Jacob Alber
2026-05-28 16:32:28 -04:00
Unverified
parent 25f110901f
commit 74d0434a91
@@ -524,8 +524,8 @@ internal sealed class WorkflowSession : AgentSession
// AgentResponseUpdateEvent's behavior: always forward, regardless of the
// _includeWorkflowOutputsInResponse host flag. Under the legacy default,
// keep today's behavior — gated by the include flag.
if (!Futures.EnableAgentResponseOutputTaggingAndFiltering &&
!this._includeWorkflowOutputsInResponse)
if ((Futures.EnableAgentResponseOutputTaggingAndFiltering && !output.IsIntermediate() ||
(!Futures.EnableAgentResponseOutputTaggingAndFiltering && !this._includeWorkflowOutputsInResponse)))
{
goto default;
}