Agent status
What an AI agent is doing right now, in one line: "Searching the workspace · refund policy, 3 of 7, 14s, Stop". A pill, a row, or inline in a sentence.

No script. The server renders the status and the label; a re-render changes them, and a screen reader hears the new label once.
Use it
<x-ds::agent-status label="Searching the workspace" detail="refund policy" :elapsed="$run->elapsed" :steps="[3, 7]"
:cancelHref="route('runs.stop', $run)" />
As a row, or in a sentence:
<x-ds::agent-status variant="row" status="waiting" label="Waiting for your approval" detail="Send a refund confirmation" />
<p>Inbox: <x-ds::agent-status variant="inline" label="Drafting a reply" /></p>
Stop as a button or a form, in place of the link:
<x-ds::agent-status label="Searching">
<x-slot:cancel><x-ds::button size="sm" variant="ghost" icon="stop" wire:click="stop">Stop</x-ds::button></x-slot:cancel>
</x-ds::agent-status>
Props
| Prop | Type | Default | What it does |
|---|---|---|---|
status | string | running | pending running done failed cancelled waiting. See the status set. |
label | string | the status's word | What it is doing, in a few words. Shimmers while running. |
detail | string | — | A quieter second part: the file, the query, the reason it stopped. |
elapsed | number | — | Seconds so far, as the server counted them: "14s", "1m 4s". Shown, never announced. |
variant | pill row inline | pill | Its shape. |
tone | neutral accent success warning danger | the status's | The mark's colour, in place of the status's own. |
cancelHref | string | — | A Stop link, shown while it is still going (pending, running or waiting). |
cancelLabel | string | Stop | The Stop link's words. |
steps | string or [current, total] | — | How far along: "3 of 7". |
stepsText | string | :current of :total | The words for an array steps. |
statusText | array | — | [status => words], replacing any of the English words below. |
| Slot | What it does |
|---|---|
cancel | A button or a form in place of the Stop link. Shown only while it is still going. |
The status set
Every agent component (reasoning, this one, tool call, agent plan, agent timeline) takes the same six statuses, drawn the same way:
| Status | Means | Mark | Words |
|---|---|---|---|
pending | not started | outlined ellipsis, grey | Pending |
running | under way | a spinner, accent | In progress |
done | finished | a filled tick, green | Done |
failed | finished badly | a filled ✕, red | Failed |
cancelled | stopped before the end | an outlined ⊘, grey | Cancelled |
waiting | needs the reader: an approval, an answer | a filled hand, amber | Waiting for you |
The spellings frameworks use are taken too (in_progress, completed,
succeeded, error, canceled, requires_action…), and a backed enum.
Anything else draws as pending. The status is always written, visibly or for
screen readers, never left to colour.
A mark that changes on a re-render grows in, motion-safe, from CSS alone.
Accessibility
- The words are a polite, atomic status region: a new label, detail or steps is read once, whole.
- The elapsed time sits outside it and is hidden from assistive technology, with a text form for reading: a re-render that only moves the clock says nothing.
- Stop is outside the region too. Tab reaches it; it draws the focus ring.
Don't
- Don't render it only once the agent starts. Render it from the start,
pending, so the status region exists before its words change. - Don't tick the elapsed time every second from the server just to move the number. It is fine as it is re-rendered for other reasons; it does not announce either way.
From the package repo: edit this page on GitHub.