fix(setup): clear screen before TUI to prevent page jumping

This commit is contained in:
jackwener committed 2026-03-16 14:04:38 +08:00
1 parent b308d5594a
commit 6486a42def
1 file changed
+2 -1
+2 -1
View File
@@ -111,8 +111,9 @@ export async function runSetup(opts: { cliVersion?: string; token?: string } = {
}
// Step 4: Show interactive checkbox
console.clear();
const selected = await checkboxPrompt(items, {
title: ` Select files to update with token ${chalk.cyan(fingerprint)}:`,
title: ` ${chalk.bold('opencli setup')} — token ${chalk.cyan(fingerprint)}`,
});
if (selected.length === 0) {