-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Connection and variables are lost when block changes are made #11912
Comments
Hello @sotono-046! 👋 I'm here to help you with bugs, questions, and becoming a contributor. I'm Dosu, a bot designed to assist you while you wait for a human maintainer. The issue you're experiencing, where connections and variables are lost when a block is changed, seems to be related to how Dify handles block changes. Currently, there isn't specific documentation or code comments in the Dify codebase that explain the rationale behind deleting connections when a block is changed. However, the logic for handling variable preservation when a block is changed involves checking for affected nodes and updating them if a variable's name changes [1]. To address this issue, you might consider implementing a mechanism that checks for compatibility between the old and new block types before deciding whether to preserve or delete connections and variables. This could involve:
These steps could help in maintaining the integrity of your workflow when blocks are changed. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Sorry, I checked but forgot to attach the recording of the actual behavior, here it is! 2024-12-20.204740.mp4 |
I think we decided to do this because the 3 items is too complicated to achieve.
|
Self Checks
Dify version
0.14.1
Cloud or Self Hosted
Cloud
Steps to reproduce
✔️ Expected Behavior
❌ Actual Behavior
The text was updated successfully, but these errors were encountered: