Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions apps/web/src/cloud/relayClientInstallDialog.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,24 @@ describe("relay client install dialog coordinator", () => {
});

it("moves a confirmed installation through streamed progress stages", async () => {
const confirmation = requestRelayClientInstallConfirmation("2026.5.2");
const confirmation = requestRelayClientInstallConfirmation("2026.10.0");
expect(readRelayClientInstallDialogState()).toEqual({
status: "confirming",
version: "2026.5.2",
version: "2026.10.0",
});

respondToRelayClientInstallConfirmation(true);
await expect(confirmation).resolves.toBe(true);
expect(readRelayClientInstallDialogState()).toEqual({
status: "installing",
version: "2026.5.2",
version: "2026.10.0",
stage: "checking",
});

reportRelayClientInstallProgress({ type: "progress", stage: "downloading" });
expect(readRelayClientInstallDialogState()).toEqual({
status: "installing",
version: "2026.5.2",
version: "2026.10.0",
stage: "downloading",
});

Expand All @@ -43,7 +43,7 @@ describe("relay client install dialog coordinator", () => {
status: "closing",
view: {
status: "installing",
version: "2026.5.2",
version: "2026.10.0",
stage: "downloading",
},
});
Expand All @@ -53,15 +53,15 @@ describe("relay client install dialog coordinator", () => {
});

it("returns to idle when installation is declined", async () => {
const confirmation = requestRelayClientInstallConfirmation("2026.5.2");
const confirmation = requestRelayClientInstallConfirmation("2026.10.0");
respondToRelayClientInstallConfirmation(false);

await expect(confirmation).resolves.toBe(false);
expect(readRelayClientInstallDialogState()).toEqual({
status: "closing",
view: {
status: "confirming",
version: "2026.5.2",
version: "2026.10.0",
},
});

Expand All @@ -70,26 +70,26 @@ describe("relay client install dialog coordinator", () => {
});

it("rejects concurrent confirmation with the active install state", async () => {
const confirmation = requestRelayClientInstallConfirmation("2026.5.2");
const confirmation = requestRelayClientInstallConfirmation("2026.10.0");
respondToRelayClientInstallConfirmation(true);
await expect(confirmation).resolves.toBe(true);
reportRelayClientInstallProgress({ type: "progress", stage: "downloading" });

const error = await requestRelayClientInstallConfirmation("2026.6.0").then(
const error = await requestRelayClientInstallConfirmation("2026.11.0").then(
() => undefined,
(cause: unknown) => cause,
);

expect(error).toBeInstanceOf(RelayClientInstallConfirmationConflictError);
expect(error).toMatchObject({
requestedVersion: "2026.6.0",
activeVersion: "2026.5.2",
requestedVersion: "2026.11.0",
activeVersion: "2026.10.0",
activeDialogStatus: "installing",
activeInstallStage: "downloading",
});
expect(error).not.toHaveProperty("cause");
expect((error as Error).message).toBe(
"Cannot confirm relay client installation 2026.6.0; installation 2026.5.2 has dialog status installing.",
"Cannot confirm relay client installation 2026.11.0; installation 2026.10.0 has dialog status installing.",
);
});
});
26 changes: 13 additions & 13 deletions packages/shared/src/relayClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
import { ChildProcess, ChildProcessSpawner } from "effect/process";
import { HostProcessArchitecture, HostProcessPlatform } from "./hostProcess.ts";

export const CLOUDFLARED_VERSION = "2026.5.2";
export const CLOUDFLARED_VERSION = "2026.10.0";
// The oldest release that accepts every flag the connector is started with
// (`--output` arrived in 2025.6.1). Override, PATH, and older managed binaries
// below it are skipped, since they exit immediately on the unknown flag.
Expand Down Expand Up @@ -79,34 +79,34 @@ const CLOUDFLARED_RELEASE_ASSETS: Readonly<
Partial<Record<`${NodeJS.Platform}-${string}`, CloudflaredReleaseAsset>>
> = {
"darwin-arm64": {
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.5.2/cloudflared-darwin-arm64.tgz",
sha256: "ba94054c9fd4297645093d59d51442e5e546d07bb0516120e694a13d5b216d38",
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.10.0/cloudflared-darwin-arm64.tgz",
sha256: "a2f79ff7b9420aa537d74af239f376da170bbabeb529aec416002adac6a72e70",
archive: "tgz",
},
"darwin-x64": {
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.5.2/cloudflared-darwin-amd64.tgz",
sha256: "7240f709506bc2c1eb9da4d89cf2555499c60280ecb854b7d80e8f17d4b7903d",
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.10.0/cloudflared-darwin-amd64.tgz",
sha256: "903845b81828c8cb3c5d13d816a2de71c06a3da5785469df8eb0e1b736d92f9f",
archive: "tgz",
},
"linux-arm64": {
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.5.2/cloudflared-linux-arm64",
sha256: "5a4e8ce2701105271412059f44b6a0bf1ae4542b4d98ff3180c0c019443a5815",
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.10.0/cloudflared-linux-arm64",
sha256: "e6422b9d4f72d3194bc5a38676f13667c06666523217b842a877d72a80b5ac08",
archive: "binary",
},
"linux-x64": {
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.5.2/cloudflared-linux-amd64",
sha256: "5286698547f03df745adb2355f04c12dde52ef425491e81f433642d695521886",
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.10.0/cloudflared-linux-amd64",
sha256: "d33ff2d14475178d2012c2c56beba87389ac5ded27649519f198a7d3134a99db",
archive: "binary",
},
"win32-x64": {
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.5.2/cloudflared-windows-amd64.exe",
sha256: "20b9638f685333d623798e733effbad2487093f15ba592f6c7752360ff3b7ab7",
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.10.0/cloudflared-windows-amd64.exe",
sha256: "86aee4017b26625cee8484c113558f48effa4cd47f7aa05fcf425604e5d2b23c",
archive: "binary",
},
// Cloudflare publishes no Windows ARM64 build; Windows 11 on ARM runs x64 under emulation.
"win32-arm64": {
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.5.2/cloudflared-windows-amd64.exe",
sha256: "20b9638f685333d623798e733effbad2487093f15ba592f6c7752360ff3b7ab7",
url: "https://github.com/cloudflare/cloudflared/releases/download/2026.10.0/cloudflared-windows-amd64.exe",
sha256: "86aee4017b26625cee8484c113558f48effa4cd47f7aa05fcf425604e5d2b23c",
archive: "binary",
},
};
Expand Down
Loading