A run is one stretch of agent work, usually the answer to one message. AgentRunCard shows how that work is going and gives the person the controls for it.
Kind: named component.
Defined in agents.contract lines 418 to 468, with the duration helper on line 416.
Used by
Where | How |
|---|---|
Agent session ( | One per run. Finished runs sit in the history at the time they ended; live runs are pinned near the end. See Session timeline |
It uses AgentChildRow and the platform Badge.
Props
Prop | Type | Effect |
|---|---|---|
|
| Title, status and its label, plan steps, children, wait note, times, token count |
| number | The current time, so a live duration and a countdown can tick each second |
| action | Cancels this run |
| action | Answers or resumes a waiting run |
| action | Opens a child's or this run's conversation |
Anatomy
A card: margin 4 by 16, padding 12, radius 10, -exact-secondary-background, 8 point gaps (Cards and panels).
Header. symbol:sparkles in secondary colour, the title in -exact-subheadline (fallback "Agent run"), and a Badge with the status label. The badge wraps under the title when the title is long.
Plan steps, one line each: a status symbol in secondary colour, the step in -exact-footnote, and "Auto" in caption when the runtime completed the step by itself. Under a step, its child runs as AgentChildRow.
Other child runs, not tied to a step.
Note, in -exact-footnote, secondary colour: "Waking in 4m 12s" for a timer, otherwise the run's error or wait note.
Footer. Duration and tokens in -exact-caption1, for example "2s · 2.1k tokens", then the buttons.
Variants and states
Run status | Badge label | Badge tint |
|---|---|---|
queued | "Queued" |
|
claimed | "Starting" |
|
running | "Working" |
|
waiting | "Waiting" |
|
succeeded | "Done" |
|
canceled | "Canceled" |
|
failed | "Failed" |
|
Step status | Symbol |
|---|---|
done |
|
failed |
|
anything else |
|
When a run ends, a step that was running is shown as done and a step that never started stays a circle.
Wait reason | Note | Button |
|---|---|---|
A question | The question's label, or "Waiting for an answer." | "Answer" |
Budget pause | "Paused on its budget. Resume to continue." | "Resume" |
Children | "Waiting on 2 sub-sessions." | None |
Timer | "Waking in …" countdown (or "Waiting on a timer.") | None |
Buttons, right of the duration: "Answer" or "Resume" while waiting on the person; "Cancel" (destructive, red) while the run is live; "Open conversation" when the run is a child with its own session. Durations read "42s", "3m 5s" or "1h 12m".
Rules for use
One card per run. Do not use it for a single tool call; that is AgentToolRow.
The badge is the only filled colour on the card. Keep step and child statuses as symbols and words.
Keep the controls on the card. The contract places runs in the transcript "so they remain reachable with the keyboard open".
Why it looks this way
Same surface as a tool row, different symbol. Both are "work" cards. The sparkles symbol is also the Agents tab's icon, so the card reads as "the agent itself" while the gear reads as "a tool" (Symbols and icons, inferred).
A badge for the one status that matters. DESIGN.md asks for "run cards as a secondary card with status badge (Badge)". brand.fill and danger.fill exist in the tokens for this: surfaces under small white text with at least 4.5:1 contrast in both schemes (Color and tokens, Light and dark).
Only failure changes colour. "Canceled" stays brand coloured because the person chose it. Red is kept for what went wrong (inferred from the tint rule).
A plan is a checklist. Check marks and empty circles are read without a legend (Honest state: a canceled plan shows exactly how far it got).
Rough edge: "Waiting on 1 sub-sessions." is not singularised.
User stories
This page helps deliver these stories. Each story lists this page in its Trace, so the link holds in both directions (traceability).
US-AGENT-06 See what the agent is doing: Run cards: badge, plan steps, note, duration, tokens
US-AGENT-07 Steer a run: Answer, Resume and Cancel on the card; waiting notes
Related
Parent: Agents components. Siblings: AgentChildRow, AgentError.
Patterns: Buttons and actions. Type: Typography.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime