From 7a1ecceba82e1759800a07a29ff5e711fae8c6fe Mon Sep 17 00:00:00 2001 From: zskbot <241179063+zskbot@users.noreply.github.com> Date: Tue, 17 Nov 2026 05:08:38 +0700 Subject: [PATCH 1/2] fix: follow redirects for internal CLI Auth health probe --- workers/control-api/worker.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/control-api/worker.mjs b/workers/control-api/worker.mjs index c2335ad..9ddeccd 100644 --- a/workers/control-api/worker.mjs +++ b/workers/control-api/worker.mjs @@ -178,7 +178,7 @@ async function probeCliAuth(env = {}) { method: "GET", headers: { Accept: "application/json" }, cache: "no-store", - redirect: "error", + redirect: "follow", signal: AbortSignal.timeout(4000) }); if (!response.ok) { From 037508527268cdfd7a837389f146142f83c5a3f8 Mon Sep 17 00:00:00 2001 From: zskbot <241179063+zskbot@users.noreply.github.com> Date: Tue, 17 Nov 2026 05:09:38 +0700 Subject: [PATCH 2/2] test: expect redirect-follow in internal Auth health probe --- workers/control-api/worker.test.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/control-api/worker.test.mjs b/workers/control-api/worker.test.mjs index 6bac462..c7b784d 100644 --- a/workers/control-api/worker.test.mjs +++ b/workers/control-api/worker.test.mjs @@ -31,7 +31,7 @@ test("service registry probes CLI Auth and MCP while keeping Account Auth.js sep const originalFetch = globalThis.fetch; globalThis.fetch = async (url, options = {}) => { if (url === "https://auth.ocodejs.dev/health") { - assert.equal(options.redirect, "error"); + assert.equal(options.redirect, "follow"); return new Response(JSON.stringify({ ok: true, service: "ocodejs-auth-worker",