Files
DeepTutor/web/lib
WeDone 583e8aa939 fix: handle non-string message content in TutorBot chat
When TutorBot is connected to IM channels (e.g. Feishu, WeChat),
users can send images and other multimedia messages. These messages
are stored with content as an array of content-part objects rather
than a plain string. The frontend assumes content is always a string,
causing React Error #31 (Objects are not valid as a React child)
and rendering the chat page unusable.

Changes:
- Add normalizeMessageContent() utility to safely convert array/object
  content to displayable strings
- Fix BotChatPage history parsing to handle non-string content
- Fix UnifiedChatContext hydrateMessages for non-string content
- Fix last_message display with truncation and type safety in
  SessionList and HistorySessionPicker
- Normalize content to string and strip reasoning_content in backend
  get_bot_history and get_recent_active_bots
2026-04-30 01:32:20 +08:00
..
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00
2026-04-25 15:10:55 +08:00
2026-04-23 19:29:16 +08:00
2026-01-23 01:42:25 +08:00
2026-01-07 10:53:01 +08:00
2026-03-13 01:47:38 +08:00
2026-04-23 19:29:16 +08:00
2026-04-28 12:00:11 +08:00
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00
2026-04-25 22:08:44 +08:00
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00
2026-04-25 22:08:44 +08:00
2026-04-27 21:09:25 +08:00
2026-03-13 01:47:38 +08:00
2026-04-23 19:29:16 +08:00
2026-04-23 19:29:16 +08:00
2026-04-25 15:10:55 +08:00