mirror of
https://github.com/agent0ai/agent-zero.git
synced 2026-05-19 07:59:34 +00:00
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:
commit
e5caed435b
1 changed files with 6 additions and 7 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue