agents.contract defines five components that are not screens. Four of them are rows of the conversation transcript and one is the failure line used across the Agents tab. This page maps them. The rest of the Agents UI is written inline in the screen components and is documented under Inline parts.
The components
Component | What it is | Used by | Page |
|---|---|---|---|
| A red failure line with "Retry" | ||
| A grey card for one tool call, expandable to input and output | ||
| A two line link to a child run's conversation |
| |
| A full width disclosure row for trigger context and structured parts | ||
| A grey card for one run: title, status badge, plan steps, children, actions |
flowchart TD
session["AgentSessionScreen"] --> tool["AgentToolRow"]
session --> context["AgentContextRow"]
session --> run["AgentRunCard"]
session --> error["AgentError"]
run --> child["AgentChildRow"]
run --> badge["Badge"]
list["AgentsScreen"] --> error
detail["AgentDetailScreen"] --> errorWhat they share
Two surfaces. Tool rows and run cards are cards: -exact-secondary-background, radius 10, padding 12, margin 4 by 16. Context rows and the error line are flat rows with 16 point side padding. See Cards and panels and Spacing, radii and sizes.
Small type. Titles are -exact-subheadline, supporting text -exact-footnote, metadata -exact-caption1, so work rows stay quieter than the chat bubbles, which use the body size (Typography).
44 point targets. Every tappable line inside them has min-height=44, start aligned text and a full width hit area (Accessibility).
Disclosure in place. Tool and context rows keep their own expanded state and report it with aria-expanded.
Only platform colours, plus the badge. The only tokens used are brand.fill and danger.fill, on the run card's Badge (Color and tokens).
Inline parts of the Agents tab
Not named components in code, but recurring: Agent and session rows, Chat messages and the streaming reply, Agents composer, Provider and model rows.
Differences from DESIGN.md
DESIGN.md's component table lists only shared components and does not name any of these five. It describes them in prose: "tool calls as compact disclosure rows (symbol + tool name + status), run cards as a secondary card with status badge (Badge)". Both descriptions match what was built. AgentError plays the role DESIGN.md gives to StatusLine, in red; see StatusLine.
Related
Parent: Component toolkit. Screens: Agents tab screens, Session timeline.
Implementation: Agents: screens and components, Agents: chat rows and run cards.
Source: agents.contract lines 139 to 468.
In this section
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime