Skip to content

Commit ebf54aa

Browse files
authored
fix: Application workflow, after the loop ends, there is a recall node that cannot have a conversation (#4319)
1 parent a8d0729 commit ebf54aa

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

apps/application/flow/step_node/loop_node/impl/base_loop_node.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,11 @@ class BaseLoopNode(ILoopNode):
226226
def save_context(self, details, workflow_manage):
227227
self.context['loop_context_data'] = details.get('loop_context_data')
228228
self.context['loop_answer_data'] = details.get('loop_answer_data')
229-
for key, value in details['context'].items():
230-
if key not in self.context:
231-
self.context[key] = value
229+
self.context['result'] = details.get('result')
230+
self.context['params'] = details.get('params')
231+
self.context['run_time'] = details.get('run_time')
232+
self.context['index'] = details.get('current_index')
233+
self.context['item'] = details.get('current_item')
232234
self.answer_text = ""
233235

234236
def get_answer_list(self) -> List[Answer] | None:

0 commit comments

Comments
 (0)