From 546c0b997aba472aaf87c15a54aac5c1b2d83ae0 Mon Sep 17 00:00:00 2001 From: jackwener Date: Tue, 17 Mar 2026 17:20:16 +0800 Subject: [PATCH] feat: Enhance setup output with token save confirmation and improved browser connectivity guidance. --- src/setup.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/setup.ts b/src/setup.ts index f15830d..df5f962 100644 --- a/src/setup.ts +++ b/src/setup.ts @@ -184,11 +184,17 @@ export async function runSetup(opts: { cliVersion?: string; token?: string } = { if (result.ok) { console.log(` ${chalk.green('✓')} Browser connected in ${(result.durationMs / 1000).toFixed(1)}s`); } else { + console.log(` ${chalk.green('✓')} Token saved successfully.`); console.log(` ${chalk.yellow('!')} Browser connectivity test failed: ${result.error ?? 'unknown'}`); - console.log(chalk.dim(' Make sure Chrome is running with the extension enabled.')); + console.log(chalk.dim(' Token configuration is complete. To use opencli, make sure Chrome')); + console.log(chalk.dim(' is running with the Playwright MCP Bridge extension enabled.')); + console.log(chalk.dim(` Run ${chalk.bold('opencli doctor --live')} to re-test connectivity.`)); } } catch { - console.log(` ${chalk.yellow('!')} Could not verify connectivity (Chrome may not be running)`); + console.log(` ${chalk.green('✓')} Token saved successfully.`); + console.log(` ${chalk.yellow('!')} Browser connectivity test skipped (Chrome may not be running).`); + console.log(chalk.dim(' Token configuration is complete. Start Chrome to begin using opencli.')); + console.log(chalk.dim(` Run ${chalk.bold('opencli doctor --live')} to re-test connectivity.`)); } console.log(); }