fix: plugin prompts search path resolution

keyboardstaff committed Feb 24, 2026 at 23:22 UTC 8e752900c62e22e738223e996ec01b31e16476bf
1 file changed +4 -1
python/helpers/subagents.py
+4 -1
@@ -400,7 +400,10 @@ def get_paths(
400 from python.helpers import plugins
401
402 for plugin in plugins.get_plugins_list():
403 - path = files.get_abs_path(plugin, *subpaths)
403 + plugin_dir = plugins.find_plugin_dir(plugin)
404 + if not plugin_dir:
405 + continue
406 + path = os.path.join(plugin_dir, *subpaths)
407 if (not must_exist_completely) or files.exists(path):
408 if path not in paths:
409 paths.append(path)