From 6ccf88444c9fc0f18086555e9f1ccc9384ede17e Mon Sep 17 00:00:00 2001 From: Kfir Strikovsky Date: Thu, 12 Feb 2026 17:12:17 +0200 Subject: [PATCH 1/2] update timeouts better --- src/core/clients/base44-client.ts | 1 - src/core/resources/agent/api.ts | 1 + src/core/resources/entity/api.ts | 1 + src/core/resources/function/api.ts | 2 +- src/core/site/api.ts | 1 + 5 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/core/clients/base44-client.ts b/src/core/clients/base44-client.ts index 936a2ae0..e78a1dab 100644 --- a/src/core/clients/base44-client.ts +++ b/src/core/clients/base44-client.ts @@ -78,7 +78,6 @@ async function handleUnauthorized( */ export const base44Client = ky.create({ prefixUrl: getBase44ApiUrl(), - timeout: 180_000, headers: { "User-Agent": "Base44 CLI", }, diff --git a/src/core/resources/agent/api.ts b/src/core/resources/agent/api.ts index 7f884382..32beed22 100644 --- a/src/core/resources/agent/api.ts +++ b/src/core/resources/agent/api.ts @@ -24,6 +24,7 @@ export async function pushAgents( try { response = await appClient.put("agent-configs", { json: agents, + timeout: 60_000, }); } catch (error) { throw await ApiError.fromHttpError(error, "syncing agents"); diff --git a/src/core/resources/entity/api.ts b/src/core/resources/entity/api.ts index 42b5688b..e7531276 100644 --- a/src/core/resources/entity/api.ts +++ b/src/core/resources/entity/api.ts @@ -21,6 +21,7 @@ export async function syncEntities( json: { entityNameToSchema: schemaSyncPayload, }, + timeout: 60_000, }); } catch (error) { throw await ApiError.fromHttpError(error, "syncing entities"); diff --git a/src/core/resources/function/api.ts b/src/core/resources/function/api.ts index 8f0a35ab..6337248b 100644 --- a/src/core/resources/function/api.ts +++ b/src/core/resources/function/api.ts @@ -28,7 +28,7 @@ export async function deployFunctions( try { response = await appClient.put("backend-functions", { json: payload, - timeout: 120_000, + timeout: false, }); } catch (error) { throw await ApiError.fromHttpError(error, "deploying functions"); diff --git a/src/core/site/api.ts b/src/core/site/api.ts index 730f89cd..d6443539 100644 --- a/src/core/site/api.ts +++ b/src/core/site/api.ts @@ -27,6 +27,7 @@ export async function uploadSite(archivePath: string): Promise { try { response = await appClient.post("deploy-dist", { body: formData, + timeout: 180_000, }); } catch (error) { throw await ApiError.fromHttpError(error, "deploying site"); From 546c552ae2c9e376fc62d6bc3a47c2e0982191d1 Mon Sep 17 00:00:00 2001 From: Kfir Strikovsky Date: Thu, 12 Feb 2026 17:16:49 +0200 Subject: [PATCH 2/2] update tests --- tests/core/agents.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/core/agents.spec.ts b/tests/core/agents.spec.ts index a4825ac2..81c94868 100644 --- a/tests/core/agents.spec.ts +++ b/tests/core/agents.spec.ts @@ -79,6 +79,7 @@ describe("pushAgents", () => { whatsapp_greeting: "Hello!", }, ], + timeout: 60_000, }); expect(result.created).toEqual(["test_agent"]); }); @@ -113,6 +114,7 @@ describe("pushAgents", () => { tool_configs: [], }, ], + timeout: 60_000, }); });