Skip to content

fix(init): auto-select role when only one is available#123

Merged
jeff-r2026 merged 1 commit into
mainfrom
fix/init-auto-select-single-role
Jul 2, 2026
Merged

fix(init): auto-select role when only one is available#123
jeff-r2026 merged 1 commit into
mainfrom
fix/init-auto-select-single-role

Conversation

@jeff-r2026

Copy link
Copy Markdown
Collaborator

Summary

  • When teamai init detects only one role in the team repo's roles manifest, it now auto-selects that role instead of prompting the user to pick from a list of one.
  • Displays the selected role with an (auto-selected) suffix so the user knows what happened.

Test plan

  • Existing init.test.ts passes (9 tests)
  • Type check passes
  • Manual test: run teamai init against a team repo with a single role — should skip the number prompt

🤖 Generated with Claude Code

Skip the interactive role prompt when the team repo has exactly one
role — display it as auto-selected and move on without waiting for input.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jeff-r2026 jeff-r2026 merged commit 364c657 into main Jul 2, 2026
7 checks passed
@hsuchifeng hsuchifeng mentioned this pull request Jul 3, 2026
3 tasks
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