diff --git a/gateway/platforms/wecom.py b/gateway/platforms/wecom.py index 453b95a717..873284de79 100644 --- a/gateway/platforms/wecom.py +++ b/gateway/platforms/wecom.py @@ -142,6 +142,7 @@ class WeComAdapter(BasePlatformAdapter): """WeCom AI Bot adapter backed by a persistent WebSocket connection.""" MAX_MESSAGE_LENGTH = MAX_MESSAGE_LENGTH + SUPPORTS_MESSAGE_EDITING = False # Threshold for detecting WeCom client-side message splits. # When a chunk is near the 4000-char limit, a continuation is almost certain. _SPLIT_THRESHOLD = 3900 diff --git a/tests/gateway/test_wecom.py b/tests/gateway/test_wecom.py index 3c4ec357bc..18de405e39 100644 --- a/tests/gateway/test_wecom.py +++ b/tests/gateway/test_wecom.py @@ -36,6 +36,11 @@ class TestWeComRequirements: class TestWeComAdapterInit: + def test_declares_non_editable_message_capability(self): + from gateway.platforms.wecom import WeComAdapter + + assert WeComAdapter.SUPPORTS_MESSAGE_EDITING is False + def test_reads_config_from_extra(self): from gateway.platforms.wecom import WeComAdapter