From 49cf4409ebfef5ea89bdb6a9efd2a511ce94c222 Mon Sep 17 00:00:00 2001 From: Vance Ingalls Date: Wed, 25 Mar 2026 16:26:48 -0700 Subject: [PATCH] fix(cli): show install notice when whisper needs to be installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When whisper-cpp isn't found, show an info message before the spinner: "whisper-cpp not found — installing automatically..." Then the spinner shows "Installing whisper-cpp (this may take a moment)..." Co-Authored-By: Claude Opus 4.6 (1M context) --- packages/cli/src/commands/init.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/commands/init.ts b/packages/cli/src/commands/init.ts index 7c45081626..7d3c6360bd 100644 --- a/packages/cli/src/commands/init.ts +++ b/packages/cli/src/commands/init.ts @@ -605,8 +605,18 @@ export default defineCommand({ initialValue: true, }); if (!clack.isCancel(transcribeChoice) && transcribeChoice) { + const { findWhisper } = await import("../whisper/manager.js"); + const needsInstall = findWhisper() === undefined; + if (needsInstall) { + clack.log.info(c.dim("whisper-cpp not found — installing automatically...")); + } + const spin = clack.spinner(); - spin.start("Setting up transcription..."); + spin.start( + needsInstall + ? "Installing whisper-cpp (this may take a moment)..." + : "Preparing transcription...", + ); try { const { ensureWhisper, ensureModel } = await import("../whisper/manager.js"); await ensureWhisper({