@devries-cameron20 / t3code-1 / commits / 69f85ef34e
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

chore(task-cache): name native client downloads so agent-device can install them by URL

agent-device install-from-source picks the archive type from the download's filename, and the cache URL has no extension. Device pool workers can now fetch the dev client straight from the cache instead of the caller uploading it through the gateway. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Julius Marminge committed Oct 25, 2026 at 23:31 UTC 69f85ef34e5f0560aa18c5040bffec2dad530d6d
2 files changed +3
infra/task-cache/src/NativeClients.test.ts
+1
@@ -119,6 +119,7 @@ it.effect("serves a writer's multipart upload to readers with its digest", () =>
119 expect(download.status).toBe(200);
120 expect(download.headers.get("x-t3-digest")).toBe(digest);
121 expect(download.headers.get("x-t3-build-ms")).toBe("540000");
122 + expect(download.headers.get("content-disposition")).toMatch(/filename="[a-f0-9]+\.tgz"$/);
123 expect(yield* Effect.promise(() => download.text())).toBe("native client");
124
125 const again = yield* request("/uploads", {
infra/task-cache/src/NativeClients.ts
+2
@@ -120,6 +120,8 @@ const make = Effect.gen(function* () {
120 "Content-Type": "application/octet-stream",
121 "Content-Length": String(object.size),
122 "Cache-Control": "no-store",
123 + // agent-device install-from-source picks the archive type from this name.
124 + "Content-Disposition": `attachment; filename="${key.split("/").at(-1)}.tgz"`,
125 "X-T3-Digest": object.customMetadata?.digest ?? "",
126 "X-T3-Build-Ms": object.customMetadata?.buildMs ?? "0",
127 },