uimaxxer

Run timeline

An agent run you can scrub. Drag the playhead and its tool calls re-render live: rows appear, stream and land going forward, fold away going back, with the step and the spend in step.

npx shadcn@latest add @uimaxxer/run-timeline
Pro
PasskeysRun #482

Run #482

Read billing/invoice.ts and 3 callers

Step 0 of 10

$0.00

2:03 of 4:12

No tool calls yet

Usage

import { RunTimeline } from "@/components/ui/run-timeline"

<RunTimeline events={run.events} duration={run.seconds} />

Props

PropTypeDefaultWhat it does
eventsRunEvent[]{ at (seconds), kind: read | think | edit | run | ask, label, cost (cumulative $), files, tool }.
events[].tool{ name, args, result?, error?, running? }The call a step made. Its arguments stream over the first half of the step; it lands when the step ends.
rowsnumber3How many of the latest tool calls show under the bar.
durationnumberRun length in seconds.
defaultTimenumberWhere the playhead starts. Defaults to the end.
onTimeChange(t: number) => voidEvery frame while scrubbing or replaying.

Keyboard

← →
One second (Shift: ten)
[ ]
Previous or next step
Home / End
Start or end
Space
Replay or pause

Accessibility

  • role=slider with aria-valuetext that reads the time, the step and the spend.
  • The readout re-renders only when a second, a cent, the step or a streamed character changes, never per pointer event.
  • Each call under the bar is a Tool call button; open any landed call to read its arguments and result.
  • Under reduced motion a release stops dead and key jumps are instant.