You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue with deleting used variables in the Code node for Dify version 0.6.11 has been addressed in the latest version (v0.6.12-fix1). Specifically, the _extract_variable_selector_to_variable_mapping method was added to the CodeNode class to improve how variables are managed and preserved, which could help resolve the problem with variable deletion [1].
Additionally, the confirmation dialog for variable deletion is implemented using the ConfirmModal component. There are no known issues with this implementation, but the backend handling of the deletion request involves the handleRemoveVariable function from the useOutputVarList hook, which manages the removal of variables from the node's configuration [2][3].
Updating to the latest version should address the issue you're experiencing.
Self Checks
Dify version
0.6.11
Cloud or Self Hosted
Cloud, Self Hosted (Docker), Self Hosted (Source)
Steps to reproduce
delete used vars in Code node. It will show the confirm dialog. when click confirm, the used var wasn't deleted.
![image](https://cdn.statically.io/img/private-user-images.githubusercontent.com/9697715/345740888-a82b1281-2c41-48eb-aaf8-c2d552b1b6c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MzMzNjUsIm5iZiI6MTcyMDczMzA2NSwicGF0aCI6Ii85Njk3NzE1LzM0NTc0MDg4OC1hODJiMTI4MS0yYzQxLTQ4ZWItYWFmOC1jMmQ1NTJiMWI2YzEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTFUMjEyNDI1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWEzM2E1OGJhODUwNzY3NGEyNWJiOGYwYWE1YTZlMzkwOGRmNGVkYTgwZTJhNTJkMDE4NmIzYzk5M2E3ZDgxZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.uQN8IKzJcSQQ8fo_Y9RNIG_fDOC-ej1_PIUCuU7B-AA)
✔️ Expected Behavior
When confirmed, the used vars deleted.
❌ Actual Behavior
delete used vars in Code node. It will show the confirm dialog. when click confirm, the used var wasn't deleted.
The text was updated successfully, but these errors were encountered: