fix: Application workflow, after the loop ends, there is a recall node that cannot have a conversation (#4319)

This commit is contained in:
shaohuzhang1 2025-11-05 19:53:01 +08:00 committed by GitHub
parent a8d0729e65
commit ebf54aa12f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -226,9 +226,11 @@ class BaseLoopNode(ILoopNode):
def save_context(self, details, workflow_manage):
self.context['loop_context_data'] = details.get('loop_context_data')
self.context['loop_answer_data'] = details.get('loop_answer_data')
for key, value in details['context'].items():
if key not in self.context:
self.context[key] = value
self.context['result'] = details.get('result')
self.context['params'] = details.get('params')
self.context['run_time'] = details.get('run_time')
self.context['index'] = details.get('current_index')
self.context['item'] = details.get('current_item')
self.answer_text = ""
def get_answer_list(self) -> List[Answer] | None: