fix: stop sending context compaction notifications

This commit is contained in:
Arthur K. authored and Xubin Ren committed 2026-09-30 13:44:42 +08:00
1 parent fbe9b4fd72
commit 0b402d0414
31 files changed
+157 -38

No files matched your search

+2
View File
@@ -1096,6 +1096,8 @@ class TelegramChannel(BaseChannel):
# Compaction notices collapse into one message: the started phase sends
# it, a terminal phase edits it in place instead of posting a new one.
if isinstance(msg.event, ContextCompactionEvent):
if not msg.event.notify:
return
await self._send_compaction_notice(
chat_id, msg, msg.event, reply_params, thread_kwargs,
)