dify icon indicating copy to clipboard operation
dify copied to clipboard

After multiple rounds of answering, template submissions will repeatedly appear

Open gdamao opened this issue 9 months ago • 2 comments

Self Checks

  • [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
  • [x] I have searched for existing issues search for existing issues, including closed ones.
  • [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • [x] Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.3

Cloud or Self Hosted

Cloud

Steps to reproduce

After multiple rounds of answering, template submissions will repeatedly appear

Image

✔️ Expected Behavior

Just need one template to submit

❌ Actual Behavior

No response

gdamao avatar Mar 27 '25 08:03 gdamao

The issue you're experiencing with repeated template submissions might be related to the form handling components in the Dify codebase. Specifically, the Form component located in web/app/components/datasets/external-api/external-api-modal/Form.tsx is responsible for rendering and handling form submissions. It uses the renderField function to render form fields and manages form changes with the handleFormChange function [1].

Additionally, the file web/app/components/workflow/nodes/_base/components/before-run-form/index.tsx also plays a role in form submission, processing form inputs and handling errors [2].

To address the issue of repeated template submissions, you might want to check these components for any logic that could lead to duplicate rendering or submission of forms. Look for any event listeners or handlers that might be triggering multiple submissions and ensure that the form state is managed correctly to prevent duplicates.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

dosubot[bot] avatar Mar 27 '25 08:03 dosubot[bot]

I am using parallel nodes, and I think it is caused by server instability

Image

output will repeatedly appear

gdamao avatar Mar 27 '25 08:03 gdamao

This should be fixed in latest version.

crazywoola avatar Apr 10 '25 08:04 crazywoola