mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-03 15:31:10 +08:00
MessageTool 创建的 OutboundMessage 只包含 message_id,缺少 msg_type/stream/topic/recipient_user_id 等 Zulip 路由字段,导致 _build_send_request 生成空收件人列表。 _recipient_map 在收到消息时已存储了完整的路由元数据,但从未被用于补全发送消息的元数据。 修复:在 send() 中,当 metadata 缺少 msg_type 时,从 _recipient_map 查找对应 chat_id 的路由信息并合并,确保发送消息时始终有正确的收件人。