Skip to content

Commit 11d8188

Browse files
authored
fix(rce): always use VM over RCE for custom tools (#1233)
1 parent 36c98d1 commit 11d8188

File tree

1 file changed

+1
-0
lines changed
  • apps/sim/app/api/function/execute

1 file changed

+1
-0
lines changed

apps/sim/app/api/function/execute/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ export async function POST(req: NextRequest) {
585585
const useE2B =
586586
e2bEnabled &&
587587
!useLocalVM &&
588+
!isCustomTool &&
588589
(lang === CodeLanguage.JavaScript || lang === CodeLanguage.Python)
589590

590591
if (useE2B) {

0 commit comments

Comments
 (0)