mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-30 19:09:28 +00:00
The compile_mention_patterns promotion moved the 'patterns is None -> return []' short-circuit into the shared helper, which meant the telegram/dingtalk wrappers now evaluated self.name (via log_prefix=) even on the no-patterns path. On main that path returned before touching any adapter attributes; tests construct bare adapters via object.__new__ that lack .platform, so TestTelegramGuestMentionGating failed with AttributeError. Restore the early return in both wrappers for exact behavior parity with main. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| adapter.py | ||
| plugin.yaml | ||