Merge remote-tracking branch 'origin/v2' into v2

This commit is contained in:
liqiang-fit2cloud 2025-08-12 17:25:42 +08:00
commit 02a8aaa6d0

View File

@ -340,8 +340,8 @@ class BaseChatNode(IChatNode):
# 清理工具代码文件,延时删除,避免文件被占用
for tool_id in self.context.get('tool_ids'):
code_path = f'{executor.sandbox_path}/execute/{tool_id}.py'
# if os.path.exists(code_path):
# os.remove(code_path)
if os.path.exists(code_path):
os.remove(code_path)
return {
'name': self.node.properties.get('stepName'),
"index": index,