Allow skipping additional options in aspire mcp init#14519
Closed
apoorvdarshan wants to merge 1 commit intomicrosoft:mainfrom
Closed
Allow skipping additional options in aspire mcp init#14519apoorvdarshan wants to merge 1 commit intomicrosoft:mainfrom
apoorvdarshan wants to merge 1 commit intomicrosoft:mainfrom
Conversation
Set MultiSelectionPrompt.Required(false) so users can press Enter with nothing selected instead of being forced to pick at least one item.
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 14519Or
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 14519" |
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request fixes issue #14460 by allowing users to skip the "additional options" multi-select prompt in aspire mcp init by pressing Enter with nothing selected. The fix involves adding .Required(false) to the MultiSelectionPrompt configuration in the ConsoleInteractionService.PromptForSelectionsAsync() method.
Changes:
- Modified
ConsoleInteractionService.PromptForSelectionsAsync()to allow empty selections by settingRequired(false)on the multi-selection prompt
This was referenced Feb 17, 2026
Member
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
aspire mcp initwon't let you skip the additional options #14460:aspire mcp initmulti-select prompt for additional options now allows pressing Enter with nothing selectedMultiSelectionPrompt.Required(false)inConsoleInteractionService.PromptForSelectionsAsync()Test plan
aspire mcp initand verify pressing Enter with no additional options selected proceeds without erroraspire mcp initand verify selecting one or more options still works as before