Skip to content

Commit 06e3d82

Browse files
authored
fix(desktop): allow skipping harness setup onboarding (#2360)
Signed-off-by: Taksh <[email protected]>
1 parent 03f645e commit 06e3d82

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

‎desktop/src/features/onboarding/ui/MachineOnboardingFlow.tsx‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,14 @@ export function MachineOnboardingFlow({
215215
back: () =>
216216
setPage(identityWasImported ? "key-import" : "backup"),
217217
next: (runtimeIds) => {
218-
setReadyRuntimeIds(Array.from(runtimeIds));
218+
const ids = Array.from(runtimeIds);
219+
setReadyRuntimeIds(ids);
220+
// Harness install can fail (Windows/PATH/network). Don't soft-lock
221+
// onboarding — users can finish setup later in Settings → Agents.
222+
if (ids.length === 0) {
223+
complete(selectedPubkey ?? undefined);
224+
return;
225+
}
219226
setPage("config");
220227
},
221228
}}

‎desktop/src/features/onboarding/ui/SetupStep.tsx‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,16 @@ function SetupStepContent({
687687
Next
688688
</Button>
689689

690+
<Button
691+
className="h-9 rounded-full bg-foreground/10 px-6 text-sm hover:bg-foreground/15"
692+
data-testid="onboarding-setup-skip"
693+
onClick={() => actions.next([])}
694+
type="button"
695+
variant="ghost"
696+
>
697+
Skip for now
698+
</Button>
699+
690700
<Button
691701
className="h-9 rounded-full bg-foreground/10 px-6 text-sm hover:bg-foreground/15"
692702
data-testid="onboarding-back"

0 commit comments

Comments
 (0)