07 Appkit Chat History

Add persistent chat history to an AppKit application using the Lakebase plugin and the Serving plugin (both AppKit-native, no Vercel AI SDK). Covers database schema, session auth middleware, a server-side proxy route that streams from `AppKit.serving("agent").asUser(req).stream()` while persisting assistant messages and capturing MLflow `trace_id`, the history API routes, a history sidebar, and ephemeral-mode fallback. Use when asked to persist conversations, add chat history, save messages, or build a conversation sidebar. Triggers on "chat history", "save conversations", "persistent chat", "conversation sidebar", "message storage", "save messages", "ephemeral chat".

databricks-solutions 3524c16 3 files · 56.8 KB Updated

File contents

databricks-solutions/vibe-coding-workshop-template/tree/main/apps_lakebase/skills/07-appkit-chat-history commit 3524c16669

Frequently asked questions

npx skillmds@latest add databricks-solutions/07-appkit-chat-history