Multi-Agent Collaboration for Team and Friends
TypeScript agent-automationagent-orchestrationagent-workflowai-agentsai-collaborationai-memoryai-workforceautonomous-agentsclaude-codeclaude-code-skillscodexcoding-agentmulti-agentmultiple-agentone-person-businessone-person-companyone-person-teamopencodesolopreneur
fix(web): align desktop update API tag prefix with CI release tags
Gener2cb301667546
diff --git a/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.test.ts b/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.test.tsindex ae9047dc2..0b1d6271b 100644--- a/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.test.ts+++ b/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.test.ts@@ -18,7 +18,7 @@ function makeRelease(version: string, assets: { name: string; browser_download_ureturn {draft: false,prerelease: false,- tag_name: `desktop-v${version}`,+ tag_name: `v${version}`,body: "Release notes",published_at: "2026-06-01T00:00:00Z",assets,diff --git a/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.ts b/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.tsindex 4bcd79ba8..78c64de52 100644--- a/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.ts+++ b/src/web/src/app/api/desktop/update/[target]/[arch]/[current_version]/route.ts@@ -1,7 +1,7 @@import { NextResponse } from "next/server";const GITHUB_REPO = "alookai/alook";-const TAG_PREFIX = "desktop-v";+const TAG_PREFIX = "v";const CACHE_TTL = 300;const PLATFORM_MAP: Record<string, string> = {@@ -54,8 +54,17 @@ export async function GET(}const releases = (await res.json()) as GitHubRelease[];+ const suffix = PLATFORM_MAP[platformKey];+ if (!suffix) {+ return new NextResponse(null, { status: 204 });+ }+const desktopRelease = releases.find(- (r) => !r.draft && !r.prerelease && r.tag_name?.startsWith(TAG_PREFIX),+ (r) =>+ !r.draft &&+ !r.prerelease &&+ r.tag_name?.startsWith(TAG_PREFIX) &&+ r.assets.some((a) => a.name.endsWith(suffix) && !a.name.endsWith(".sig")),);if (!desktopRelease) {@@ -67,11 +76,6 @@ export async function GET(return new NextResponse(null, { status: 204 });}- const suffix = PLATFORM_MAP[platformKey];- if (!suffix) {- return new NextResponse(null, { status: 204 });- }-const assets = desktopRelease.assets;const binary = assets.find((a) => a.name.endsWith(suffix) && !a.name.endsWith(".sig"));const sig = assets.find((a) => a.name.endsWith(`${suffix}.sig`));