Skip to content

Commit 252f638

Browse files
committed
fix: [Intelligent Agent] When nested loop applications are used, the front-end reply order may be disrupted # 4654
1 parent 2d5435f commit 252f638

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def loop(workflow_manage_new_instance, node: INode, generate_loop):
171171
'child_node': child_node}
172172
content_chunk = (chunk.get('content', '') or '')
173173
reasoning_content_chunk = (chunk.get('reasoning_content', '') or '')
174+
if chunk.get('real_node_id'):
175+
chunk['real_node_id'] = chunk['real_node_id'] + '__' + str(index)
174176
reasoning_content += reasoning_content_chunk
175177
answer += content_chunk
176178
yield chunk

0 commit comments

Comments
 (0)