[PR #31414] fix: use MESSAGE event type for LLM text chunks #33224

Open
opened 2026-02-21 20:52:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/31414

State: open
Merged: No


Fixes an issue where streamed LLM text chunks were mislabeled as message_file whenever the message had any attachments (e.g. user-uploaded images), causing the web client to treat them as file events and drop streamed text.

  • Always emit QueueLLMChunkEvent text chunks as event: message
  • Keep file metadata as event: message_file
  • Update unit test for EasyUIBasedGenerateTaskPipeline._process_stream_response
**Original Pull Request:** https://github.com/langgenius/dify/pull/31414 **State:** open **Merged:** No --- Fixes an issue where streamed LLM text chunks were mislabeled as `message_file` whenever the message had any attachments (e.g. user-uploaded images), causing the web client to treat them as file events and drop streamed text. - Always emit `QueueLLMChunkEvent` text chunks as `event: message` - Keep file metadata as `event: message_file` - Update unit test for `EasyUIBasedGenerateTaskPipeline._process_stream_response`
yindo added the pull-request label 2026-02-21 20:52:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#33224