Bug Description
Gateway continuously attempts to reconnect Discord platform even when it is explicitly disabled in config and listed in plugins.disabled. The reconnection watcher keeps retrying indefinitely with exponential backoff, spamming the logs with "No bot token configured" errors.
Steps to Reproduce
- Have Discord in
plugins.disabled list:
plugins:
disabled:
- platforms/discord
- Set
discord.enabled: false in config.yaml
- Start gateway:
hermes gateway run
- Observe gateway log
Expected Behavior
Gateway should skip connecting to Discord entirely when disabled, without logging errors or starting reconnection watchers.
Actual Behavior
Gateway logs show:
INFO gateway.run: Connecting to discord...
ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured
WARNING gateway.run: ✗ discord failed to connect
INFO gateway.run: Starting reconnection watcher for 1 failed platform(s): discord
INFO gateway.run: Reconnecting discord (attempt 2)...
ERROR hermes_plugins.discord_platform.adapter: [Discord] No bot token configured
INFO gateway.run: Reconnect discord failed, next retry in 60s
The reconnection loop continues indefinitely with exponential backoff (60s, 120s, 240s...).
Environment
- Hermes Agent v0.14.0 (2026.5.16)
- Python: 3.11.15
- OS: Linux (6.18.7-76061807-generic)
- Config: discord.enabled = false, plugins.disabled includes platforms/discord
Root Cause Analysis
The platform initialization logic appears to ignore the enabled: false flag and plugins.disabled list. The gateway always attempts to connect to all registered platform adapters regardless of their enabled state. The reconnection watcher then treats the connection failure as a transient error and keeps retrying.
Workaround
Manually kill the gateway process and restart after setting discord.enabled: false — but the issue persists across restarts.
Bug Description
Gateway continuously attempts to reconnect Discord platform even when it is explicitly disabled in config and listed in
plugins.disabled. The reconnection watcher keeps retrying indefinitely with exponential backoff, spamming the logs with "No bot token configured" errors.Steps to Reproduce
plugins.disabledlist:discord.enabled: falsein config.yamlhermes gateway runExpected Behavior
Gateway should skip connecting to Discord entirely when disabled, without logging errors or starting reconnection watchers.
Actual Behavior
Gateway logs show:
The reconnection loop continues indefinitely with exponential backoff (60s, 120s, 240s...).
Environment
Root Cause Analysis
The platform initialization logic appears to ignore the
enabled: falseflag andplugins.disabledlist. The gateway always attempts to connect to all registered platform adapters regardless of their enabled state. The reconnection watcher then treats the connection failure as a transient error and keeps retrying.Workaround
Manually kill the gateway process and restart after setting
discord.enabled: false— but the issue persists across restarts.