diff --git a/web/app/components/workflow-app/hooks/use-workflow-run.ts b/web/app/components/workflow-app/hooks/use-workflow-run.ts index 10155f6128..a5e2740d8c 100644 --- a/web/app/components/workflow-app/hooks/use-workflow-run.ts +++ b/web/app/components/workflow-app/hooks/use-workflow-run.ts @@ -341,6 +341,7 @@ export const useWorkflowRun = () => { featuresStore?.setState({ features: mappedFeatures }) workflowStore.getState().setEnvironmentVariables(publishedWorkflow.environment_variables || []) + workflowStore.getState().setConversationVariables(publishedWorkflow.conversation_variables || []) }, [featuresStore, handleUpdateWorkflowCanvas, workflowStore]) return { diff --git a/web/app/components/workflow/panel/env-panel/variable-modal.tsx b/web/app/components/workflow/panel/env-panel/variable-modal.tsx index 1c780f7341..47e56397f3 100644 --- a/web/app/components/workflow/panel/env-panel/variable-modal.tsx +++ b/web/app/components/workflow/panel/env-panel/variable-modal.tsx @@ -62,6 +62,8 @@ const VariableModal = ({ // Original check for create new variable if (!env && envList.some(e => e.name === name)) return notify({ type: 'error', message: 'name is existed' }) + if (description.length > 256) + return notify({ type: 'error', message: 'description can not be longer than 256 characters' }) onSave({ id: env ? env.id : uuid4(),