Let manual update checks bypass rollout
Automatic desktop update checks still respect rollout admission. Manual checks carry an explicit intent through the app and desktop updater service, and the up-to-date state now shows when the last check completed.
This commit is contained in:
@@ -15,6 +15,7 @@ import {
|
||||
import {
|
||||
checkForAppUpdate,
|
||||
downloadAndInstallUpdate,
|
||||
type AppUpdateCheckIntent,
|
||||
type AppReleaseChannel,
|
||||
} from "../features/auto-updater.js";
|
||||
import { getCliInstallStatus, installCli } from "../integrations/cli-install/index.js";
|
||||
@@ -81,6 +82,12 @@ function parseReleaseChannel(
|
||||
return undefined;
|
||||
}
|
||||
|
||||
function parseAppUpdateCheckIntent(
|
||||
args: Record<string, unknown> | undefined,
|
||||
): AppUpdateCheckIntent {
|
||||
return args?.intent === "manual" ? "manual" : "automatic";
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
// Utilities
|
||||
// ---------------------------------------------------------------------------
|
||||
@@ -517,6 +524,7 @@ export function createDaemonCommandHandlers(): Record<string, DesktopCommandHand
|
||||
return checkForAppUpdate({
|
||||
currentVersion,
|
||||
releaseChannel: await resolveRequestedReleaseChannel(args),
|
||||
intent: parseAppUpdateCheckIntent(args),
|
||||
});
|
||||
},
|
||||
install_app_update: async (args) => {
|
||||
|
||||
Reference in New Issue
Block a user