Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: occasional multiple responses displayed in frontend due to unexpected message_id from onData (#2231)

Rickybd0af2e921b9
diff --git a/web/service/base.ts b/web/service/base.ts
index eefc0c55ad0..1d98956bc06 100644
--- a/web/service/base.ts
+++ b/web/service/base.ts
@@ -110,7 +110,7 @@ const handleStream = (response: Response, onData: IOnData, onCompleted?: IOnComp
// mute handle message cut off
onData('', isFirstMessage, {
conversationId: bufferObj?.conversation_id,
- messageId: bufferObj?.id,
+ messageId: bufferObj?.message_id,
})
return
}