- 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>
- Seed default forum categories (announcements, learning, feedback) on startup
- Update forum pages with improved category/post/reply UI
- Refine navbar, mobile nav, and home page content layout
- Improve analytics, course-content, knowledge, profile, settings, spatial pages
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>
Switch from dark p5-style background to light slate theme with softer
indigo particles, white label pills, and reduced glow effects for
better readability in academic context.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Merge hero/stats/features/footer sections into home-page-content.tsx,
remove separate landing-page.tsx. Update styles, layout, navbar, and
backend config.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>