fix(triggers): require channel enablement predicate

This commit is contained in:
chengyongru
2026-07-19 22:33:29 +08:00
committed by chengyongru
parent 91514ad0b1
commit 7aaac37bca
4 changed files with 31 additions and 10 deletions
+1 -1
View File
@@ -2076,7 +2076,7 @@ def _run_gateway(
run_local_trigger_queue(
store=trigger_store,
submit_turn=getattr(agent, "submit_local_trigger_turn", None),
is_channel_available=lambda name: name in channels.channels,
is_channel_enabled=lambda name: channels.get_channel(name) is not None,
),
name="nanobot-local-triggers",
),