Skip to content

fix: use checked on agent choices instead of unsupported default#41

Open
aaronware wants to merge 1 commit intomainfrom
conductor/fix-single-agent-select
Open

fix: use checked on agent choices instead of unsupported default#41
aaronware wants to merge 1 commit intomainfrom
conductor/fix-single-agent-select

Conversation

@aaronware
Copy link
Copy Markdown
Contributor

Summary

  • Fix init prompt failure when only one agent was preselected from an existing config
  • The @inquirer/prompts checkbox component doesn't accept a default parameter — pre-selected items must be marked with checked: true on each choice instead

Test plan

  • Existing test suite passes
  • Run wt config init against an existing single-agent config and confirm the prior agent is pre-checked and submission with one selected agent succeeds

…ault

The @inquirer/prompts checkbox component does not accept a `default`
parameter. Pre-selected items should be marked with `checked: true` on
each choice. Passing `default` caused validation errors when only one
agent was preselected from existing config.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant