Expected behavior
When slack.require_mention: false is set in config.yaml, the bot should respond to all messages in subscribed channels (where message.channels event is subscribed), even without @mention.
Actual behavior
The bot only responds to:
- Messages with @mention
- Replies in threads where it was previously mentioned
- Existing thread sessions
Messages without @mention in non-threaded channels are ignored, even with require_mention: false.
Root cause
In gateway/platforms/slack.py around line 833, the code reads require_mention from self.config as a direct attribute, but it's actually stored in self.config.extra['require_mention'] (see gateway/config.py lines 529-543).
Fix
Change line 834 in gateway/platforms/slack.py from:
require_mention = getattr(self.config, 'require_mention', True)
To:
require_mention = self.config.extra.get('require_mention', True)
Workaround
Patch ~/.hermes/hermes-agent/gateway/platforms/slack.py with the fix above, then restart the gateway.
Expected behavior
When
slack.require_mention: falseis set inconfig.yaml, the bot should respond to all messages in subscribed channels (wheremessage.channelsevent is subscribed), even without @mention.Actual behavior
The bot only responds to:
Messages without @mention in non-threaded channels are ignored, even with
require_mention: false.Root cause
In
gateway/platforms/slack.pyaround line 833, the code readsrequire_mentionfromself.configas a direct attribute, but it's actually stored inself.config.extra['require_mention'](seegateway/config.pylines 529-543).Fix
Change line 834 in
gateway/platforms/slack.pyfrom:To:
Workaround
Patch
~/.hermes/hermes-agent/gateway/platforms/slack.pywith the fix above, then restart the gateway.