---
description: Exxat DS — Ask Leo thread primitives, sidebar, and escalation from command palette.
alwaysApply: false
globs: 
  - components/ask-leo-*.tsx
  - components/leo-*.tsx
  - lib/use-leo-thread.ts
tags: [shell, ai]
seeAlso:
  - docs/exxat-ds/ask-leo-pattern.md
---

# Exxat DS — Ask Leo

## Intent

Ask Leo is the **long-form AI** surface (`AskLeoSidebar`, `⌘⌥K`). Short search stays in **`CommandMenu`** (`⌘K`).

## MUST

1. Compose transcripts with **`Message`**, **`Bubble`**, **`Marker`**, **`MessageScroller`** — product wrapper **`LeoThreadMessages`**.
2. User / assistant / thinking variants per **`ask-leo-pattern.md`**.
3. No toast for streaming status — `Marker` + inline chrome only (`exxat-no-toast.mdc`).

## MUST NOT

- Fork per-surface transcript markup or manual scroll-stick logic.
- Use Lucide icons on Leo thread UI (`exxat-fontawesome-icons.mdc`).

## See also

- `exxat-command-menu.mdc`, `exxat-utility-bar.mdc`
- `exxat-leo-icon-motion.mdc` — animated Leo mark on buttons / FABs / floating actions
- `exxat-form-fields.mdc` — host forms beside Leo Assist Bar use DS Field / Input / Textarea
- `exxat-chart-leo-spotting` skill (plot insights only)

## Chat bubble and Leo generation

- **User bubble is washed-out grey.** `Bubble` default variant fills with `muted` mixed 70% with `background`, ink `foreground`. It is not the dark primary fill. Assistant stays `ghost`.
- **Leo creating data or components** (rows, cards, charts, sections) follows `exxat-leo-generation`: inited, thinking, completed, icon-only Stop, parent and child. Do not build a chat-style spinner for generated surfaces.
