[eric] onboarding: sidebar can't cover the flow, managed pro lane isn't a user connection, aux-less prep re-runs on real connect; tools pane header slimmed

This commit is contained in:
ciregenz
2026-07-27 18:51:59 -07:00
parent dd8ca444f2
commit a2c3cc22ab
8 changed files with 31 additions and 17 deletions
@@ -117,8 +117,10 @@ export function selectSubscriptionConnections(
): SubscriptionConnection[] {
const providers = state.subscriptions.status?.providers;
if (!providers) return EMPTY_CONNECTIONS;
if (Array.isArray(providers)) return providers;
return providers.connections ?? EMPTY_CONNECTIONS;
const rows = Array.isArray(providers) ? providers : (providers.connections ?? EMPTY_CONNECTIONS);
// The free-trial/Pro lane is an OpenSwarm-managed router row, not a connection the USER made; counting it made a fresh trial look "connected" (dead Connect-beat rows, premature onConnected, phantom green rings).
const filtered = rows.filter((p) => !/\(OpenSwarm-managed\)/.test(p.name ?? ''));
return filtered.length === rows.length ? rows : filtered;
}
export function hasAnyActiveSubscription(state: WithSubscriptions): boolean {