feat(chat): persist messages to DB via ConversationsRepo (M1-001/002/003) #292

Merged
jason.woltje merged 1 commits from feat/m1-chat-persistence into main 2026-03-21 20:18:06 +00:00
1 Commits
Author SHA1 Message Date
jason.woltjeandClaude Sonnet 4.6 ef3529a587 feat(chat): persist messages to DB via ConversationsRepo (M1-001/002/003)
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful
Wire ChatGateway to ConversationsRepo so every user message is saved on
receipt (M1-001) and every assistant response is saved on agent:end with
accumulated streaming text (M1-002). Metadata includes model, provider,
tokenUsage (input/output/cache counts), toolCalls array, and timestamp
on each message record (M1-003). Auto-creates the conversation row when
the agent session is new.

Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
2026-03-21 15:17:06 -05:00