This commit is contained in:
Siddharth Ganesan
2026-01-27 20:08:27 -08:00
parent a9f271cdb0
commit 0d6b485d40
3 changed files with 6 additions and 7 deletions

View File

@@ -123,8 +123,9 @@ export const ActionBar = memo(
return sourceIncomingEdges.length === 0
}
// Non-trigger blocks need a snapshot to exist (so upstream outputs are available)
const dependenciesSatisfied =
isTriggerBlock || incomingEdges.every((edge) => isSourceSatisfied(edge.source))
isTriggerBlock || (snapshot && incomingEdges.every((edge) => isSourceSatisfied(edge.source)))
const canRunFromBlock =
dependenciesSatisfied && !isNoteBlock && !isInsideSubflow && !isExecuting

View File

@@ -1456,11 +1456,8 @@ export function useWorkflowExecution() {
return sourceIncomingEdges.length === 0
}
if (
!snapshot &&
!isTriggerBlock &&
!incomingEdges.every((edge) => isSourceSatisfied(edge.source))
) {
// Non-trigger blocks need a snapshot to exist (so upstream outputs are available)
if (!snapshot && !isTriggerBlock) {
logger.error('No execution snapshot available for run-from-block', { workflowId, blockId })
return
}

View File

@@ -1137,8 +1137,9 @@ const WorkflowContent = React.memo(() => {
return sourceIncomingEdges.length === 0
}
// Non-trigger blocks need a snapshot to exist (so upstream outputs are available)
const dependenciesSatisfied =
isTriggerBlock || incomingEdges.every((edge) => isSourceSatisfied(edge.source))
isTriggerBlock || (snapshot && incomingEdges.every((edge) => isSourceSatisfied(edge.source)))
const isNoteBlock = block.type === 'note'
const isInsideSubflow =
block.parentId && (block.parentType === 'loop' || block.parentType === 'parallel')