You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an optional chat persistence module that wires Effect Chat.Persistence to the SQL persistence layer provided by db-sqlite.
This module should provide minimal boilerplate for persisted Effect chat history. It should not introduce app-specific chat metadata, chat list/get/delete APIs, titles, models, users, threads, or durable active-run metadata.
Parent
Part of #139.
What to build
Add an optional chat persistence module that wires Effect
Chat.Persistenceto the SQL persistence layer provided bydb-sqlite.This module should provide minimal boilerplate for persisted Effect chat history. It should not introduce app-specific chat metadata, chat list/get/delete APIs, titles, models, users, threads, or durable active-run metadata.
Helpful context
.reference/effect/packages/effect/src/unstable/ai/Chat.ts.reference/effect/packages/effect/src/unstable/persistence/Persistence.tspackages/catalog/src/registry/content/chat.tsAcceptance criteria
db-sqlite.Persistence.layerSqlor the appropriate SQL-backed Effect Persistence layer using the generated SQLite foundation.Chat.layerPersisted({ storeId: "chat" })or equivalent generated layer wiring.chat_askandchat-react-clientunchanged.ChatRuntimeor a future RPC.Blocked by