fix: only show amber on containers where gate blocked all children
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m12s
CI / docker (push) Successful in 1m6s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 49s

A container is only gated (amber) when filterMatched=false or
duplicateMessage=true AND no descendants were executed. Containers
with executed children (split, choice, idempotent that passed) now
correctly show green/red based on their execution status.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-04-01 17:32:39 +02:00
parent b44ffd08be
commit 40ce4a57b4

View File

@@ -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'