From b68cfc0c50c97773d550ce216b6e74b6d6852184 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 13 May 2026 23:12:52 +0000 Subject: [PATCH] Rename isStalled parameter to replanAfterStall for clarity Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/1b9e74e8-69e1-43f2-8467-c5ba963c2622 Co-authored-by: lokitoth <6936551+lokitoth@users.noreply.github.com> --- .../Specialized/Magentic/MagenticOrchestrator.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs b/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs index 0334c48e0f..150a619942 100644 --- a/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs +++ b/dotnet/src/Microsoft.Agents.AI.Workflows/Specialized/Magentic/MagenticOrchestrator.cs @@ -110,7 +110,7 @@ internal class MagenticOrchestrator(AIAgent managerAgent, List team, Ta out this._planReviewPort); } - private ValueTask SubmitPlanReviewRequestAsync(MagenticTaskContext taskContext, IWorkflowContext workflowContext, bool isStalled = false) + private ValueTask SubmitPlanReviewRequestAsync(MagenticTaskContext taskContext, IWorkflowContext workflowContext, bool replanAfterStall = false) { MagenticProgressLedger? progressLedger = taskContext.ProgressLedger; if (progressLedger?.IsStarted is not true) @@ -118,7 +118,7 @@ internal class MagenticOrchestrator(AIAgent managerAgent, List team, Ta progressLedger = null; } - MagenticPlanReviewRequest request = new(taskContext.TaskLedger!.CurrentPlan, progressLedger, isStalled); + MagenticPlanReviewRequest request = new(taskContext.TaskLedger!.CurrentPlan, progressLedger, replanAfterStall); return this._planReviewPort!.PostRequestAsync(request); } @@ -162,7 +162,7 @@ internal class MagenticOrchestrator(AIAgent managerAgent, List team, Ta } } - private async ValueTask UpdatePlanAndDelegateAsync(MagenticTaskContext taskContext, IWorkflowContext context, CancellationToken cancellationToken, bool isStalled = false) + private async ValueTask UpdatePlanAndDelegateAsync(MagenticTaskContext taskContext, IWorkflowContext context, CancellationToken cancellationToken, bool replanAfterStall = false) { bool isReplan = taskContext.TaskLedger != null; @@ -178,7 +178,7 @@ internal class MagenticOrchestrator(AIAgent managerAgent, List team, Ta if (requirePlanSignoff) { - await this.SubmitPlanReviewRequestAsync(taskContext, context, isStalled).ConfigureAwait(false); + await this.SubmitPlanReviewRequestAsync(taskContext, context, replanAfterStall).ConfigureAwait(false); } else { @@ -293,7 +293,7 @@ internal class MagenticOrchestrator(AIAgent managerAgent, List team, Ta taskContext.Reset(); await context.SendMessageAsync(new ResetChatSignal(), cancellationToken: cancellationToken).ConfigureAwait(false); - await this.UpdatePlanAndDelegateAsync(taskContext, context, cancellationToken, isStalled: wasStalled).ConfigureAwait(false); + await this.UpdatePlanAndDelegateAsync(taskContext, context, cancellationToken, replanAfterStall: wasStalled).ConfigureAwait(false); } private async ValueTask PrepareFinalAnswerAsync(MagenticTaskContext taskContext, IWorkflowContext context, CancellationToken cancellationToken)