mirror of
https://github.com/open-gitagent/langship.sh.git
synced 2026-08-03 07:21:04 +02:00
feat: enhance agent execution flow with multi-execution view and improved error handling
- Added multi-execution view to display multiple execution statuses. - Improved error handling in agent triggering to surface failures. - Updated execution view to support live updates via SSE and added a log panel for node logs. - Enhanced pipeline canvas to display node statuses during execution. - Introduced new fields in the build node form for Docker configurations. - Updated API to support execution streaming and enhanced node catalog descriptions.
This commit is contained in:
@@ -47,6 +47,9 @@ interface PipelineCanvasProps {
|
||||
* the legacy fixed height. Use when the page wraps the canvas in its own
|
||||
* layout (e.g. flow editor pages). */
|
||||
fullBleed?: boolean;
|
||||
/** Per-node run status overlay. Keys are node names. Drives the colored
|
||||
* ring + status icon on each FlowNode. Used by the live execution view. */
|
||||
nodeStatuses?: Record<string, "pending" | "running" | "success" | "failed" | "paused">;
|
||||
}
|
||||
|
||||
// Public component: keys on pipelineId so a fresh inner instance mounts when
|
||||
@@ -65,6 +68,7 @@ function CanvasInner({
|
||||
onChange,
|
||||
readOnly,
|
||||
fullBleed,
|
||||
nodeStatuses,
|
||||
}: PipelineCanvasProps) {
|
||||
// Compute initial RF state once. The canvas owns it from here on.
|
||||
const initial = useMemo(() => toReactFlow(initialValue ?? null), []);
|
||||
@@ -229,7 +233,17 @@ function CanvasInner({
|
||||
onDrop={onDrop}
|
||||
>
|
||||
<ReactFlow
|
||||
nodes={nodes}
|
||||
nodes={
|
||||
nodeStatuses
|
||||
? nodes.map((n) => ({
|
||||
...n,
|
||||
data: {
|
||||
...n.data,
|
||||
runStatus: nodeStatuses[n.id] ?? "pending",
|
||||
},
|
||||
}))
|
||||
: nodes
|
||||
}
|
||||
edges={edges}
|
||||
onNodesChange={onNodesChange}
|
||||
onEdgesChange={onEdgesChange}
|
||||
|
||||
Reference in New Issue
Block a user