diff --git a/ui/src/components/ProcessDiagram/CompoundNode.tsx b/ui/src/components/ProcessDiagram/CompoundNode.tsx index 170f309c..549b1fae 100644 --- a/ui/src/components/ProcessDiagram/CompoundNode.tsx +++ b/ui/src/components/ProcessDiagram/CompoundNode.tsx @@ -68,10 +68,14 @@ export function CompoundNode({ // Execution overlay state for this compound const ownState = node.id ? executionOverlay?.get(node.id) : undefined; - const isGated = ownState?.filterMatched === false || ownState?.duplicateMessage === true; + const hasExecutedChild = ownState && hasExecutedDescendant(node, executionOverlay); const isCompleted = ownState?.status === 'COMPLETED'; const isFailed = ownState?.status === 'FAILED'; + // Gated = gate processor (filter/idempotent) blocked all children from executing + const isGated = ownState && !hasExecutedChild + && (ownState.filterMatched === false || ownState.duplicateMessage === true); + // Color priority: gated (amber) > failed (red) > completed (green) > default const effectiveColor = isGated ? 'var(--amber)' : isFailed ? '#C0392B'