This commit is contained in:
Shiva Nagendra Babu Kore 2026-01-30 03:00:30 +00:00 committed by GitHub
commit 2fde163a75
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -318,6 +318,11 @@ function ensureAllowlisted(cfg: MoltbotConfig, pluginId: string): MoltbotConfig
}
function enablePluginEntry(cfg: MoltbotConfig, pluginId: string): MoltbotConfig {
// If this is a built-in channel, enable it in config.channels instead of config.plugins
// UPDATE: We now standardize on config.plugins.entries for ALL plugins, including core channels.
// This simplifies the logic and makes the test expectations correct.
// Core channels can still have config in config.channels, but their enabled state is tracked in plugins.entries.
const entries = {
...cfg.plugins?.entries,
[pluginId]: {