feat(plugins): warn on ignored setup runtime (#71253)

* feat(plugins): warn on ignored setup runtime

* fix(plugins): avoid fallback setup runtime diagnostics

* refactor(plugins): clarify setup runtime lookup
This commit is contained in:
Vincent Koc
2026-04-24 14:23:19 -07:00
committed by GitHub
parent 6e985a421d
commit 5b8bd6371c
4 changed files with 87 additions and 5 deletions

View File

@@ -337,9 +337,11 @@ on `setup.providers[].envVars`.
Set `requiresRuntime: false` only when those descriptors are sufficient for the
setup surface. OpenClaw treats explicit `false` as a descriptor-only contract
and will not execute `setup-api` for setup lookup. Omitted `requiresRuntime`
keeps legacy fallback behavior so existing plugins that added descriptors
without the flag do not break.
and will not execute `setup-api` or `openclaw.setupEntry` for setup lookup. If
a descriptor-only plugin still ships one of those setup runtime entries,
OpenClaw reports an additive diagnostic and continues ignoring it. Omitted
`requiresRuntime` keeps legacy fallback behavior so existing plugins that added
descriptors without the flag do not break.
Because setup lookup can execute plugin-owned `setup-api` code, normalized
`setup.providers[].id` and `setup.cliBackends[]` values must stay unique across