[PR #26640] Fixes #26533 #31504

Open
opened 2026-02-21 20:49:35 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langgenius/dify/pull/26640

State: open
Merged: No


Important

  1. Make sure you have read our contribution guidelines
  2. Ensure there is an associated issue and you have been assigned to it
  3. Use the correct syntax to link this PR: Fixes #<issue number>.

Summary

To fix https://github.com/langgenius/dify/issues/26533.
With this change, Secret variables if used with Agent code or Code Node. In the workflow_node_executions table of DIFY db, obfuscated value will be stored for Secret environment variable.

close https://github.com/langgenius/dify/issues/28326

Screenshots

After_Agent_Node_Tool_call_input After_Code_Node Before_Agent_Node_Tool_Call_Input Before_Code_Node
Before After
... ...

Checklist

  • This change requires a documentation update, included: Dify Document
  • I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • I've updated the documentation accordingly.
  • I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
**Original Pull Request:** https://github.com/langgenius/dify/pull/26640 **State:** open **Merged:** No --- > [!IMPORTANT] > > 1. Make sure you have read our [contribution guidelines](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) > 1. Ensure there is an associated issue and you have been assigned to it > 1. Use the correct syntax to link this PR: `Fixes #<issue number>`. ## Summary To fix https://github.com/langgenius/dify/issues/26533. With this change, Secret variables if used with Agent code or Code Node. In the workflow_node_executions table of DIFY db, obfuscated value will be stored for Secret environment variable. close https://github.com/langgenius/dify/issues/28326 ## Screenshots <img width="644" height="730" alt="After_Agent_Node_Tool_call_input" src="https://github.com/user-attachments/assets/0c9b3a8d-5eb7-4772-85d7-51b371e72cc0" /> <img width="888" height="784" alt="After_Code_Node" src="https://github.com/user-attachments/assets/da5860c7-8779-406a-bf5c-c7c832a46866" /> <img width="725" height="753" alt="Before_Agent_Node_Tool_Call_Input" src="https://github.com/user-attachments/assets/2df8f82d-f589-4d79-a75f-e2ccf1525461" /> <img width="936" height="777" alt="Before_Code_Node" src="https://github.com/user-attachments/assets/d4d03910-130c-4749-805e-94712372c0bf" /> | Before | After | |--------|-------| | ... | ... | ## Checklist - [ ] This change requires a documentation update, included: [Dify Document](https://github.com/langgenius/dify-docs) - [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!) - [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change. - [x] I've updated the documentation accordingly. - [x] I ran `dev/reformat`(backend) and `cd web && npx lint-staged`(frontend) to appease the lint gods
yindo added the pull-request label 2026-02-21 20:49:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#31504