AgentError is a named component that shows one failure and one way out. It draws nothing when there is no message, so screens can place it unconditionally.
Kind: named component.
Defined in agents.contract lines 139 to 152.
Used by
Where | How |
|---|---|
Agents list ( | In its own section when the server is offline or refuses the request |
Agent detail ( | In the first section, for a failed read or a failed command such as "New conversation" |
Agent session ( | As the failure line near the end of the transcript, for a failed send, stop, cancel or a dropped run stream. See Session timeline |
No other component uses it.
Props
Prop | Type | Effect |
|---|---|---|
| string | The text to show. An empty string renders nothing |
| action | What "Retry" does. All three screens pass the same action: reconnect and reload everything on the Agents tab |
Anatomy
A row with 16 points of padding and an 8 point gap, vertically centred:
Type and colour roles are described in Typography and Color and tokens.
Variants and states
There are two states: hidden (no message) and shown. There is no loading variant; while a retry runs the screen shows its own loading line.
Inside an inset grouped list the row sits in a white card. In the transcript it sits directly on the background. No iOS screenshot in the set shows it; the red text of the related turn error row is visible in agents3/verify-ios-final/ios-t20-retrysession-recovers-the.png on Session timeline.
Rules for use
Use it for failures of the agent server: reads, commands and connections on the Agents tab.
Give it the server's own message. The messages are sentences, for example "Run updates disconnected. Reconnect to refresh."
Do not use it for validation in sheets. Form errors on the New agent sheet, Providers sheet and Agent server sheet are a red text row with no button, because the fix is to edit the field.
Outside the Agents tab use StatusLine, which has the same shape in secondary colour.
Why it looks this way
It is Honest state in its smallest form: say what failed, offer the retry next to it. It differs from the shared StatusLine in colour only: -exact-system-red instead of -exact-secondary-label. Inferred reason: on this tab a failure usually blocks the whole conversation, so it is given the system's error colour, while a failed document load elsewhere is quieter. The two were written by different packages during the build, which also explains why both exist (inferred from the ownership comments in the contracts). See Loading, failure and empty states.
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-01 See my agents: The red failure line with Retry when the server is offline or refuses
US-AGENT-05 Chat with an agent: The failure line after a failed send
US-AGENT-07 Steer a run: The failure line when a command is refused
US-AGENT-08 Return to earlier conversations: The failure line with Retry
US-AGENT-09 Stay connected to a live conversation: The red line with Retry
US-APP-05 Always know what is happening: The red failure line with Retry used by Agents
Related
Parent: Agents components.
Siblings: AgentRunCard, AgentToolRow.
Implementation: Agents: screens and components, State, refresh and stale-reply patterns.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime