Conversation Opener Variable Name Validation Fails for Chinese Characters #20196

Closed
opened 2026-02-21 20:06:15 -05:00 by yindo · 0 comments
Owner

Originally created by @Xiu-Lan on GitHub (Nov 7, 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.9.2

Cloud or Self Hosted

Cloud

Steps to reproduce

  1. Navigate to the Chat Assistant edit page
  2. Click on "Conversation Opener" feature and enable it
  3. Enter text containing Chinese variables in the opener edit box, e.g., {{用户}},你好~ ({{user}}, hello~)
  4. System automatically generates a parameter named "用户" (user)
  5. Click the parameter in the parameter list to edit it
  6. Attempt to save the parameter

✔️ Expected Behavior

Should either allow Chinese characters as variable names, or:

  1. Provide clear upfront indication that Chinese characters are not supported
  2. Automatically filter out Chinese variables without generating corresponding parameters
  3. Provide friendly error messages explaining variable naming rules

Actual Behavior

  1. After user inputs {{用户}}, system recognizes and automatically generates the parameter
  2. When clicking to edit the parameter, shows error "Parameter name does not match rules"
  3. User cannot save or modify the parameter

Image

Originally created by @Xiu-Lan on GitHub (Nov 7, 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.9.2 ### Cloud or Self Hosted Cloud ### Steps to reproduce 1. Navigate to the Chat Assistant edit page 2. Click on "Conversation Opener" feature and enable it 3. Enter text containing Chinese variables in the opener edit box, e.g., `{{用户}},你好~` ({{user}}, hello~) 4. System automatically generates a parameter named "用户" (user) 5. Click the parameter in the parameter list to edit it 6. Attempt to save the parameter ### ✔️ Expected Behavior Should either allow Chinese characters as variable names, or: 1. Provide clear upfront indication that Chinese characters are not supported 2. Automatically filter out Chinese variables without generating corresponding parameters 3. Provide friendly error messages explaining variable naming rules ### ❌ Actual Behavior 1. After user inputs `{{用户}}`, system recognizes and automatically generates the parameter 2. When clicking to edit the parameter, shows error "Parameter name does not match rules" 3. User cannot save or modify the parameter ![Image](https://github.com/user-attachments/assets/5749b423-4ae2-4d07-9a47-41a356681fd5)
yindo added the 🐞 bugcloud labels 2026-02-21 20:06:15 -05:00
yindo closed this issue 2026-02-21 20:06:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#20196