96ef5b8379710d72cab2237935bb801e07886be4
Both chat panels (per-recipe and the general cooking assistant) previously kept messages in component state only — closing the sheet or reloading the page lost everything. Both POST routes now persist question+answer pairs to a new chat_messages table (recipeId null for the general assistant), and both panels load their own history back on open. New GET /api/v1/ai/chat-history (scoped by recipeId, or scope=general for the homepage assistant, or neither to search across everything) backs a new search control in both panels' header — debounced, shows matched messages with date and (when searching across everything) which recipe they belonged to. Verified locally: asked a real question, closed and reopened the panel and confirmed the conversation reloaded, then searched a keyword from that conversation and confirmed both the question and answer surfaced in the results dropdown.
Description
No description provided
Languages
TypeScript
99.2%
JavaScript
0.3%
CSS
0.2%
Dockerfile
0.2%