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>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-14 03:28:11 +00:00
committed by GitHub
Unverified
parent 043c540dbe
commit f2f2ee3cb6
@@ -183,7 +183,7 @@ public static class Program
private static void PauseIfInteractive()
{
if (Console.IsInputRedirected)
if (Console.IsInputRedirected || Console.IsOutputRedirected)
{
return;
}