Merge pull request #9345 from uinstinct/cli-run-update

fix(cli): restart cli for manual update
This commit is contained in:
Dallin Romney 2026-01-06 12:14:09 -05:00 • committed by GitHub
commit f904a1ab2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,17 +170,15 @@ export class UpdateService extends BaseService<UpdateServiceState> {
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(() => {