From b2572acdbf2e35540a483e9204938335d03fe253 Mon Sep 17 00:00:00 2001 From: Antigravity Assistant Date: Thu, 30 Apr 2026 12:52:26 -0300 Subject: [PATCH] feat: inject fallback tool names to prevent upstream 400 errors (#1775) --- open-sse/executors/base.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/open-sse/executors/base.ts b/open-sse/executors/base.ts index 3e73bbef38..f4e036f341 100644 --- a/open-sse/executors/base.ts +++ b/open-sse/executors/base.ts @@ -281,6 +281,9 @@ export class BaseExecutor { if (toolFunction && typeof toolFunction === "object" && !Array.isArray(toolFunction)) { const func = { ...(toolFunction as JsonRecord) }; if (func.description === "") delete func.description; + if (typeof func.name !== "string" || func.name.trim() === "") { + func.name = "unnamed_tool"; + } return { ...toolRecord, function: func }; } }