From 37dabb2142c9baab7019029cbeb93940619847a8 Mon Sep 17 00:00:00 2001 From: "Angnuo Li (from Dev Box)" Date: Wed, 19 Aug 2026 14:21:35 +0800 Subject: [PATCH] Fix update manifest domain Point the manual update checker at the canonical microclaw.microsoft.com host instead of the obsolete microsoftol.com endpoint. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- desktop/src/constants.ts | 2 +- desktop/src/update-checker.test.ts | 22 +++++++++++----------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/desktop/src/constants.ts b/desktop/src/constants.ts index 228ae8d..d4d03db 100644 --- a/desktop/src/constants.ts +++ b/desktop/src/constants.ts @@ -94,7 +94,7 @@ export const EXCHANGE_RATE_CACHE_TTL_MS = 12 * 60 * 60 * 1_000; export const USD_TO_CNY_FALLBACK_RATE = 7.2; /** Public manifest used by the P0 manual update checker. */ -export const UPDATE_MANIFEST_URL = "https://microclaw.microsoftol.com/releases/latest.json"; +export const UPDATE_MANIFEST_URL = "https://microclaw.microsoft.com/releases/latest.json"; // ── WebSocket reconnect back-off ──────────────────────────────────────── diff --git a/desktop/src/update-checker.test.ts b/desktop/src/update-checker.test.ts index 6ab2547..ef6ca57 100644 --- a/desktop/src/update-checker.test.ts +++ b/desktop/src/update-checker.test.ts @@ -18,7 +18,7 @@ describe("checkForUpdates", () => { let fetched = false; const result = await checkForUpdates({ currentVersion: "1.0.0", - manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json", + manifestUrl: "https://microclaw.microsoft.com/releases/latest.json", storeManaged: true, fetchJson: async () => { fetched = true; @@ -33,11 +33,11 @@ describe("checkForUpdates", () => { it("returns update-available when the manifest version is newer", async () => { const result = await checkForUpdates({ currentVersion: "1.0.0", - manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json", + manifestUrl: "https://microclaw.microsoft.com/releases/latest.json", fetchJson: async () => ({ version: "1.0.1", releasedAt: "2026-07-14", - downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip", + downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip", sha256: "abc123", openclawVersion: "2026.3.12", releaseNotes: ["Fix model setup config save issue"], @@ -49,7 +49,7 @@ describe("checkForUpdates", () => { currentVersion: "1.0.0", latestVersion: "1.0.1", releasedAt: "2026-07-14", - downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip", + downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip", sha256: "abc123", openclawVersion: "2026.3.12", releaseNotes: ["Fix model setup config save issue"], @@ -59,10 +59,10 @@ describe("checkForUpdates", () => { it("returns up-to-date when the manifest version is not newer", async () => { const result = await checkForUpdates({ currentVersion: "1.0.1", - manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json", + manifestUrl: "https://microclaw.microsoft.com/releases/latest.json", fetchJson: async () => ({ version: "1.0.1", - downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip", + downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip", }), }); @@ -76,7 +76,7 @@ describe("checkForUpdates", () => { it("returns error for an invalid manifest instead of throwing", async () => { const result = await checkForUpdates({ currentVersion: "1.0.0", - manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json", + manifestUrl: "https://microclaw.microsoft.com/releases/latest.json", fetchJson: async () => ({ version: "1.0.1" }), }); @@ -90,10 +90,10 @@ describe("checkForUpdates", () => { it("rejects non-HTTPS download URLs", async () => { const result = await checkForUpdates({ currentVersion: "1.0.0", - manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json", + manifestUrl: "https://microclaw.microsoft.com/releases/latest.json", fetchJson: async () => ({ version: "1.0.1", - downloadUrl: "http://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip", + downloadUrl: "http://microclaw.microsoft.com/downloads/MicroClawInstaller.zip", }), }); @@ -106,10 +106,10 @@ describe("checkForUpdates", () => { it("rejects malformed manifest versions", async () => { const result = await checkForUpdates({ currentVersion: "1.0.0", - manifestUrl: "https://microclaw.microsoftol.com/releases/latest.json", + manifestUrl: "https://microclaw.microsoft.com/releases/latest.json", fetchJson: async () => ({ version: "2.x", - downloadUrl: "https://microclaw.microsoftol.com/downloads/MicroClawInstaller.zip", + downloadUrl: "https://microclaw.microsoft.com/downloads/MicroClawInstaller.zip", }), });