From 204322b12004c7a73feb8bd3bf343893cb1ce154 Mon Sep 17 00:00:00 2001 From: MoerAI Date: Tue, 10 Mar 2026 17:18:14 +0900 Subject: [PATCH] fix(hashline-edit): remove array type from lines union to fix Gemini Vertex schema validation (#2408) --- src/tools/hashline-edit/tools.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/hashline-edit/tools.ts b/src/tools/hashline-edit/tools.ts index bd2bf1f90d..798b86273c 100644 --- a/src/tools/hashline-edit/tools.ts +++ b/src/tools/hashline-edit/tools.ts @@ -30,8 +30,8 @@ export function createHashlineEditTool(): ToolDefinition { pos: tool.schema.string().optional().describe("Primary anchor in LINE#ID format"), end: tool.schema.string().optional().describe("Range end anchor in LINE#ID format"), lines: tool.schema - .union([tool.schema.string(), tool.schema.array(tool.schema.string()), tool.schema.null()]) - .describe("Replacement or inserted lines. null/[] deletes with replace"), + .union([tool.schema.string(), tool.schema.null()]) + .describe("Replacement or inserted lines as newline-delimited string. null deletes with replace"), }) ) .describe("Array of edit operations to apply (empty when delete=true)"),