variable remove failed when variable used in prompt #16264

Closed
opened 2026-02-21 19:25:22 -05:00 by yindo · 1 comment
Owner

Originally created by @spacekong on GitHub (Aug 19, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.7.2

Cloud or Self Hosted

Cloud

Steps to reproduce

Image

The variable in prompt remove failed

Image

✔️ Expected Behavior

variable remove success

Actual Behavior

When removing a variable, if the variable is referenced in the prompt, the removal operation will fail, resulting in the repeated appearance of the confirmation pop-up window.

demo dsl
两数相加.yml

Originally created by @spacekong on GitHub (Aug 19, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.7.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce <img width="1316" height="427" alt="Image" src="https://github.com/user-attachments/assets/fd049526-5e32-489e-8728-aa6c44495048" /> The variable in prompt remove failed <img width="479" height="348" alt="Image" src="https://github.com/user-attachments/assets/25448490-8503-499f-99de-d079caa5a2dc" /> ### ✔️ Expected Behavior variable remove success ### ❌ Actual Behavior When removing a variable, if the variable is referenced in the prompt, the removal operation will fail, resulting in the repeated appearance of the confirmation pop-up window. demo dsl [两数相加.yml](https://github.com/user-attachments/files/21851085/default.yml)
yindo added the 🐞 bug label 2026-02-21 19:25:22 -05:00
yindo closed this issue 2026-02-21 19:25:22 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 19, 2025):

Hi, @spacekong. I'm Dosu (https://dosu.dev), and I'm helping the Dify team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a bug in Dify version 1.7.2 (Cloud) where removing a variable referenced in a prompt fails.
  • The confirmation pop-up repeatedly appears, preventing the variable from being deleted.
  • You expect the variable to be removed successfully even if it is used in the prompt.
  • There has been no further activity or comments on this issue since your report.

Next Steps:

  • Please let me know if this issue is still relevant with the latest version of Dify by commenting here.
  • If I do not hear back within 15 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Sep 19, 2025): Hi, @spacekong. I'm Dosu (https://dosu.dev), and I'm helping the Dify team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a bug in Dify version 1.7.2 (Cloud) where removing a variable referenced in a prompt fails. - The confirmation pop-up repeatedly appears, preventing the variable from being deleted. - You expect the variable to be removed successfully even if it is used in the prompt. - There has been no further activity or comments on this issue since your report. **Next Steps:** - Please let me know if this issue is still relevant with the latest version of Dify by commenting here. - If I do not hear back within 15 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#16264