From 9ce525477b8ec62f226e78f9fa6f30d29bddda80 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 Date: Wed, 2 Dec 2026 18:37:37 +0800 Subject: [PATCH] fix: The skills of AI conversation nodes use shared workflow tools, which cannot be called during conversations --- .../workflow/nodes/ai_chat_node/tools/tool/workflow.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py b/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py index 65fc02ab3fa..ca4000e3eaa 100644 --- a/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py +++ b/apps/application/workflow/nodes/ai_chat_node/tools/tool/workflow.py @@ -126,9 +126,7 @@ def get_start_node_fn(wf, wm): def get_workflow_tools(source_type, source_id, tool_workflow_ids, workspace_id, cancel_event, workflow_params=None): - tools = QuerySet(Tool).filter( - id__in=tool_workflow_ids, is_active=True, tool_type=ToolType.WORKFLOW, workspace_id=workspace_id - ) + tools = QuerySet(Tool).filter(id__in=tool_workflow_ids, is_active=True, tool_type=ToolType.WORKFLOW) latest_subquery = ToolWorkflowVersion.objects.filter(tool_id=OuterRef("tool_id")).order_by("-create_time") qs = ToolWorkflowVersion.objects.filter(