Back to components

AI Interfaces

AI Session Replay

A debugging timeline for replaying prompt, retrieval, tool, and streaming events from a recorded run.

replaydebuggingtimeline

Installation

Copy and paste the code into your project.

Accessibility notes

Events use ordered time semantics, replay progress is exposed numerically, and the play control has a specific label.

Session replay

Support answer · Run 1842

4.8s total
  1. Prompt submitted

  2. Sources retrieved

  3. Tool called

  4. Response streamed

Preview accent

TypeScript
const events = [{ time: "00:00", label: "Prompt submitted" }, { time: "00:01", label: "Sources retrieved" }, { time: "00:02", label: "Tool called" }, { time: "00:04", label: "Response streamed" }];

export function AiSessionReplay() {
  return <section className="w-full max-w-md rounded-xl border border-white/12 bg-[#0b0f14]/92 p-4 shadow-2xl">
    <header><p className="text-xs font-semibold uppercase tracking-[0.18em] text-[#a78bfa]">Session replay</p><h3 className="mt-1 text-base font-bold text-white">Support answer · Run 1842</h3></header>
    <ol className="mt-4 grid grid-cols-4 gap-2">{events.map((event) => <li key={event.label} className="rounded-lg border border-white/9 p-2.5"><time className="text-[0.6rem] text-slate-500">{event.time}</time><p className="mt-2 text-[0.65rem] text-slate-200">{event.label}</p></li>)}</ol>
    <div className="mt-4 h-1.5 rounded-full bg-white/[0.06]" role="progressbar" aria-label="Replay position" aria-valuenow={55} aria-valuemin={0} aria-valuemax={100}><span className="block h-full w-[55%] rounded-full bg-[#40E0D0]" /></div>
  </section>;
}
Usage
<AiSessionReplay />

Related components

Agent activity

Research assistant

Live
  1. 1

    Searched knowledge base

    12 sources

  2. 2

    Compared candidate answers

    3 drafts

  3. 3

    Prepared final response

    Ready

AI Interfaces

Agent Activity Feed

Beginner

A compact live timeline for narrating agent progress, intermediate work, and completion state.

agentactivitytimeline
View component
  1. 1Parse brief
  2. 2Create variants
  3. 3Ship preview

AI Interfaces

Agent Step Timeline

Intermediate

A simple ordered timeline for AI agents, build systems, and workflow progress.

agenttimelinesteps
View component

Time travel

Workflow snapshots

Run #2481
  1. Before retrieval

    0 tools

  2. After research

    +3 sources

  3. Current state

    +1 draft

AI Interfaces

Workflow Time Travel

Advanced

A snapshot navigator for comparing and restoring earlier states of a long-running AI workflow.

workflowsnapshotsdebugging
View component