Skip to content

LLM node can not produce stream response in workflow mode when IF-ELSE nested IF-ELSE #15162

Closed
@yunzhuqing

Description

@yunzhuqing

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

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Workflow was defined as below:
Image

TRUE branch will produce stream response,however, ELSE branch will block until all nodes has been executed

TRUE branch outputs is

Image

ELSE branch outputs

Image

The problem code maybe _fetch_node_ids_in_reachable_branch in StreamProcessor

Image

for ELSE branch, the condition is always true, the nodes after 'IF-ELSE 2' can not be append reachable_node_ids,

Image

these nodes will be deleted, this results stream_out_end_node_ids is always None

Image

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    🌊 feat:workflowWorkflow related stuff.🤔 cant-reproduceWe can not reproduce it or the information is limited

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions