fix(session): enable all tools by default in SandboxBashSession

This commit is contained in:
Harry
2026-02-13 17:53:55 +08:00
parent ada3a6d4a2
commit cc1085ebd4

View File

@@ -52,10 +52,8 @@ class SandboxBashSession:
user_id=self._user_id,
context=CliContext(tool_access=ToolAccessPolicy.from_dependencies(self._tools)),
)
if self._tools is not None and not self._tools.is_empty():
tools_path = self._setup_node_tools_directory(self._node_id, self._tools, self._cli_api_session)
else:
tools_path = DifyCli.GLOBAL_TOOLS_PATH
# FIXME(Mairuis): enable all tool using
tools_path = DifyCli.GLOBAL_TOOLS_PATH
self._bash_tool = SandboxBashTool(
sandbox=self._sandbox.vm,