diff --git a/src/hooks/auto-update-checker/index.ts b/src/hooks/auto-update-checker/index.ts index 923460106..bf2a13847 100644 --- a/src/hooks/auto-update-checker/index.ts +++ b/src/hooks/auto-update-checker/index.ts @@ -113,6 +113,12 @@ async function runBackgroundUpdateCheck( return } + // Check if current version is a prerelease - don't auto-downgrade prerelease to stable + if (isPrereleaseVersion(currentVersion)) { + log(`[auto-update-checker] Skipping auto-update for prerelease version: ${currentVersion}`) + return + } + if (pluginInfo.isPinned) { if (isPrereleaseOrDistTag(pluginInfo.pinnedVersion)) { log(`[auto-update-checker] Skipping auto-update for prerelease/dist-tag: ${pluginInfo.pinnedVersion}`)