From 087500a809422306f5586f98bcb04d9e19344d67 Mon Sep 17 00:00:00 2001 From: Gio Della-Libera Date: Sun, 19 Jul 2026 14:28:35 -0700 Subject: [PATCH] fix(claws): satisfy tool filter lint --- src/claws/schema.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/claws/schema.ts b/src/claws/schema.ts index de0f69488a75..74feaecbc16c 100644 --- a/src/claws/schema.ts +++ b/src/claws/schema.ts @@ -175,7 +175,7 @@ const mcpToolFilterSchema = z for (const field of ["include", "exclude"] as const) { const seen = new Set(); for (const [index, value] of (filter[field] ?? []).entries()) { - if (/[?\[\]]/.test(value)) { + if (value.includes("?") || value.includes("[") || value.includes("]")) { ctx.addIssue({ code: "custom", path: [field, index],