From c09fdef62c6f8a1287df814efd38ad4f7b7a44fb Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Sun, 18 Oct 2026 23:40:03 +1100 Subject: [PATCH] fix(ui): one insert chip per earlier step, inserting its summary --- ui/src/workflows/StepEditor.vue | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/ui/src/workflows/StepEditor.vue b/ui/src/workflows/StepEditor.vue index eefb42561..14526233c 100644 --- a/ui/src/workflows/StepEditor.vue +++ b/ui/src/workflows/StepEditor.vue @@ -128,11 +128,11 @@ const matching = (list: [string, InputSpec][], spec: InputSpec, prefix: string) // A reference goes into the text setting last focused: that is how this step // is connected to an earlier step's result. const focused = ref(null); -function reference(id: string, field: "summary" | "result"): void { +function reference(id: string): void { const key = focused.value ?? fields.value.lead?.key; if (!key) return; const current = typeof settings.value[key] === "string" ? (settings.value[key] as string) : ""; - const token = `{{ steps.${id}.${field} }}`; + const token = `{{ steps.${id}.summary }}`; setSetting(key, current ? `${current.trimEnd()} ${token}` : token); } @@ -196,10 +196,7 @@ const ON_FAILURE = [{ value: "", label: "Park the task" }, { value: "continue", />
Insert - +