Skip to content

RunLifecycleRail

stable

Vertical rail rendering one AG-UI run as lifecycle phases: RunStarted, StepStarted/StepFinished segments, and a terminal cap (finished/interrupt/error). Supports one level of nested child runs (parentRunId concept). Composes the AgentTimeline track language with TaskStateBadge-consistent colors.

Orchestration/Storybook ↗
import { RunLifecycleRail } from "@nodus/design-system/patterns"
Loading demo…

Props

runIdrequired
Type stringDefault

Run identifier from the AG-UI RunStarted event.

stepsrequired
Type Array<{ name: string; status: 'started' | 'finished' | 'error'; startedAt?: string; finishedAt?: string }>Default

Steps observed so far, in event order.

terminal
Type 'finished' | 'interrupt' | 'error'Default

Terminal run outcome — omit while the run is still in flight.

startedAt
Type stringDefault

ISO timestamp of the RunStarted event.

childRuns
Type Array<{ runId: string; steps: RunStep[]; terminal?: 'finished' | 'interrupt' | 'error' }>Default

Nested child runs (one level, AG-UI parentRunId concept), rendered indented.

semantictypebordersurfacespace
Design Rationale

This component was designed to express:

Explore Related

Was this helpful?