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
Owner

Verifies conversation persistence, context loading, search, and history summarization. 20 tests covering addMessage, findMessages, buildHistoryPromptSection, search endpoint, and E2E flow.

Verifies conversation persistence, context loading, search, and history summarization. 20 tests covering addMessage, findMessages, buildHistoryPromptSection, search endpoint, and E2E flow.
jason.woltje added 1 commit 2026-03-21 21:08:13 +00:00
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
bb0ee3ebac
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>
jason.woltje merged commit d8ac088f3a into main 2026-03-21 21:08:19 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: mosaicstack/stack#304