From 97df21883b24793d821057c0df5c81a39964d079 Mon Sep 17 00:00:00 2001 From: Mark Henderson Date: Thu, 19 Feb 2026 15:59:12 -0800 Subject: [PATCH] fix: remove name field from Cloud Run create body (v2 API requires empty) Co-authored-by: Cursor --- lib/cloud-run-workspace.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cloud-run-workspace.ts b/lib/cloud-run-workspace.ts index ca2359d..221e7fe 100644 --- a/lib/cloud-run-workspace.ts +++ b/lib/cloud-run-workspace.ts @@ -65,8 +65,8 @@ export async function provisionTheiaWorkspace( const token = await getAccessToken(); const serviceName = `theia-${slug}`.slice(0, 49); // Cloud Run max 49 chars + // Cloud Run v2: name must be empty in the body — it's passed via ?serviceId= in the URL const serviceBody = { - name: `${CLOUD_RUN_API}/${serviceName}`, template: { scaling: { minInstanceCount: 0, // scale to zero when idle