-
Notifications
You must be signed in to change notification settings - Fork 8.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(workflow): fix answer node stream processing in conditional branches #12510
base: main
Are you sure you want to change the base?
Conversation
882bcbc
to
e74d523
Compare
Please open an issue or link an existing issue first. |
6dfc1cc
to
070b232
Compare
Issue linked |
Nice job, but these kind of workflow has many special case, you can follow the issue link to test them if this patch work well |
Many thanks, will test all related issues |
# FIXME: because of the code branch can combine directly, so for answer node | ||
# we remove the node maybe shortcut the answer node, so comment this code for now | ||
# there is not effect on the answer node and the workflow, when we have a better solution | ||
# we can open this code. Issues: #11542 #9560 #10638 #10564 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you keep those comments about related issues, and maybe add more to explain your changes? It will be helpful to others.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you keep those comments about related issues, and maybe add more to explain your changes? It will be helpful to others.
Sure, I'll commit them again.
Summary
Previously, the _fetch_node_ids_in_reachable_branch method would collect all downstream
answer nodes regardless of branch conditions, causing incorrect stream processing.
This change ensures that only nodes in the current conditional branch are collected
by tracking and matching branch identifiers.
Tip
Close issue syntax:
Fixes #<issue number>
orResolves #<issue number>
, see documentation for more details.Fixes #11542
Fixes #9560
Fixes #10638
Fixes #10564
Also fixes #11985 (streaming output)
Screenshots
Checklist
Important
Please review the checklist below before submitting your pull request.
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint gods