Replace the two bespoke textarea composers (SpawnBox / ResumeBox) with the shared RichInput from the design system, so both share one input with all features combined: auto-grow textarea, localStorage draft, file attachments, prompt-shortcut toggles, project/service #-mention tags, history recall and reverse-search. - New lib/richComposer.tsx adapts app concepts to RichInput's GuidelineTag / RichFile vocabulary and rebuilds the exact prompt block format via the existing composePrompt (thread viewer still strips the attachments block). - SpawnBox keeps its app-level un-send lifecycle (optimistic You card, sync-and-redirect) around RichInput; resume gains file attachments and keeps its guidelines master switch (now in the toolbar). - Bump vendored @gabvdl/ui 0.3.0 -> 0.4.0 (adds RichInput + setFiles handle). - Add popover/destructive design tokens so RichInput's menus render. - Drop now-unused lib/useDraft, lib/tagMention and the shortcut chip helpers. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1.8 KiB
1.8 KiB