From 5d232ac1bc330c4f567d279a3ca56643a1cb10b5 Mon Sep 17 00:00:00 2001 From: Joel Date: Thu, 17 Jul 2025 14:39:00 +0800 Subject: [PATCH] chore: last run divide --- .../_base/components/variable/var-reference-vars.tsx | 12 ++++++++++-- web/i18n/en-US/workflow.ts | 1 + web/i18n/zh-Hans/workflow.ts | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx index 688ffc6f9e..e828d86b6f 100644 --- a/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx +++ b/web/app/components/workflow/nodes/_base/components/variable/var-reference-vars.tsx @@ -175,7 +175,8 @@ const Item: FC = ({ className={cn( (isObj || isStructureOutput) ? ' pr-1' : 'pr-[18px]', isHovering && ((isObj || isStructureOutput) ? 'bg-components-panel-on-panel-item-bg-hover' : 'bg-state-base-hover'), - 'relative flex h-6 w-full cursor-pointer items-center rounded-md pl-3') + 'relative flex h-6 w-full cursor-pointer items-center rounded-md pl-3', + ) } onClick={handleChosen} onMouseDown={e => e.preventDefault()} @@ -378,7 +379,7 @@ const VarReferenceVars: FC = ({ { filteredVars.map((item, i) => ( -
+
{!item.isFlat && (
= ({ zIndex={zIndex} /> ))} + {item.isFlat && !filteredVars[i + 1]?.isFlat && ( +
+
+
{t('workflow.debug.lastOutput')}
+
+
+ )}
)) }
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts index c56b497ac2..23fd382acf 100644 --- a/web/i18n/en-US/workflow.ts +++ b/web/i18n/en-US/workflow.ts @@ -965,6 +965,7 @@ const translation = { chatNode: 'Conversation', systemNode: 'System', }, + lastOutput: 'Last Output', }, } diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts index 6bd202d58f..d6eeac13b6 100644 --- a/web/i18n/zh-Hans/workflow.ts +++ b/web/i18n/zh-Hans/workflow.ts @@ -966,6 +966,7 @@ const translation = { chatNode: '会话变量', systemNode: '系统变量', }, + lastOutput: '上次输出', }, }