Skip to content

The agent that grows with you

fix(plugins): keep late activation dependency-passive

ethernet2761a55f1b47
diff --git a/plugins/platforms/slack/adapter.py b/plugins/platforms/slack/adapter.py
index e9955ae3ebc..54579f9ccce 100644
--- a/plugins/platforms/slack/adapter.py
+++ b/plugins/platforms/slack/adapter.py
@@ -13,13 +13,14 @@ import unicodedata
from dataclasses import dataclass, field
from typing import Awaitable, Callable, ClassVar, Dict, Optional, Any, Tuple, List
-import aiohttp
-
+aiohttp: Any = None
try:
+ import aiohttp as _aiohttp
from slack_bolt.async_app import AsyncApp
from slack_bolt.adapter.socket_mode.async_handler import AsyncSocketModeHandler
from slack_sdk.web.async_client import AsyncWebClient
+ aiohttp = _aiohttp
SLACK_AVAILABLE = True
except ImportError:
SLACK_AVAILABLE = False
diff --git a/tests/tui_gateway/test_plugins_manage_late_activation.py b/tests/tui_gateway/test_plugins_manage_late_activation.py
index 83ed5eb51a6..8341c92457a 100644
--- a/tests/tui_gateway/test_plugins_manage_late_activation.py
+++ b/tests/tui_gateway/test_plugins_manage_late_activation.py
@@ -39,7 +39,7 @@ def test_plugins_manage_install_rescans_fires_on_plugin_loaded_and_exposes_mcp_s
events: list = []
manager.on_plugin_loaded(events.append)
with patch("hermes_cli.plugins_cmd._install_plugin_core", _fake_install_core), \
- patch("hermes_cli.plugins_cmd._install_python_dependencies_quietly", return_value=[]), \
+ patch("hermes_cli.plugins_cmd._python_dependency_summary", return_value=[]), \
patch("gateway.control_socket.reload_gateway_plugins", return_value=None): # no gateway running
resp = server.handle_request({"id": "1", "method": "plugins.manage",
"params": {"action": "install", "repo": "owner/late-mcp", "enable": True}})