From 14285d170a3cf31f281a8ca34f2843be6ddb7a47 Mon Sep 17 00:00:00 2001 From: Charles Packer Date: Mon, 22 Dec 2025 16:05:51 -0800 Subject: [PATCH] fix: skip auto-update for prerelease versions (#351) Co-authored-by: Letta --- src/updater/auto-update.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/updater/auto-update.ts b/src/updater/auto-update.ts index 30dd378..ad73c6f 100644 --- a/src/updater/auto-update.ts +++ b/src/updater/auto-update.ts @@ -48,6 +48,13 @@ async function checkForUpdate(): Promise { const currentVersion = getVersion(); debugLog("Current version:", currentVersion); + // Skip auto-update for prerelease versions (e.g., 0.2.0-next.3) + // Prerelease users should manage updates manually to stay on their channel + if (currentVersion.includes("-")) { + debugLog("Prerelease version detected, skipping auto-update check"); + return { updateAvailable: false, currentVersion }; + } + try { debugLog("Checking npm for latest version..."); const { stdout } = await execAsync(