From 8dfbe8ae3f2d55b8d5ed579e0e797371a33a1ea3 Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan Date: Mon, 6 Apr 2026 16:13:11 -0700 Subject: [PATCH] Fix 10mb tool response limit --- apps/sim/lib/copilot/tools/client/run-tool-execution.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/sim/lib/copilot/tools/client/run-tool-execution.ts b/apps/sim/lib/copilot/tools/client/run-tool-execution.ts index 6b3e07f7ff..d471c5bb65 100644 --- a/apps/sim/lib/copilot/tools/client/run-tool-execution.ts +++ b/apps/sim/lib/copilot/tools/client/run-tool-execution.ts @@ -356,9 +356,6 @@ async function reportCompletion( headers: { 'Content-Type': 'application/json' }, body, }) - // Next.js silently truncates request bodies beyond its body size limit (default 10MB), - // corrupting the JSON and causing a server-side parse error (500). When the request fails - // and the payload is large, retry without logs (the largest field) to fit under the limit. const LARGE_PAYLOAD_THRESHOLD = 10 * 1024 * 1024 const bodySize = new Blob([body]).size if (!res.ok && data && bodySize > LARGE_PAYLOAD_THRESHOLD) {