Skip to content
AgentsRun statusMenu

Run status

The state of a whole agent run for a header or thread row: idle, running, waiting for input, done, failed or stopped, with elapsed time.

Idle, running, waiting for input, done, failed and stopped.

Installation

$ pnpm dlx shadcn@latest add https://chatcn.dev/r/run-status.json

Usage

tsx
import { RunStatus } from "@/components/ui/chatcn/run-status"

<RunStatus status={awaitingApproval ? "waiting" : "running"} startedAt={run.startedAt} />
<RunStatus status="done" durationMs={run.durationMs} variant="plain" />

Props

PropTypeNotes
status"idle" | "running" | "waiting" | "done" | "failed" | "stopped"
labelReactNodeReplaces the default label
startedAt, durationMsnumberMeasured automatically when omitted
showElapsedbooleanDefault true
variant"badge" | "plain"Plain for surfaces that already have a fill

Accessibility

  • The label is a polite live region, so Waiting for input and Failed are announced. The ticking time is not.
  • Every status has an icon and a word. Failed is red text next to a red cross, never color alone.

Motion

  • The glyph crossfades over 150 ms when the status changes, never on first paint.