fix: stop sending context compaction notifications
This commit is contained in:
1 parent
fbe9b4fd72
commit
0b402d0414
31 files changed
+157
-38
No files matched your search
@@ -64,6 +64,7 @@ from nanobot.bus.queue import MessageBus
|
||||
from nanobot.channels.base import BaseChannel
|
||||
from nanobot.config.paths import get_data_dir, get_media_dir
|
||||
from nanobot.config.schema import Base
|
||||
from nanobot.events import ContextCompactionEvent
|
||||
from nanobot.utils.helpers import safe_filename
|
||||
from nanobot.utils.logging_bridge import redirect_lib_logging
|
||||
|
||||
@@ -615,6 +616,8 @@ class MatrixChannel(BaseChannel):
|
||||
|
||||
async def send(self, msg: OutboundMessage) -> None:
|
||||
"""Send outbound content; clear typing for non-progress messages."""
|
||||
if isinstance(msg.event, ContextCompactionEvent) and not msg.event.notify:
|
||||
return
|
||||
if not self.client:
|
||||
raise RuntimeError("Matrix client not initialized")
|
||||
text = msg.content or ""
|
||||
|
||||
Reference in new issue
Block a user