fix: use correct v-prefixed tag format for nightly release notes URL

Nightly releases are published with tags like v1.1.0-nightly.20260501.17,
not nightly-v1.1.0-nightly.20260501.17. Since latestVersion already carries
the full semver for both channels, the tag is always v${latestVersion}.
This commit is contained in:
Cursor Agent committed 2026-06-16 17:36:33 +00:00
1 parent 5f6f68359c
commit 07d5431b7d
2 files changed
+2 -2

No files matched your search

@@ -324,7 +324,7 @@ describe("desktop update release notes helpers", () => {
channel: "nightly",
availableVersion: "1.1.0-nightly.20260501.17",
}),
).toBe("https://github.com/pingdotgg/t3code/releases/tag/nightly-v1.1.0-nightly.20260501.17");
).toBe("https://github.com/pingdotgg/t3code/releases/tag/v1.1.0-nightly.20260501.17");
});
it("falls back to the releases page when no latest version is known", () => {
@@ -88,7 +88,7 @@ export function getDesktopUpdateReleaseNotesUrl(state: DesktopUpdateState | null
return DESKTOP_UPDATE_RELEASES_URL;
}
const tag = state.channel === "nightly" ? `nightly-v${latestVersion}` : `v${latestVersion}`;
const tag = `v${latestVersion}`;
return `${DESKTOP_UPDATE_RELEASES_URL}/tag/${encodeURIComponent(tag)}`;
}