From 5a15aa1eb3b1481307e2c5487fada515b41caca6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 02:00:51 +0000 Subject: [PATCH 1/2] Initial plan From a07fb1e5a1f36762c7eac8f0995f175a2fdd3d78 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 28 Mar 2026 02:07:57 +0000 Subject: [PATCH 2/2] Update CLI confirmation prompts to use [Y/n] convention Agent-Logs-Url: https://github.com/microsoft/aspire/sessions/a62011ab-6d8c-4a64-b8f2-13ab5a7aaddf Co-authored-by: maddymontaquila <12660687+maddymontaquila@users.noreply.github.com> --- .../Interaction/ConsoleInteractionService.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/Aspire.Cli/Interaction/ConsoleInteractionService.cs b/src/Aspire.Cli/Interaction/ConsoleInteractionService.cs index 87deb6385d5..d1c24087ad6 100644 --- a/src/Aspire.Cli/Interaction/ConsoleInteractionService.cs +++ b/src/Aspire.Cli/Interaction/ConsoleInteractionService.cs @@ -428,7 +428,19 @@ public async Task ConfirmAsync(string promptText, bool defaultValue = true } MessageLogger.LogInformation("Confirm: {PromptText} (default: {DefaultValue})", promptText, defaultValue); - var result = await MessageConsole.ConfirmAsync(promptText, defaultValue, cancellationToken); + + // Use [Y/n] or [y/N] convention where the capitalized letter indicates the default value. + var yesChoice = defaultValue ? "Y" : "y"; + var noChoice = defaultValue ? "n" : "N"; + var fullPromptText = $"{promptText} [{yesChoice}/{noChoice}]"; + + var prompt = new ConfirmationPrompt(fullPromptText) + { + ShowChoices = false, + ShowDefaultValue = false, + }; + + var result = await MessageConsole.PromptAsync(prompt, cancellationToken); MessageLogger.LogInformation("Confirm result: {Result}", result); return result; }