Variables not correctly filled can still be referenced #14849

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

Originally created by @a123das on GitHub (Jun 24, 2025).

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

1.4.3

Cloud or Self Hosted

Cloud

Steps to reproduce

1.Click 'Add Variable' in the chat assistant without setting a variable name and display name"
2. Attempt to reference the variable in the prompt box"

Image

✔️ Expected Behavior

In the prompt input box, variables without assigned names are not allowed

Actual Behavior

Empty variables can be referenced

Originally created by @a123das on GitHub (Jun 24, 2025). ### Self Checks - [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 (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.4.3 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1.Click 'Add Variable' in the chat assistant without setting a variable name and display name" 2. Attempt to reference the variable in the prompt box" ![Image](https://github.com/user-attachments/assets/a7a3ecee-9f9d-4f7f-af0e-22609089ed71) ### ✔️ Expected Behavior In the prompt input box, variables without assigned names are not allowed ### ❌ Actual Behavior Empty variables can be referenced
yindo added the 🐞 bug label 2026-02-21 19:19:03 -05:00
yindo closed this issue 2026-02-21 19:19:03 -05:00
Author
Owner

@laipz8200 commented on GitHub (Jun 24, 2025):

Thank you for your report. For your information, we plan to gradually migrate Chatbot-type applications to the more feature-rich Chatflow type. As a result, support for the older type may become slower. We recommend using the "Switch to Workflow Orchestrate" feature within the application to transition to the new type.

@laipz8200 commented on GitHub (Jun 24, 2025): Thank you for your report. For your information, we plan to gradually migrate Chatbot-type applications to the more feature-rich Chatflow type. As a result, support for the older type may become slower. We recommend using the "Switch to Workflow Orchestrate" feature within the application to transition to the new type.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#14849