08fc657755
* fix: preserve whitespace in Plain.toDict() for @ mentions - Remove .strip() from Plain.toDict() to match async to_dict() behavior - Fixes #6237: QQ @mentions no longer lose trailing spaces - This ensures '@user message' displays correctly instead of '@usermessage' * refactor: remove redundant to_dict() from Plain class - Let Plain inherit to_dict() from BaseMessageComponent - BaseMessageComponent.to_dict() calls toDict() by default - Reduces code duplication and prevents future divergence - Addressed code review feedback from @gemini-code-assist and @sourcery-ai * feat: add async to_dict method to Plain message component * fix: add return type hint to Plain.toDict method --------- Co-authored-by: ccsang <ccsang@users.noreply.github.com> Co-authored-by: Soulter <905617992@qq.com>