feat(onboarding): skip agent-waiting/project-create/db-settings when no agents created

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Théo LAGACHE
2026-06-17 10:24:49 +02:00
co-authored by Claude Sonnet 4.6
parent 647905da09
commit 18e7a96754
+4 -1
View File
@@ -83,7 +83,10 @@ export const onboardingSteps: OnboardingStep[] = [
component: StepAgentCreate,
isSkippable: true,
skipToStep: undefined,
nextStep: "agent-waiting",
nextStep: (ctx: any) => {
const agents = ctx.flowData?.agents as unknown[] | undefined;
return agents && agents.length > 0 ? "agent-waiting" : "finish";
},
},
{
id: "agent-waiting",