From 04b42c399d6b52812e37ee9f80adb1f057e7deb3 Mon Sep 17 00:00:00 2001 From: shaohuzhang1 <80892890+shaohuzhang1@users.noreply.github.com> Date: Wed, 24 Sep 2025 17:21:18 +0800 Subject: [PATCH] feat: Incorrect assignment of session variables in loop (#4101) --- .../variable_assign_node/impl/base_variable_assign_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/application/flow/step_node/variable_assign_node/impl/base_variable_assign_node.py b/apps/application/flow/step_node/variable_assign_node/impl/base_variable_assign_node.py index 5e68c5fe1..15cfd1346 100644 --- a/apps/application/flow/step_node/variable_assign_node/impl/base_variable_assign_node.py +++ b/apps/application/flow/step_node/variable_assign_node/impl/base_variable_assign_node.py @@ -80,7 +80,7 @@ class BaseVariableAssignNode(IVariableAssignNode): from application.flow.loop_workflow_manage import LoopWorkflowManage if isinstance(self.workflow_manage, LoopWorkflowManage): self.workflow_manage.parentWorkflowManage.get_chat_info().set_chat_variable( - self.workflow_manage.chat_context) + self.workflow_manage.parentWorkflowManage.chat_context) else: self.workflow_manage.get_chat_info().set_chat_variable(self.workflow_manage.chat_context) return NodeResult({'variable_list': variable_list, 'result_list': result_list}, {})