Component libraryAgent run
Agent run
ProFollow an agent's steps, inspect details and handle cancellation or retry.
npx shadcn@latest add @tidal-pro/agent-runInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/agent-run.css, components/ui/status-badge.css, components/ui/progress.css, components/ui/collapsible-panel.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Consumer-owned status (queued, running, completed, failed, cancelled), title, headingLevel (h3 default, h2-h6 supported) and stable-id steps (pending, running, completed, failed, skipped). Optional description, elapsedText, statusNote, output children, emptyMessage, disabled (cancel/retry actions only; step inspection stays available) and announceUpdates (false by default). Steps with content compose native Collapsible panel; steps without content stay plain noninteractive rows. The active step exposes aria-current=step. Progress counts completed and skipped steps without claiming elapsed time or work estimates. Cancel appears for queued/running and Retry for failed/cancelled only when callbacks exist. Native action handlers run first and can prevent higher callbacks; disabled and aria-disabled normalize; action types remain button. Only an actually focused action being removed or disabled recovers focus to the persistent note; declined actions do not retain stale focus intent. Consumers own execution, transport, logs, artifacts, status consistency and side effects.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.