Calling the chatflow_invoker plugin in a loop will cause an error and a crash. #19657

Closed
opened 2026-02-21 20:02:26 -05:00 by yindo · 0 comments
Owner

Originally created by @yzddmr6 on GitHub (Oct 20, 2025).

Originally assigned to: @laipz8200, @crazywoola on GitHub.

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.1/1.9.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

sub.yml
主智能体.yml

I want to create a plan executor architecture. The executor contains a large loop that calls different sub-agents according to sub_task.

But now I get an error when calling the plugin. I tested 1.7.1 and 1.9.1 and they both have this problem.

✔️ Expected Behavior

The loop can run successfully

Actual Behavior

Image

After the first round of execution, the entire canvas freezes. The call graph shows that the chatflow_invoke plugin is called outside the loop, not inside it. This seems to be an error in the graph generation.

Originally created by @yzddmr6 on GitHub (Oct 20, 2025). Originally assigned to: @laipz8200, @crazywoola on GitHub. ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.1/1.9.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce [sub.yml](https://github.com/user-attachments/files/22997903/sub.yml) [主智能体.yml](https://github.com/user-attachments/files/22997904/default.yml) I want to create a plan executor architecture. The executor contains a large loop that calls different sub-agents according to sub_task. But now I get an error when calling the plugin. I tested 1.7.1 and 1.9.1 and they both have this problem. ### ✔️ Expected Behavior The loop can run successfully ### ❌ Actual Behavior <img width="2540" height="1312" alt="Image" src="https://github.com/user-attachments/assets/2d53db05-6c5f-4a4a-971b-a47135e69187" /> After the first round of execution, the entire canvas freezes. The call graph shows that the chatflow_invoke plugin is called outside the loop, not inside it. This seems to be an error in the graph generation.
yindo added the 🐞 bug label 2026-02-21 20:02:26 -05:00
yindo closed this issue 2026-02-21 20:02:26 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19657