Merge pull request #1560 from octo-patch/fix/issue-1548-per-project-plugin-config-ignored

fix: always check project-level plugin config as fallback (fixes #1548)
This commit is contained in:
Alessandro 2026-05-02 20:39:43 +02:00 committed by GitHub
commit e5caed435b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -752,13 +752,12 @@ def find_plugin_assets(
)
if _collect(path, project_name, agent_profile):
return results
if not agent_profile or agent_profile == "*":
# project/.a0proj/plugins/<plugin_name>/...
path = projects.get_project_meta(
project_name, files.PLUGINS_DIR, plugin_name, *subpaths
)
if _collect(path, project_name, ""):
return results
# project/.a0proj/plugins/<plugin_name>/... (always check as fallback, even when agent_profile is set)
path = projects.get_project_meta(
project_name, files.PLUGINS_DIR, plugin_name, *subpaths
)
if _collect(path, project_name, ""):
return results
# usr/agents/<profile>/plugins/<plugin_name>/...
if agent_profile: