Skip to content

SessionTimeline

What one agent session did, from top to bottom: started, the plan, each tool call, waiting for a person and the end with its duration. It takes the agent_session.* events of core as they are (started, activity, finished) and sorts them by time; labels.activities names each activity slug and activityStates picks its state. An open session shows a running clock on its last event.

  • SessionTimeline
Status
Stable
axe:
Light, Dark, High contrast
Unit tests:
yes
Keyboard pass:
not yet
Screen reader pass:
not yet
Used in:
no app yet

PreviewLink to the section Preview

Live in all three themes. Everything here is interactive.

Light theme, SessionTimeline

  1. Started
  2. Plan written
    Three steps: read the schema, write the migration, run the tests.
  3. Tool call
    npm test
  4. Waiting for you
    Which of the two migrations should stay?
  5. Tool call
    git commit
  6. Finished
    Ran for: 9:12
  1. Started
  2. Plan written
  3. Tool call
    npm test
  4. Tool call
    git diff
    Running for: 1:35

Dark theme, SessionTimeline

  1. Started
  2. Plan written
    Three steps: read the schema, write the migration, run the tests.
  3. Tool call
    npm test
  4. Waiting for you
    Which of the two migrations should stay?
  5. Tool call
    git commit
  6. Finished
    Ran for: 9:12
  1. Started
  2. Plan written
  3. Tool call
    npm test
  4. Tool call
    git diff
    Running for: 1:35

High contrast theme, SessionTimeline

  1. Started
  2. Plan written
    Three steps: read the schema, write the migration, run the tests.
  3. Tool call
    npm test
  4. Waiting for you
    Which of the two migrations should stay?
  5. Tool call
    git commit
  6. Finished
    Ran for: 9:12
  1. Started
  2. Plan written
  3. Tool call
    npm test
  4. Tool call
    git diff
    Running for: 1:35

UsageLink to the section Usage

tsx
import { SessionTimeline } from '@skribly/ui/agents'
tsx
<SessionTimeline events={events} labels={labels} />

Every label is a prop, so the app passes its own words in its own language. See no built-in text.

AccessibilityLink to the section Accessibility

  • An ordered list named by labels.list, so a screen reader announces the number of events and the position of each.
  • Each event is a SessionStateChip, a word with its own glyph, never colour alone, and a time element with the machine-readable moment, formatted in the locale of the person.
  • The duration and the running clock are timers with their label.
  • Nothing in it takes focus.

This demo runs through axe in all three themes on every test run. See what the tests check.

Search this site

Arrows move through the results, Enter opens one, Esc closes. Ctrl K /