Make your computer a home for your AI partner. Avibe is the local-first Agent OS: Vibey, its built-in AI partner, works out of the box, and Claude Code, Codex & OpenCode run unchanged beside it — reach them from your browser, phone, or any chat app.
Python agentagent-osaiai-agentsai-partnerchatopsclaudeclaude-codecodexdevtoolsdiscord-botlark-botllmlocal-firstlong-term-memoryopencodeslack-botvibe-codingvibeywechat
import type { MessageSnippet } from '../../../context/ApiContext';
type SnippetProps = {
snippet: MessageSnippet;
};
// A single, truncated line of message text with the matched term highlighted.
// The server pre-splits the window into prefix / match / suffix, so this is
// purely presentational. The <mark> uses the design's gold highlight
// (bg-gold-soft + text-gold-ink, matching the `hl` frames in the Editor Search
// design) with a small radius, no underline. When ``match`` is empty (leading
// context only) we render just the prefix.
export const Snippet: React.FC<SnippetProps> = ({ snippet }) => {
const { prefix, match, suffix } = snippet;
return (
<span className="block truncate text-[12.5px] leading-relaxed text-foreground">
{prefix}
{match && (
<mark className="rounded-md bg-gold-soft px-1 font-medium text-gold-ink no-underline">
{match}
</mark>
)}
{match ? suffix : ''}
</span>
);
};