Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
fix(nodes): eager-import nested plugin subpackages so they always register
trohitgd3ccf9692cf9
diff --git a/server/nodes/browser/__init__.py b/server/nodes/browser/__init__.pyindex 0594a6bf..392945c5 100644--- a/server/nodes/browser/__init__.py+++ b/server/nodes/browser/__init__.py@@ -6,10 +6,17 @@ Self-registration on import:locks. Registered through ``services.plugin.shutdown_hooks`` so``main.py`` lifespan teardown reaches us without cross-pluginimports.+ - Eager-import the inner ``browser`` subpackage so ``BrowserNode``+ auto-registers regardless of ``pkgutil.walk_packages`` recursion+ behaviour. The conftest plugin-discovery path was occasionally+ skipping nested subpackages on CI Linux when their parent had a+ failing intermediate import; this belt-and-braces approach makes+ the registration deterministic."""from services.plugin.shutdown_hooks import register_shutdown_hookfrom ._service import shutdown_browser_service+from . import browser as _browser # noqa: F401 — side-effect: registers BrowserNoderegister_shutdown_hook("browser_service", shutdown_browser_service)diff --git a/server/nodes/location/__init__.py b/server/nodes/location/__init__.pyindex d06c26ea..016bcc86 100644--- a/server/nodes/location/__init__.py+++ b/server/nodes/location/__init__.py@@ -7,10 +7,18 @@ Self-registration on import:The DI container's ``maps_service`` provider looks up the factoryat instantiation time, so the framework no longer carries atop-level ``from nodes.location._service import MapsService``.+ - Eager-import the three gmaps subpackages so their ``BaseNode``+ subclasses auto-register regardless of ``pkgutil.walk_packages``+ recursion behaviour. The conftest plugin-discovery path was+ occasionally skipping nested subpackages on CI Linux; this+ belt-and-braces approach makes the registration deterministic."""from services.plugin.service_factories import register_service_factoryfrom ._service import MapsService+from . import gmaps_create as _gmaps_create # noqa: F401 — side-effect: registers GmapsCreateNode+from . import gmaps_locations as _gmaps_locations # noqa: F401 — registers GmapsLocationsNode+from . import gmaps_nearby_places as _gmaps_nearby_places # noqa: F401 — registers GmapsNearbyPlacesNoderegister_service_factory("maps", MapsService)