Component registry
Session
One surface for every agent: your sessions in a drawer (a column on a computer), the thread as a harness draws it, the plan above the box, and one box with one context chip.
Live web demo
Web source: openvibe-shared/ov-session · OpenVibeSession.mount(host, { base, token, me, sibling, open, agent, works, actor, actions, starters, onEvent }) → { open, blank, start, prefill, drawer, list, refresh, destroy }
Anatomy
- sessionsa drawer on a phone, a column on a computer: search, needs you, working, today, earlier
- headthe agent's face, the title, live status with time and cost, the files it changed, ⋯
- threadyour words, the agent's words streaming, thinking folded, tools grouped into one line, changed files as a card that opens the diff, approvals, helpers
- planthe agent's live checklist above the box
- boxthe composer, one context chip (agent, model, runs on, works on), / commands and @ agents
Props
base- url
token- function
open- ref?
agent- id?
works- choice[]
actor- boolean
actions- { base }
starters- [glyph, words][]
onEvent- function
Behavior and accessibility
- States
- new · working · waiting · done · failed · drawer
- Tokens
- color.bg.raised · color.accent · color.text.muted · size.tap
- Keyboard
- Keeps the focused control in view
- Outside tap
- No dismissal
- Scroll lock
- Page remains scrollable
- Reduced motion
- Remove movement; keep the state change.
- Accessibility
- Session. The thread is a live log; each tool block, the plan and the diff are buttons; Escape closes the drawer and sheets. At least 44 × 44 dp or pt for every touch action.
Android · Jetpack Compose
Sessions in a ModalNavigationDrawer (a PermanentNavigationDrawer on a tablet); the thread a LazyColumn with expandable tool blocks; the diff a ModalBottomSheet; the composer on the bottom bar with one AssistChip for how it runs.
Material 3 container: ModalNavigationDrawer + LazyColumn
iOS · SwiftUI
A NavigationSplitView: sessions in the sidebar, the thread in the detail with DisclosureGroups for tools; the diff a sheet; the composer above the keyboard with one Menu chip.
Example definition
{
"schema": "design.component@1",
"name": "session",
"props": {
"agent": "auto"
}
}