fix(condition): execution with subflow sentinels follow-on, snapshot highlighting, duplicate terminal logs #3429
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryMedium Risk Overview Updates the Reworks execution-path highlighting: the client now marks outgoing edges on block completion/error based on block output (mirroring executor edge activation rules), and the preview graph uses captured block Ensures empty Written by Cursor Bugbot for commit 254cc4a. Configure here. |
Greptile SummaryThis PR fixes three related bugs in condition block execution involving subflow sentinels, duplicate terminal error logs, and inaccurate snapshot edge highlighting. The changes span the executor core, orchestrators, client-side execution hooks, and the preview workflow component. Key changes:
Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant C as ConditionHandler
participant EM as EdgeManager
participant Eng as ExecutionEngine
participant Client as Client Hook
Note over C: Condition evaluates true, no outgoing edge
C->>C: filterSourceOutput (strips error + _pauseMetadata)
C->>C: evaluateConditions() → selectedCondition set, selectedConnection null
C-->>Eng: return { selectedOption: conditionId, conditionResult: true, selectedPath: null }
Note over EM: processOutgoingEdges called
EM->>EM: shouldActivateEdge per outgoing edge
EM->>EM: isUnroutedDeadEnd = (activatedTargets==0) AND !selectedOption AND !selectedRoute
Note over EM: selectedOption IS set → isUnroutedDeadEnd = false
EM->>EM: cascadeTargets NOT queued (sentinel suppressed)
EM-->>Eng: { readyNodes: [], activatedEdges: [] }
Note over Client: Block completes
Client->>Client: markOutgoingEdges(blockId, output)
Client->>Client: shouldActivateEdgeClient per outgoing UI edge
Client-->>Client: setEdgeRunStatus for matching edges only
Last reviewed commit: 270cba4 |
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/utils/workflow-execution-utils.ts
Show resolved
Hide resolved
|
bugbot run |
Summary
Type of Change
Testing
Tested manually
Checklist