fix(cli): Require at least one agent during interactive init#19
Merged
Conversation
The multiselect prompt allowed users to proceed without selecting any agents, resulting in a useless configuration. Set required: true so clack validates the selection, and add usage hint to the prompt message. Fixes GH-18 Co-Authored-By: Claude <noreply@anthropic.com> Agent transcript: https://claudescope.sentry.dev/share/CF-ptQpB98k8sNY0oX3GQKPdfjaDkASpXID4UDoVVU8
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.
The interactive
dotagents initallowed users to proceed without selectingany agents via the multiselect prompt (
required: false). This produced avalid but useless
agents.tomlwith no agents configured.Set
required: trueon the clack multiselect so it validates that at leastone agent is checked before continuing. Also added a usage hint to the prompt
message ("space to select, enter to confirm") since the multiselect controls
aren't obvious to all users.
Fixes #18
Agent transcript: https://claudescope.sentry.dev/share/bc10FwLJbeH3hwLSb03YC1Qz-su_jZklcKsPnJPhHMc