From d1021292ecb8ac1d4be4c94ea9af7bd505921e8a Mon Sep 17 00:00:00 2001 From: waleed Date: Wed, 1 Jul 2026 23:53:36 -0700 Subject: [PATCH] fix(algolia): remove fabricated pendingTask field from get_task_status MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Algolia's Get Task Status response (additionalProperties: false) only returns `status` (published | notPublished) — pendingTask belongs to the List Indices response, not this endpoint. Drop it from the tool's output, response type, and block outputs rather than inventing data. --- apps/sim/blocks/blocks/algolia.ts | 1 - apps/sim/tools/algolia/get_task_status.ts | 5 ----- apps/sim/tools/algolia/types.ts | 1 - 3 files changed, 7 deletions(-) diff --git a/apps/sim/blocks/blocks/algolia.ts b/apps/sim/blocks/blocks/algolia.ts index 4940fc4315..0644e4ba07 100644 --- a/apps/sim/blocks/blocks/algolia.ts +++ b/apps/sim/blocks/blocks/algolia.ts @@ -672,7 +672,6 @@ Return ONLY the JSON array.`, type: 'string', description: 'Task status: "published" once applied, "notPublished" while still pending', }, - pendingTask: { type: 'boolean', description: 'Whether the task is still pending' }, }, } diff --git a/apps/sim/tools/algolia/get_task_status.ts b/apps/sim/tools/algolia/get_task_status.ts index 5f95774533..9c19c41a5b 100644 --- a/apps/sim/tools/algolia/get_task_status.ts +++ b/apps/sim/tools/algolia/get_task_status.ts @@ -56,7 +56,6 @@ export const getTaskStatusTool: ToolConfig< success: true, output: { status: data.status ?? '', - pendingTask: data.pendingTask ?? false, }, } }, @@ -67,9 +66,5 @@ export const getTaskStatusTool: ToolConfig< description: 'Task status: "published" once the operation has been applied, "notPublished" while still pending', }, - pendingTask: { - type: 'boolean', - description: 'Whether the task is still pending', - }, }, } diff --git a/apps/sim/tools/algolia/types.ts b/apps/sim/tools/algolia/types.ts index 5c606ead21..3e30293a52 100644 --- a/apps/sim/tools/algolia/types.ts +++ b/apps/sim/tools/algolia/types.ts @@ -286,6 +286,5 @@ export interface AlgoliaGetTaskStatusParams extends AlgoliaBaseParams { export interface AlgoliaGetTaskStatusResponse extends ToolResponse { output: { status: string - pendingTask: boolean } }