Attempt Timeline
An agent task's attempts on the UI SDK Timeline: kind, status, times, configured and executed route with earlier routes in a popover, context, repairs, checks, commits, blockers, thread links agents can press, usage per attempt and older attempts behind a toggle.
Example
A1 · Implementation
FailedStarted Ended
pizai/glm-5.3thinking: high
Fresh context- testsFailed3 failing
Blocked: quotaProvider quota exhaustedRetry at
Open thread| Metric | Value |
|---|---|
| Input tokens | 42K |
| Output tokens | 8K |
| Cache read | 25.2K |
| Cache write | unknown |
| Reasoning tokens | 3.2K |
| Duration | 14s |
| Active time | unknown |
| Cost | $0.31 (estimated) |
A2 · Implementation
ActiveStarted
pizai/glm-5.3thinking: highran ascodexopenai-codex/gpt-6.1-terra-preview-2026-11reasoningEffort: high
Forked context from Index docs, first tryRepairs A1Fallback after quota| Metric | Value |
|---|---|
| Input tokens | 18K |
| Output tokens | 2.5K |
| Cache read | 10.8K |
| Cache write | unknown |
| Reasoning tokens | 1K |
| Duration | 6s |
| Active time | unknown |
| Cost | $0.12 (estimated) |
attempt-timeline-demo.tsxCopy code
Installation
Copy code
npm packages
lucide-reactUsage
ImportCopy code
API reference
AttemptTimeline
Takes Omit<ComponentProps<typeof Timeline>, "children"> &.
AttemptEvent
| Prop | Type | Default |
|---|---|---|
attemptrequired | AttemptView | – |
Also takes AttemptEventOptions.
AttemptThread
| Prop | Type | Default |
|---|---|---|
threadrequired | ThreadRef | – |
labelrequired | (name: string) => string | – |
textrequiredVisible text of the button. | string | – |
inlineInside a sentence: a text link with the thread's title instead of a button. | boolean | false |
Also takes ThreadRendering.
AttemptRoute
Takes AttemptRouteProps.
AttemptChecks
| Prop | Type | Default |
|---|---|---|
checksrequired | NonNullable<AttemptView["checks"]> | – |
labelsrequired | AttemptTimelineLabels | – |
AttemptCommits
| Prop | Type | Default |
|---|---|---|
commitsrequired | string[] | – |
labelsrequired | AttemptTimelineLabels | – |
AttemptBlocker
Takes AttemptBlockerProps.
Other exports
defaultFormatAttemptIddefaultRenderAgentattemptTimelineLabelsattemptTimelineLabelsEstype AttemptTimelinePropstype AttemptEventOptionstype AttemptRoutePropstype ThreadRenderingtype AttemptTimelineLabelstype CheckResultAccessibility
- A labelled UI SDK Timeline; times are <time> elements with the instant in their title.
Agent actions
Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.