You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(init): reuse resolveOrCreateTeam for wizard team resolution
The init wizard had ~55 lines of inline team resolution that duplicated
the shared resolveOrCreateTeam logic. Both did: list teams → 0 (create)
→ 1 (auto-select) → N (filter by membership → pick).
Adds an onAmbiguous callback to resolveOrCreateTeam so the wizard can
present a clack select() prompt when multiple teams match, instead of
throwing ContextError.
Also fixes a silent error-swallowing catch that let team resolution
failures pass through unnoticed, causing confusing errors later when
project creation needed a team.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments