feat(logs): add workflow trigger type for sub-workflow executions#3554
feat(logs): add workflow trigger type for sub-workflow executions#3554waleedlatif1 merged 2 commits intofeat/mothership-copilotfrom
Conversation
PR SummaryLow Risk Overview Updates logs UI/filtering to recognize Written by Cursor Bugbot for commit 79b935b. Configure here. |
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Greptile SummaryThis PR adds a dedicated Key findings:
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant PW as Parent Workflow
participant WET as workflowExecutorTool
participant API as /api/workflows/[id]/execute
participant EC as execution-core.ts
participant Log as LoggingSession
PW->>WET: execute sub-workflow block
WET->>API: POST { triggerType: "workflow" }
API->>API: Zod validate (CORE_TRIGGER_TYPES includes "workflow" ✅)
API->>EC: executeWorkflowCore({ triggerType: "workflow" })
EC->>EC: executionKind = "manual" (falls through, not "api")
EC->>EC: findStartBlock(blocks, "manual") — broader block match
EC->>Log: log with triggerType="workflow"
Log-->>PW: logs show "Workflow" badge (blue-secondary) ✅
|
Summary
workflowtrigger type so sub-workflow executions show "Workflow" instead of "API" in logstriggerType: 'workflow'Type of Change
Testing
Tested manually
Checklist