Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: workflow node variable (#3743)

zxhlyh9eebe9d54ed4
diff --git a/web/app/components/workflow/constants.ts b/web/app/components/workflow/constants.ts
index 2785bc088a3..e9818ea19ca 100644
--- a/web/app/components/workflow/constants.ts
+++ b/web/app/components/workflow/constants.ts
@@ -230,7 +230,7 @@ export const NODE_WIDTH = 240
export const X_OFFSET = 60
export const NODE_WIDTH_X_OFFSET = NODE_WIDTH + X_OFFSET
export const Y_OFFSET = 39
-export const MAX_TREE_DEEPTH = 30
+export const MAX_TREE_DEEPTH = 50
export const START_INITIAL_POSITION = { x: 80, y: 282 }
export const AUTO_LAYOUT_OFFSET = {
x: -42,
diff --git a/web/config/index.ts b/web/config/index.ts
index eefe1f8aba0..7d6e9a053ec 100644
--- a/web/config/index.ts
+++ b/web/config/index.ts
@@ -242,4 +242,4 @@ Thought: {{agent_scratchpad}}
`,
}
-export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_]{1,50}(\.[a-zA-Z_][a-zA-Z0-9_]{0,29}){1,10}#)\}\}/gi
+export const VAR_REGEX = /\{\{(#[a-zA-Z0-9_-]{1,50}(\.[a-zA-Z_][a-zA-Z0-9_]{0,29}){1,10}#)\}\}/gi