From 23b7ef009234378a46d794de0daa014e26fc7ca5 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Mon, 20 Apr 2026 07:07:54 +1200 Subject: [PATCH] fix: preserve audio handle type in GenerateAudioNode dynamic inputs The input schema mapping was forcing all non-image inputs to "text", misclassifying audio inputs. Now correctly maps audio type so handles get the right data-handletype, CSS dot color, and label color. Co-Authored-By: Claude Opus 4.6 --- src/components/nodes/GenerateAudioNode.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/nodes/GenerateAudioNode.tsx b/src/components/nodes/GenerateAudioNode.tsx index 2ba9ac0f..8829284a 100644 --- a/src/components/nodes/GenerateAudioNode.tsx +++ b/src/components/nodes/GenerateAudioNode.tsx @@ -229,8 +229,9 @@ export function GenerateAudioNode({ id, data, selected }: NodeProps { - const handleType = input.type === "image" ? "image" : "text"; + const handleType = input.type === "image" ? "image" : input.type === "audio" ? "audio" : "text"; const topPx = 50 + (index - nodeData.inputSchema!.length / 2 + 0.5) * 20; + const handleColor = handleType === "image" ? "var(--handle-color-image)" : handleType === "audio" ? "var(--handle-color-audio)" : "var(--handle-color-text)"; return ( - + ); });