From 11d81884158f5335680e4fdf7d90b5eaca057571 Mon Sep 17 00:00:00 2001 From: Waleed Date: Wed, 3 Sep 2025 08:16:50 -0700 Subject: [PATCH] fix(rce): always use VM over RCE for custom tools (#1233) --- apps/sim/app/api/function/execute/route.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/sim/app/api/function/execute/route.ts b/apps/sim/app/api/function/execute/route.ts index a943417c8..bdfa67d39 100644 --- a/apps/sim/app/api/function/execute/route.ts +++ b/apps/sim/app/api/function/execute/route.ts @@ -585,6 +585,7 @@ export async function POST(req: NextRequest) { const useE2B = e2bEnabled && !useLocalVM && + !isCustomTool && (lang === CodeLanguage.JavaScript || lang === CodeLanguage.Python) if (useE2B) {