Repeat the direct answer #12406

Closed
opened 2026-02-21 19:07:16 -05:00 by yindo · 3 comments
Owner

Originally created by @peterliang5678 on GitHub (Mar 31, 2025).

Self Checks

  • 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 (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.1.3

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

Repeat the direct answer

✔️ Expected Behavior

No response

Actual Behavior

Image

Originally created by @peterliang5678 on GitHub (Mar 31, 2025). ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [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 Self Hosted (Source) ### Steps to reproduce Repeat the direct answer ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior ![Image](https://github.com/user-attachments/assets/bb6ab9b4-b32d-4dcf-bf52-8d1be6688d20)
yindo added the 🤔 cant-reproduce label 2026-02-21 19:07:16 -05:00
yindo closed this issue 2026-02-21 19:07:16 -05:00
Author
Owner

@peterliang5678 commented on GitHub (Mar 31, 2025):

Image

@peterliang5678 commented on GitHub (Mar 31, 2025): ![Image](https://github.com/user-attachments/assets/41c378a5-6ee6-4e11-9b22-836131c5cd09)
Author
Owner

@dosubot[bot] commented on GitHub (Mar 31, 2025):

I found a similar open issue related to repeated output content in Dify version 1.1.3. The issue is caused by new code that was added with || content, which results in two markdowns (BasicContent & AgentContent) being inserted. This can be found in the file web/app/components/base/chat/chat/answer/index.tsx. The problem is linked to a specific pull request: #16794 [1].

To resolve this issue, you should address the code condition in the mentioned file. The duplication is caused by the condition || content, which results in both BasicContent and AgentContent markdown components being inserted. You should remove or modify this condition to prevent the dual rendering of content [1].

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] commented on GitHub (Mar 31, 2025): <!-- Answer --> I found a similar open issue related to repeated output content in Dify version 1.1.3. The issue is caused by new code that was added with `|| content`, which results in two markdowns (`BasicContent` & `AgentContent`) being inserted. This can be found in the file `web/app/components/base/chat/chat/answer/index.tsx`. The problem is linked to a specific pull request: [#16794](https://github.com/langgenius/dify/pull/16794) <sup>[[1]](https://github.com/langgenius/dify/issues/16950)</sup>. To resolve this issue, you should address the code condition in the mentioned file. The duplication is caused by the condition `|| content`, which results in both `BasicContent` and `AgentContent` markdown components being inserted. You should remove or modify this condition to prevent the dual rendering of content <sup>[[1]](https://github.com/langgenius/dify/issues/16950)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/48f281c7-f5f4-4401-8dbd-78a12cf9b3be?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Mar 31, 2025):

Can't reproduce this error.

https://github.com/langgenius/dify/blob/0277a37fcad5ad86aeb239485c27fffd5cd90043/CONTRIBUTING.md#L23-L33

@crazywoola commented on GitHub (Mar 31, 2025): Can't reproduce this error. https://github.com/langgenius/dify/blob/0277a37fcad5ad86aeb239485c27fffd5cd90043/CONTRIBUTING.md#L23-L33
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12406