feat(terminal): expandable child workflow blocks in console#3306
feat(terminal): expandable child workflow blocks in console#3306waleedlatif1 merged 9 commits intostagingfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds expandable child workflow blocks to the terminal console, bringing workflow blocks to feature parity with existing loop/parallel subflow rendering. The implementation spans 18 files across four layers:
The Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant UI as Terminal UI
participant Store as ConsoleStore
participant SSE as SSE Stream
participant Exec as DAGExecutor
participant BE as BlockExecutor
participant WH as WorkflowBlockHandler
participant Child as Child Executor
Exec->>BE: execute(workflowBlockNode)
BE->>WH: executeWithNode(ctx, block, inputs, nodeMetadata)
WH->>WH: instanceId = crypto.randomUUID()
WH->>SSE: onChildWorkflowInstanceReady(blockId, instanceId)
SSE->>UI: block:childWorkflowStarted event
UI->>Store: updateConsole(blockId, {childWorkflowInstanceId})
WH->>Child: new Executor({childWorkflowContext: {parentBlockId: instanceId, depth}})
Child->>BE: execute(childBlock)
BE->>SSE: onBlockStart(childBlockId, ..., childWorkflowContext)
SSE->>UI: block:started {childWorkflowBlockId: instanceId}
UI->>Store: addConsole({childWorkflowBlockId: instanceId})
BE->>SSE: onBlockComplete(childBlockId, ..., childWorkflowContext)
SSE->>UI: block:completed {childWorkflowBlockId: instanceId}
UI->>Store: updateConsole(childBlockId, ...)
Note over UI,Store: buildEntryTree groups children by childWorkflowBlockId → instanceId
Store->>UI: Re-render with WorkflowNodeRow accordion
Last reviewed commit: f4f293a |
…de running/canceled state
|
@cursor review |
|
@greptile |
apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/terminal/utils.ts
Show resolved
Hide resolved
|
@greptile |
|
@cursor review |
…ionContext with BlockExecutor
|
@cursor review |
|
@cursor review |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Summary
Type of Change
Testing
Tested manually
Checklist