Skip to content
↑↓ to navigate↵ to openesc to close

Menu

Agent Activity

Streaming Text

AgentActivity.vue
Thinking…

Reasoning Steps

AgentActivity.vue
Thinking…

Tool Calls

AgentActivity.vue
Running tools…

Mixed Activity

AgentActivity.vue
Working through it…

Agent Trace

AgentActivity.vue
Running the agent trace…

API Reference

items
ActivityItem[]

Chronological activity entries. Append or update items as events stream.

Default—
contentType?
ActivityContentType

Expected activity kind before the first streamed item arrives.

Default—
status?
"working" | "complete"

Current run phase. Active runs always stay expanded.

Defaultworking
duration?
number

Elapsed run time, in seconds. Used by the step-only summary.

Default0
v-model:open?
boolean

Controlled expanded state used after the run completes.

Defaultundefined
defaultOpen?
boolean

Initial expanded state used after the run completes.

Defaultfalse
collapseOnComplete?
boolean

Collapse the disclosure when status changes from working to complete.

Defaulttrue
activeLabel?
string

Optional label shown while the run is active.

Default—
summary?
string

Optional completed summary. Derived from the item types by default.

Default—
#renderWorkingStatus?
{ label: string, duration: number }

Replaces the live status line while the run is working.

Default—
#renderCompletedStatus?
{ summary: string, duration: number }

Replaces the summary inside the completed disclosure trigger.

Default—
maxHeight?
number

Maximum visible activity height before the stream begins gliding.

Default208
labels?
Labels

Override any built-in string. Pick `One`/`Other` keys by count; `{count}`, `{duration}`, `{seconds}` and `{minutes}` fill the matching messages.

Default—
class?
string
Default—
contentClassName?
string
Default—
@open-change?
(value: boolean) => void
Default—
#item?
{ item: ActivityItem }

Replaces the row renderer for one item.

Default—
#result-icon?
{ result: AgentSearchResult }
Default—
#trace-icon?
{ item: ActivityItem }
Default—

Install

Add it with your package manager, or copy the source manually.

Run it in a project set up with shadcn-vue. The source is copied to components/beui and its dependencies are added to your package.json. Read the shadcn-vue guide

bunx --bun shadcn-vue@latest add @beui-vue/agent-activity

Import the shared styles once in your application.

TSUsage
import AgentActivity from '@/components/beui/agents/AgentActivity.vue'
import '@/components/beui/styles.css'

Composition

Render progressive work as message content so it remains attached to the turn that produced it.

Message
└── MessageContent
    └── AgentActivity

Note: Agent Loading States covers the interval before the first structured event. Todo List separates durable planned work from transient events. Tool Result expands one completed execution into inspectable output.

How it works

Agent activity explains how work is progressing without exposing an unfiltered internal transcript. Events should arrive chronologically, remain easy to scan, and reduce to a useful summary when the run finishes.

Also on React Native. Steps, searches and tool calls in one live log.(opens in a new tab)

Updated