diff --git a/packages/ai/src/tools/file-tools/bash-execute-tool.ts b/packages/ai/src/tools/file-tools/bash-execute-tool.ts index 5338f2fd9..2fb435867 100644 --- a/packages/ai/src/tools/file-tools/bash-execute-tool.ts +++ b/packages/ai/src/tools/file-tools/bash-execute-tool.ts @@ -42,6 +42,7 @@ const executeBashCommands = wrapTraced( } try { + // Check if sandbox is available in runtime context const sandbox = runtimeContext.get(SandboxContextKey.Sandbox); if (sandbox) {