fix(plugins): keep late activation dependency-passive

This commit is contained in:
ethernet
2026-09-22 13:09:30 -04:00
parent 1f48a3d036
commit 2761a55f1b
2 changed files with 4 additions and 3 deletions

View File

@@ -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

View File

@@ -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}})