From 2f0096385945425b58affe8b5ea11dd2bfb2ced9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 29 Nov 2025 16:32:33 +0000 Subject: [PATCH 1/2] Initial plan From 1d895d9358c089966f88200a341d9b389f99cf15 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 29 Nov 2025 16:36:30 +0000 Subject: [PATCH 2/2] Fix Ctrl-C at "Enter API Key" hard-locks the graceful shutdown Co-authored-by: refringe <127057+refringe@users.noreply.github.com> --- Program.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Program.cs b/Program.cs index 0a7af50..bb017eb 100644 --- a/Program.cs +++ b/Program.cs @@ -87,6 +87,13 @@ public static async Task Main(string[] args) private static void OnCancelKeyPress(object? sender, ConsoleCancelEventArgs e) { e.Cancel = true; // Prevent immediate termination + + // Only process cancellation once to prevent repeated messages + if (_wasCancelled) + { + return; + } + _wasCancelled = true; _cts?.Cancel(); AnsiConsole.MarkupLine("[yellow]Cancellation requested. Shutting down gracefully...[/]");