Comprehensive set of chat UI enhancements for ML power users.
Search: debounced sidebar search filtering threads by title and first
user message content.
Feedback: thumbs up/down buttons on assistant messages, persisted to
IndexedDB for preference dataset collection (DPO/RLHF).
Export: per-thread Markdown, JSON, and JSONL export from the sidebar
dropdown. JSONL uses OpenAI chat format for direct SFT use.
Keyboard shortcuts: Cmd+K command palette (cmdk), Cmd+Shift+N new chat,
Cmd+Shift+C compare, Cmd+Shift+S settings, ? help dialog.
Session memory: persistent context entries injected into system prompt.
CRUD panel in settings with per-entry toggle and token budget indicator.
Prompt library: reusable prompt templates with {{variable}} substitution,
stored in IndexedDB with tag support.
Folders and pinning: collapsible folder groups in sidebar, pin threads
to top, move-to-folder via dropdown menu.
Artifacts panel: auto-detected code blocks (20+ lines), HTML, and SVG
open in a right-side panel with version history and inline editing.
Screen wake lock: prevents screen sleep during long inference runs.
DB changes: Dexie version 4 adds folders, prompts, memory tables and
searchText/folderId/pinned/feedback fields with migration backfill.