Skip to content

fix(cli): Require at least one agent during interactive init#19

Merged
gricha merged 1 commit intomainfrom
fix/init-require-agent-selection
Feb 18, 2026
Merged

fix(cli): Require at least one agent during interactive init#19
gricha merged 1 commit intomainfrom
fix/init-require-agent-selection

Conversation

@gricha
Copy link
Member

@gricha gricha commented Feb 18, 2026

The interactive dotagents init allowed users to proceed without selecting
any agents via the multiselect prompt (required: false). This produced a
valid but useless agents.toml with no agents configured.

Set required: true on the clack multiselect so it validates that at least
one 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

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
@gricha gricha merged commit f5ee38e into main Feb 18, 2026
13 checks passed
@gricha gricha deleted the fix/init-require-agent-selection branch February 18, 2026 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Init allows you to select blank agents

1 participant

Comments