Skip to content

DeepTutor: Lifelong Personalized Tutoring. https://deeptutor.info/.

fix(zulip): 过滤 _tool_hint 进度消息避免重复发送

WeDoneb46bdebe1b27
diff --git a/deeptutor/tutorbot/channels/zulip.py b/deeptutor/tutorbot/channels/zulip.py
index bed775ca0..6c820e3d2 100644
--- a/deeptutor/tutorbot/channels/zulip.py
+++ b/deeptutor/tutorbot/channels/zulip.py
@@ -157,6 +157,9 @@ class ZulipChannel(BaseChannel):
logger.warning("Zulip client not running")
return
+ if msg.metadata.get("_tool_hint"):
+ return
+
if not msg.metadata.get("msg_type"):
stored = self._recipient_map.get(msg.chat_id)
if stored: