Repository navigation
Offer the Team trial when setup creates a workspace - #1390
alexeyzimarev merged 3 commits into
Conversation
kcap-web refuses the trial for a personal email or a domain that has had one, before reserving anything, so setup retries on Free rather than ending a run whose sign-in is already approved. A scripted run without --tier stays on Free.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk | ⚪ Minimal · up to
|
PR Summary by QodoOffer the Team trial during CLI workspace creation
AI Description
Diagram
High-Level Assessment
Files changed (11)
|
Code Review by Qodo
1.
|
The retry line is what a scripted caller pastes back, so it must name the plan the run actually requested, after any fallback to Free.
AI-3606 (no GitHub issue)
What & why
Creating a workspace from
kcap setupalways provisioned Free, so neither the terminal wizard nor the agent-led install at kurrent.io/install could offer the 30-day Team trial that kcap-web already supports. Setup now takes--tier team|freealongside--org/--slug, and the interactive create flow asks for a plan with the Team trial first.Where to look
The fallback in
SpectreTenantProvisioner.ProvisionAsync. kcap-web refuses a trial for a personal email (400 work_email_required) or a domain that has had one (409 trial_exists), both before it reserves anything, so setup re-requests on Free and says why instead of ending a run whose sign-in is already approved. Without--tier, a scripted run stays on Free, so no script starts a time-limited trial it never asked for.free_limitandflaggednow get their own messages; the fallback can reachfree_limit, which otherwise reads as a taken slug.Verification
TenantProvisionerHeadlessTests23/23,SetupCommandTests/ParseRequestedWorkspace*19/19,TenantProvisioningClientTests12/12,ProvisioningWireTests6/6, run in the devcontainer.Summary by CodeRabbit
New Features
Documentation