fix(triggers): reject deliveries to disabled channels

This commit is contained in:
Pei Futong
2026-07-19 22:33:29 +08:00
committed by chengyongru
parent a6b68178aa
commit 91514ad0b1
4 changed files with 54 additions and 1 deletions
+2 -1
View File
@@ -2748,7 +2748,7 @@ def test_gateway_local_trigger_queue_submits_agent_turns(
enabled_channels: list[str] = []
def __init__(self, *_args, **_kwargs) -> None:
return None
self.channels: dict[str, object] = {}
async def start_all(self) -> None:
await asyncio.Event().wait()
@@ -2776,6 +2776,7 @@ def test_gateway_local_trigger_queue_submits_agent_turns(
assert kwargs["store"] is agent_kwargs["local_trigger_store"]
assert "bus" not in kwargs
assert kwargs["submit_turn"] is agent.submit_local_trigger_turn
assert kwargs["is_channel_available"]("websocket") is False
def test_gateway_workspace_override_does_not_migrate_legacy_cron(