Fork
0
代码
介绍
代码
Issues
Pull Requests
流水线
Actions
讨论
Wiki
项目成员
分析
项目设置
Fork
0
bde9bde17c3edbb75d35dd1f1907e2bc9033344c
lobe-chat
/
docs
/
development
/
tests
下载当前目录
G
GitHub
🐛 fix: pass threadId to messages in sendMessageInServer (
#9808
)
d99a3a80
创建于
2025年10月21日
历史提交
文件
最后提交记录
最后更新时间
integration-testing.zh-CN.mdx
🐛 fix: pass threadId to messages in sendMessageInServer (#9808) * fix dev hydration * 🐛 fix: pass threadId to messages in sendMessageInServer - Add threadId parameter to CreateMessageParams interface - Pass threadId when creating user and assistant messages in aiChat router - Add comprehensive tests for threadId handling and outputJSON method This ensures thread context is properly maintained across message creation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * ✅ test: add comprehensive tests for addUserMessage - Test early return when activeId is undefined - Test message creation with files - Test threadId propagation when activeThreadId is set - Test input message clearing after message creation - Test handling messages without fileList This ensures the addUserMessage action correctly handles all scenarios including thread context. 🤖 Generated with [Claude Code](https://claude.com/claude-code) * fix thread fix * move * baseline * ✅ test: fix and improve message integration tests - Mock FileService to avoid S3 initialization issues - Mock getServerDB to use test database instance - Add test for threadId parameter in message creation - Fix pagination test to handle variable message counts - Fix batchCreate test to skip rowCount assertion (undefined in PGlite) - Skip topicId validation test (not currently enforced) All 15 integration tests now passing. 🤖 Generated with [Claude Code](https://claude.com/claude-code) * refactor * improve
6 个月前