[Bug] Agent node Jinja toggle has no effect in strategy parameter prompt editor #18346

Closed
opened 2026-02-21 19:46:34 -05:00 by yindo · 0 comments
Owner

Originally created by @mizuikk on GitHub (Sep 27, 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.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  • Add an Agent node in a workflow.
  • Select any Agent strategy
  • Open that parameter’s editor and toggle the Jinja switch.
  • Observe that the editor does not switch to Jinja code mode.

✔️ Expected Behavior

Toggling the Jinja switch should flip the editor between basic prompt editor and Jinja code editor and show Input Variables field, driven by an edition_type state, similar to how the LLM node config works.

Image

Actual Behavior

The switch visually toggles, but the editor remains in the basic prompt editor. The editionType prop that controls conditional rendering is not provided, so the UI state does not take effect.

Image
Originally created by @mizuikk on GitHub (Sep 27, 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.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce - Add an Agent node in a workflow. - Select any Agent strategy - Open that parameter’s editor and toggle the Jinja switch. - Observe that the editor does not switch to Jinja code mode. ### ✔️ Expected Behavior Toggling the Jinja switch should flip the editor between basic prompt editor and Jinja code editor and show `Input Variables` field, driven by an `edition_type` state, similar to how the LLM node config works. <img width="388" height="204" alt="Image" src="https://github.com/user-attachments/assets/bb24a1da-b63b-4eb9-9a65-7221b7cf0183" /> ### ❌ Actual Behavior The switch visually toggles, but the editor remains in the basic prompt editor. The `editionType` prop that controls conditional rendering is not provided, so the UI state does not take effect. <img width="972" height="970" alt="Image" src="https://github.com/user-attachments/assets/622cbbbf-209a-4241-81df-59c5261ef3f0" />
yindo added the 🐞 bug label 2026-02-21 19:46:34 -05:00
yindo closed this issue 2026-02-21 19:46:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#18346