原因:authMiddleware 中的 req.user 对象没有包含 theme_preference 字段, 导致 /api/user/theme 接口始终返回 undefined,用户设置的主题无法被正确读取。 修复:在 req.user 中添加 theme_preference 字段 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>