From de42958eca08a73d1364763eb0f656b68d687b0a Mon Sep 17 00:00:00 2001 From: A <258483684+la14-1@users.noreply.github.com> Date: Sat, 14 Feb 2026 09:45:36 -0800 Subject: [PATCH] ux: fix install and upgrade success messages (#1113) Fixes two UX issues identified in #1106: 1. Install script: Raw escape codes weren't rendering in log_info - Before: "Run \033[1mspawn\033[0m\033[0;32m to get started\033[0m" - After: Uses printf with proper color variable interpolation 2. Update command: Confusing message after `spawn update` - Before: "Run your spawn command again to use the new version" - After: "Run spawn again to use the new version" - The word "your" implied the user had run some other command, but they explicitly ran `spawn update` Agent: ux-engineer Co-authored-by: Spawn Refactor Service Co-authored-by: Claude Sonnet 4.5 --- cli/install.sh | 2 +- cli/package.json | 2 +- cli/src/commands.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cli/install.sh b/cli/install.sh index 2e02c1a6..4ef8a373 100755 --- a/cli/install.sh +++ b/cli/install.sh @@ -101,7 +101,7 @@ ensure_in_path() { echo "" "${install_dir}/spawn" version echo "" - log_info "Run ${BOLD}spawn${NC}${GREEN} to get started${NC}" + printf "${GREEN}[spawn]${NC} Run ${BOLD}spawn${NC} to get started\n" else echo "" log_warn "${BOLD}${install_dir}${NC}${YELLOW} is not in your PATH${NC}" diff --git a/cli/package.json b/cli/package.json index 282cf3d8..5c894867 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "@openrouter/spawn", - "version": "0.2.81", + "version": "0.2.82", "type": "module", "bin": { "spawn": "cli.js" diff --git a/cli/src/commands.ts b/cli/src/commands.ts index 5532bafe..d6c912c1 100644 --- a/cli/src/commands.ts +++ b/cli/src/commands.ts @@ -1733,8 +1733,8 @@ async function performUpdate(remoteVersion: string): Promise { try { execSync(INSTALL_CMD, { stdio: "inherit", shell: "/bin/bash" }); console.log(); - p.log.success(`Updated to v${remoteVersion}`); - p.log.info("Run your spawn command again to use the new version."); + p.log.success(`Updated successfully!`); + p.log.info("Run spawn again to use the new version."); } catch { p.log.error("Auto-update failed. Update manually:"); console.log();