From 17a9229b34fbf1d8a249f2851a0bb9fcef4211d7 Mon Sep 17 00:00:00 2001 From: Peter Ibekwe Date: Tue, 31 Mar 2026 20:25:59 -0700 Subject: [PATCH] Fix declarative test harness --- .../Framework/WorkflowHarness.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/WorkflowHarness.cs b/dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/WorkflowHarness.cs index ee2a3b4815..8f46d91bbc 100644 --- a/dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/WorkflowHarness.cs +++ b/dotnet/tests/Microsoft.Agents.AI.Workflows.Declarative.IntegrationTests/Framework/WorkflowHarness.cs @@ -126,6 +126,13 @@ internal sealed class WorkflowHarness(Workflow workflow, string runId) { hasRequest = true; } + else + { + // This is a republished event for the request we're already responding to + // (emitted by RepublishUnservicedRequestsAsync during checkpoint resume). + // Skip yielding it so downstream code doesn't treat it as a new pending request. + continue; + } break; case ConversationUpdateEvent conversationEvent: