Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions gateway/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -1856,8 +1856,15 @@ def _enable_from_env(platform: Platform) -> PlatformConfig:
if feishu_app_id and feishu_app_secret:
if Platform.FEISHU not in config.platforms:
config.platforms[Platform.FEISHU] = PlatformConfig()
config.platforms[Platform.FEISHU].enabled = True
config.platforms[Platform.FEISHU].extra.update({
# Respect explicit enabled: false in config.yaml — don't force-enable
# when the user intentionally disabled the platform (mirrors Slack at L1596).
# _enabled_explicit is set in _merge_platform_map when "enabled" appears in
# a top-level platform YAML entry or platforms.<name> map entry.
feishu_config = config.platforms[Platform.FEISHU]
enabled_was_explicit = bool(feishu_config.extra.get("_enabled_explicit", False))
if not feishu_config.enabled and not enabled_was_explicit:
feishu_config.enabled = True
feishu_config.extra.update({
"app_id": feishu_app_id,
"app_secret": feishu_app_secret,
"domain": getenv("FEISHU_DOMAIN", "feishu"),
Expand Down