Skip to content

SessionTail

One line showing only the newest entry of a captain session: the latest assistant text or the latest tool call, with a spinner while following.

Source

import { SessionTail } from "@flanksource/clicky-ui/ai";
Latest Tool Call · Open in Storybook
Latest Bash Command · Open in Storybook
Latest Text Clamped · Open in Storybook

The props table documents the component-specific surface. Standard DOM attributes inherited from React, such as className, event handlers, and accessibility attributes, may also be accepted when the component’s prop type extends a native element.

Prop Type Default Description
className string — —
emptyLabel string — Shown until the session has a text message or tool call.
follow boolean true Follow the live stream (default true). When false the session is read once and no spinner is shown.
src* string — Captain session URL, e.g. `/api/captain/sessions/{id}`.