plugins tools fix

Alessandro committed Feb 15, 2026 at 03:11 UTC 0c581eb6c8905a6ffd3316211ff8cf76bea81ef9
1 file changed +7 -2
python/helpers/subagents.py
+7 -2
@@ -384,8 +384,13 @@ def get_paths(
384
385 if include_plugins:
386 # plugins/*/subpaths...
387 - plugin_paths = plugins.get_plugin_paths(*subpaths)
388 - paths.extend(p for p in plugin_paths if p not in paths)
387 + from python.helpers import plugins
388 +
389 + for plugin in plugins.list_plugins():
390 + path = files.get_abs_path(str(plugin.path), *subpaths)
391 + if (not must_exist_completely) or files.exists(path):
392 + if path not in paths:
393 + paths.append(path)
394
395 if include_default:
396 # default_root/...