From 595986a6fb46ccd4e023078e9e3a8aeb911629c7 Mon Sep 17 00:00:00 2001 From: uinstinct <61635505+uinstinct@users.noreply.github.com> Date: Mon, 29 Dec 2025 17:48:44 +0530 Subject: [PATCH] fix(cli): restart cli for manual update --- extensions/cli/src/services/UpdateService.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/extensions/cli/src/services/UpdateService.ts b/extensions/cli/src/services/UpdateService.ts index cdf1971349a..e9759b6ce64 100644 --- a/extensions/cli/src/services/UpdateService.ts +++ b/extensions/cli/src/services/UpdateService.ts @@ -170,17 +170,15 @@ export class UpdateService extends BaseService { this.setState({ status: UpdateStatus.UPDATED, - message: `${isAutoUpdate ? "Auto-updated to" : "Restart for"} v${this.currentState.latestVersion}`, + message: `Updated to v${this.currentState.latestVersion}`, isUpdateAvailable: false, }); - if (isAutoUpdate) { - this.restartCLI(); - } + this.restartCLI(); } catch (error: any) { logger.error("Error updating CLI:", error); this.setState({ status: UpdateStatus.ERROR, - message: isAutoUpdate ? "Auto-update failed" : "Update failed", + message: "Update failed", error, }); setTimeout(() => {