improvement(snapshot): exclude sentinel in client side activation detection#3432
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
PR SummaryLow Risk Overview
Written by Cursor Bugbot for commit 0a06807. Configure here. |
Greptile SummaryThis PR performs a focused cleanup of the client-side edge activation utility ( Key changes:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A["markOutgoingEdgesFromOutput(blockId, output, ...)"] --> B["Filter edges by source === blockId"]
B --> C["For each outgoing edge"]
C --> D["shouldActivateEdgeClient(handle, output)"]
D --> E{handle?}
E -- "null / undefined" --> F["return true"]
E -- "condition-*" --> G["output.selectedOption === conditionValue?"]
E -- "router-*" --> H["output.selectedRoute === routeId?"]
E -- "'error'" --> I["return !!output.error"]
E -- "'source'" --> J["return !output.error"]
E -- "loop/parallel or default" --> K["return true (default)"]
F --> L{shouldActivate?}
G --> L
H --> L
I --> L
J --> L
K --> L
L -- "false" --> M["Skip — edge not activated"]
L -- "true" --> N["Compute status"]
N --> O{"handle === 'error'?"}
O -- "yes" --> P["status = 'error'"]
O -- "no" --> Q{"output?.error?"}
Q -- "yes" --> R["status = 'error'"]
Q -- "no" --> S["status = 'success'"]
P --> T["setEdgeRunStatus(...)"]
R --> T
S --> T
Last reviewed commit: 0a06807 |
Summary
Exclude sentinel handling [code cleanup]
Type of Change
Testing
Tested manually
Checklist