fix(channels): ignore persisted auth for auto-enable

This commit is contained in:
Peter Steinberger
2026-04-27 20:33:34 +01:00
parent dec1f68d7e
commit f7d67b8ea8
6 changed files with 37 additions and 23 deletions

View File

@@ -1031,10 +1031,12 @@ module:
}
```
Use it when setup, doctor, or configured-state flows need a cheap yes/no auth
probe before the full channel plugin loads. The target export should be a small
function that reads persisted state only; do not route it through the full
channel runtime barrel.
Use it when setup, doctor, status, or read-only presence flows need a cheap
yes/no auth probe before the full channel plugin loads. Persisted auth state is
not configured channel state: do not use this metadata to auto-enable plugins,
repair runtime dependencies, or decide whether a channel runtime should load.
The target export should be a small function that reads persisted state only; do
not route it through the full channel runtime barrel.
`openclaw.channel.configuredState` follows the same shape for cheap env-only
configured checks: