fix(channels): preserve explicit compaction feedback and silent delivery
This commit is contained in:
1 parent
0b402d0414
commit
7644d845b4
13 files changed
+96
-37
No files matched your search
@@ -67,12 +67,7 @@ def _bind_events(
|
||||
)
|
||||
|
||||
async def publish(event: AgentEvent) -> None:
|
||||
# A maintenance result destination does not own the internal context.
|
||||
if is_internal_session(session_key) and isinstance(event, ContextCompactionEvent):
|
||||
return
|
||||
if not notification_is_deliverable(
|
||||
event, channel=channel, publish_lifecycle=route.publish_lifecycle,
|
||||
):
|
||||
if not accepts(type(event)):
|
||||
return
|
||||
await bus.publish_event(
|
||||
event, channel=channel, chat_id=chat_id, metadata=deepcopy(metadata),
|
||||
|
||||
Reference in new issue
Block a user