Skip to content

Commit 0b105dd

Browse files
committed
fix(onboarding): exit instantly after completion screen
1 parent 41c1a60 commit 0b105dd

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/build/onboarding/ui/app.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -538,14 +538,12 @@ const OnboardingApp: FC<AppProps> = ({ appId, initialProgress }) => {
538538
}
539539

540540
if (step === 'build-complete') {
541-
// Clear build output to prevent Ink cursor tracking issues
542-
// (large height change between requesting-build and build-complete
543-
// causes Ink to lose its render position and draw duplicates)
544541
setBuildOutput([])
542+
// Exit immediately after rendering the final screen
545543
const timer = setTimeout(() => {
546544
if (!cancelled)
547545
exit()
548-
}, 4000)
546+
}, 100)
549547
return () => { cancelled = true; clearTimeout(timer) }
550548
}
551549

0 commit comments

Comments
 (0)