Repository navigation
Commit 49a0659
committed
fix: global plugin hook AdminForth/1955/implement-ability-for-agent-pl
validateConfigAfterDiscover was called only for plugins in
resource.plugins, so a global plugin never got it. The agent built its
system prompt there, so the model got "undefined" in its place, and its
startup checks (MCP plugin, audio and chat surface adapters) never ran.
Call it for config.globalPlugins after all resources are discovered;
resourceConfig is optional, a global plugin belongs to no resource.1 parent 447fe53 commit 49a0659
2 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
632 | 636 | | |
633 | 637 | | |
634 | 638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
799 | 799 | | |
800 | 800 | | |
801 | 801 | | |
| 802 | + | |
802 | 803 | | |
803 | | - | |
| 804 | + | |
804 | 805 | | |
805 | 806 | | |
806 | 807 | | |
| |||
0 commit comments