test(persistence): M1-008 verification — 20 integration tests #304

Merged
jason.woltje merged 1 commits from test/m1-verify-persistence into main 2026-03-21 21:08:19 +00:00

1 Commits

Author SHA1 Message Date
bb0ee3ebac test(M1-008): add integration tests for conversation persistence and context resume
Some checks failed
ci/woodpecker/push/ci Pipeline failed
ci/woodpecker/pr/ci Pipeline failed
Covers the full persistence flow:
- User messages are persisted via ConversationsRepo.addMessage with correct role/content
- Assistant responses are persisted with model, provider, tokens, and toolCalls metadata
- Session resume maps DB messages to ConversationHistoryMessage for context injection
- buildHistoryPromptSection formats history into system prompt (full and summarized paths)
- GET /api/conversations/search returns matching messages via ConversationsController
- End-to-end simulation: create conversation → persist messages → load history on resume

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-03-21 16:06:53 -05:00