From f2f2ee3cb638b22a9de1cebf6a67e9ebbe187403 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 14 May 2026 03:28:11 +0000 Subject: [PATCH] Fix PauseIfInteractive to also skip when stdout is redirected Agent-Logs-Url: https://github.com/microsoft/agent-framework/sessions/07ddf735-29cc-4775-b588-fd71ca76fa58 Co-authored-by: lokitoth <6936551+lokitoth@users.noreply.github.com> --- dotnet/samples/03-workflows/Orchestration/Magentic/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/samples/03-workflows/Orchestration/Magentic/Program.cs b/dotnet/samples/03-workflows/Orchestration/Magentic/Program.cs index 7685ae7adc..6b4a5d675e 100644 --- a/dotnet/samples/03-workflows/Orchestration/Magentic/Program.cs +++ b/dotnet/samples/03-workflows/Orchestration/Magentic/Program.cs @@ -183,7 +183,7 @@ public static class Program private static void PauseIfInteractive() { - if (Console.IsInputRedirected) + if (Console.IsInputRedirected || Console.IsOutputRedirected) { return; }