diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessExecutionEnvironment.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessExecutionEnvironment.cs index 4ddcbff94f..d08c23c089 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessExecutionEnvironment.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessExecutionEnvironment.cs @@ -185,6 +185,6 @@ public sealed class InProcessExecutionEnvironment : IWorkflowExecutionEnvironmen Run run = new(runHandle); await run.RunToNextHaltAsync(cancellationToken).ConfigureAwait(false); - return new(runHandle); + return run; } } diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessRunner.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessRunner.cs index 44e25cd632..d3f229a7da 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessRunner.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/InProc/InProcessRunner.cs @@ -250,8 +250,9 @@ internal sealed class InProcessRunner : ISuperStepRunner, ICheckpointingHandle this.StepTracer.TraceActivated(receiverId); - // TODO: traceContext? - var tracelessContext = this.RunContext.BindWorkflowContext(receiverId); + // TODO: #5084 - Add delivery-level activity (max one per step per executor) to capture non-message + // specific invocations of executor logic. + IWorkflowContext tracelessContext = this.RunContext.BindWorkflowContext(receiverId); try {