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.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
fix: ensure consistent DSL export behavior across UI entry (#25317)
Krito.e1f871fefe8f
diff --git a/web/app/components/app-sidebar/app-info.tsx b/web/app/components/app-sidebar/app-info.tsxindex cf55c0d68d4..2037647b996 100644--- a/web/app/components/app-sidebar/app-info.tsx+++ b/web/app/components/app-sidebar/app-info.tsx@@ -72,6 +72,7 @@ const AppInfo = ({ expand, onlyShowDetail = false, openState = false, onDetailExconst [showSwitchModal, setShowSwitchModal] = useState<boolean>(false)const [showImportDSLModal, setShowImportDSLModal] = useState<boolean>(false)const [secretEnvList, setSecretEnvList] = useState<EnvironmentVariable[]>([])+ const [showExportWarning, setShowExportWarning] = useState(false)const onEdit: CreateAppModalProps['onConfirm'] = useCallback(async ({name,@@ -159,6 +160,14 @@ const AppInfo = ({ expand, onlyShowDetail = false, openState = false, onDetailExonExport()return}++ setShowExportWarning(true)+ }++ const handleConfirmExport = async () => {+ if (!appDetail)+ return+ setShowExportWarning(false)try {const workflowDraft = await fetchWorkflowDraft(`/apps/${appDetail.id}/workflows/draft`)const list = (workflowDraft.environment_variables || []).filter(env => env.value_type === 'secret')@@ -407,6 +416,16 @@ const AppInfo = ({ expand, onlyShowDetail = false, openState = false, onDetailExonClose={() => setSecretEnvList([])}/>)}+ {showExportWarning && (+ <Confirm+ type="info"+ isShow={showExportWarning}+ title={t('workflow.sidebar.exportWarning')}+ content={t('workflow.sidebar.exportWarningDesc')}+ onConfirm={handleConfirmExport}+ onCancel={() => setShowExportWarning(false)}+ />+ )}</div>)}diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.tsindex eae63e9c2fc..5da97a7692d 100644--- a/web/i18n/en-US/workflow.ts+++ b/web/i18n/en-US/workflow.ts@@ -140,6 +140,10 @@ const translation = {export: 'Export DSL with secret values ',},},+ sidebar: {+ exportWarning: 'Export Current Saved Version',+ exportWarningDesc: 'This will export the current saved version of your workflow. If you have unsaved changes in the editor, please save them first by using the export option in the workflow canvas.',+ },chatVariable: {panelTitle: 'Conversation Variables',panelDescription: 'Conversation Variables are used to store interactive information that LLM needs to remember, including conversation history, uploaded files, user preferences. They are read-write. ',diff --git a/web/i18n/ja-JP/workflow.ts b/web/i18n/ja-JP/workflow.tsindex 2a3ee304f38..707a119c451 100644--- a/web/i18n/ja-JP/workflow.ts+++ b/web/i18n/ja-JP/workflow.ts@@ -140,6 +140,10 @@ const translation = {export: 'シークレット値付きでエクスポート',},},+ sidebar: {+ exportWarning: '現在保存されているバージョンをエクスポート',+ exportWarningDesc: 'これは現在保存されているワークフローのバージョンをエクスポートします。エディターで未保存の変更がある場合は、まずワークフローキャンバスのエクスポートオプションを使用して保存してください。',+ },chatVariable: {panelTitle: '会話変数',panelDescription: '対話情報を保存・管理(会話履歴/ファイル/ユーザー設定など)。書き換えができます。',diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.tsindex 4573fa7bda2..60c65a080c9 100644--- a/web/i18n/zh-Hans/workflow.ts+++ b/web/i18n/zh-Hans/workflow.ts@@ -140,6 +140,10 @@ const translation = {export: '导出包含 Secret 值的 DSL',},},+ sidebar: {+ exportWarning: '导出当前已保存版本',+ exportWarningDesc: '这将导出您工作流的当前已保存版本。如果您在编辑器中有未保存的更改,请先使用工作流画布中的导出选项保存它们。',+ },chatVariable: {panelTitle: '会话变量',panelDescription: '会话变量用于存储 LLM 需要的上下文信息,如用户偏好、对话历史等。它是可读写的。',