feat(channels): add inherited global compaction notice policy

This commit is contained in:
Xubin Ren committed 2026-09-30 13:44:42 +08:00
1 parent 7644d845b4
commit ab6d5f1d3c
35 files changed
+287 -37

No files matched your search

+1 -1
View File
@@ -130,7 +130,7 @@ class LinearChannel(BaseChannel):
if isinstance(event, ContextCompactionEvent):
if event.phase == "succeeded":
self._issue_contexts.pop(msg.chat_id, None)
if not event.notify:
if not (event.notify or self.show_compaction_notices):
return
# Idle notifications have no originating Linear turn. Sending a thought
# through the cached route would reactivate an already completed session.