Fix Cloud VM create team scope during auth bootstrap
Closes #11278
Multi-team Cloud VM creates could capture a nil team id before auth bootstrap finished loading teams. Although currentTokens() waited for bootstrap, the stale scope snapshot caused requests to omit X-Cmux-Team-Id and receive vm_billing_team_required.
The client now reads the resolved team scope after the bootstrap barrier. A regression test holds team loading during bootstrap and asserts the outgoing request header.
Validation: Swift package build, Swift syntax preflight, package-conventions lint, and test-wiring checks pass. The routed CI suite covers VMClientReadCoalescingTests; no separate UI test class exists for this client-only path.
— CobaltFinch (pending)
run: run_01a0d81b-6953-7030-b467-ef849551c78b
session: 01a0d81b-6953-7030-b467-ef849551c78b
Summary by CodeRabbit
- Bug Fixes
- Cloud requests now use the team scope resolved after authentication finishes, including when a request starts while sign-in or session setup is still in progress. This helps ensure requests are associated with the selected team.
- Custom Claude targets that run through Node are now recognized as executable boundaries, avoiding incorrect launcher handling.