Task Status
TaskStatusPill, AttemptStatusPill and ContextModePill: StatusPill tones and overridable labels for agent task, attempt and context mode values, with the source thread for reuse and fork.
Example
ProposedTo doWorkingIn reviewDoneBlocked
ActiveSucceededForked context
task-status-demo.tsxCopy code
Installation
Copy code
Usage
ImportCopy code
API reference
TaskStatusPill
| Prop | Type | Default |
|---|---|---|
statusrequired | Status | – |
labels | Partial<Record<Status, string>> | – |
Also takes StatusPillProps except tone, children.
AttemptStatusPill
| Prop | Type | Default |
|---|---|---|
statusrequired | Status | – |
labels | Partial<Record<Status, string>> | – |
Also takes StatusPillProps except tone, children.
ContextModePill
| Prop | Type | Default |
|---|---|---|
moderequired | ContextMode | – |
sourceThreadShown for "reuse" and "fork". | ThreadRef | – |
renderThreadLink | (thread: ThreadRef) => ReactNode | – |
labels | Partial<ContextModeLabels> | – |
Also takes StatusPillProps except tone, children.
TaskStatusIcon
| Prop | Type | Default |
|---|---|---|
statusrequired | TaskStatus | – |
labelNames the icon when no status text is beside it; without it, it is decorative. | string | – |
toneOverrides the status's tone, as a board's `columnTones` does. | Tone | – |
Also takes <svg> attributes except children.
Other exports
attemptStatusLabelsattemptStatusLabelsEsattemptStatusTonescontextModeLabelscontextModeLabelsEscontextModeTonestaskStatusLabelstaskStatusAccentTonestaskStatusLabelsEstaskStatusTonestype ContextModeLabelstype ContextModePillPropstype TaskStatusIconPropsAccessibility
- Each status maps to a Tone and a word, so it never rests on colour.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.