[PR #1133] [MERGED] fix: answer returned null when response_mode was blocking #22908

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

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify/pull/1133
Author: @takatost
Created: 9/9/2023
Status: Merged
Merged: 9/9/2023
Merged by: @takatost

Base: mainHead: fix/blocking-answer-null


📝 Commits (1)

  • ec8d060 fix: answer returned null when response_mode was blocking

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 api/services/completion_service.py (+1 -1)

📄 Description

How to reproduce

When selecting multiple datasets, subscribing to the messages of agent_thought, there is no content in the answer, which ultimately results in a Null response.

Solution

Only subscribe to messages with the event "message"


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify/pull/1133 **Author:** [@takatost](https://github.com/takatost) **Created:** 9/9/2023 **Status:** ✅ Merged **Merged:** 9/9/2023 **Merged by:** [@takatost](https://github.com/takatost) **Base:** `main` ← **Head:** `fix/blocking-answer-null` --- ### 📝 Commits (1) - [`ec8d060`](https://github.com/langgenius/dify/commit/ec8d06055d6981fea1cd394a34a4bb78bd7cc8ca) fix: answer returned null when response_mode was blocking ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `api/services/completion_service.py` (+1 -1) </details> ### 📄 Description ## How to reproduce When selecting multiple datasets, subscribing to the messages of agent_thought, there is no content in the answer, which ultimately results in a Null response. ## Solution Only subscribe to messages with the event "message" --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-21 20:20:02 -05:00
yindo closed this issue 2026-02-21 20:20:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#22908