- Fix knowledge_base_service calling async process_document synchronously
in background threads — use asyncio.new_event_loop().run_until_complete()
instead of bare call that returned unawaited coroutine
- Same fix for _update_document and reindex_document
- Replace ModeSelector with auto-detect: RAG mode when knowledge bases selected
- Convert regenerateMessage to streaming (was synchronous API call)
- Show "知识库检索模式" indicator above input when KB selected
- Remove loadSessions side-effect from streaming onComplete
- Fix chat page loading state to avoid flash
- Improve forum page spacing and sizing
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Add message_id and user_message_id to SSE done events so frontend
can replace temp IDs with real DB IDs, fixing "消息不存在" on regenerate
- Replace Body(default=None) with RegenerateRequest Pydantic model for
proper JSON body parsing, fixing 422 Unprocessable Content
- Frontend always sends model in regenerate request body
- Pass selected model through message-item → regenerateMessage chain
- Various UI refinements to chat sidebar, quick questions, and layout
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>