Skip to content

Commit 8dfbe8a

Browse files
committed
Fix 10mb tool response limit
1 parent ca2afaa commit 8dfbe8a

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

apps/sim/lib/copilot/tools/client/run-tool-execution.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,6 @@ async function reportCompletion(
356356
headers: { 'Content-Type': 'application/json' },
357357
body,
358358
})
359-
// Next.js silently truncates request bodies beyond its body size limit (default 10MB),
360-
// corrupting the JSON and causing a server-side parse error (500). When the request fails
361-
// and the payload is large, retry without logs (the largest field) to fit under the limit.
362359
const LARGE_PAYLOAD_THRESHOLD = 10 * 1024 * 1024
363360
const bodySize = new Blob([body]).size
364361
if (!res.ok && data && bodySize > LARGE_PAYLOAD_THRESHOLD) {

0 commit comments

Comments
 (0)