fix: improve plugin system robustness — agent/command resolution, async errors, hook timing, two-phase init (#18280)

Co-authored-by: Aiden Cline <63023139+rekram1-node@users.noreply.github.com>
This commit is contained in:
Ryan Skidmore
2026-03-24 12:50:55 -05:00
committed by GitHub
co-authored by Aiden Cline
parent 235a82aea9
commit 814a515a8a
6 changed files with 169 additions and 4 deletions
+5 -1
View File
@@ -136,7 +136,11 @@ export namespace Plugin {
// Notify plugins of current config
for (const hook of hooks) {
await (hook as any).config?.(cfg)
try {
await (hook as any).config?.(cfg)
} catch (err) {
log.error("plugin config hook failed", { error: err })
}
}
})