fix: allow empty followerIdentifiers to avoid blocking openclaw CLI

An empty followerIdentifiers array caused a fatal validation error during
plugin registration, which prevented all openclaw CLI commands from running.
This commit is contained in:
operator
2026-04-16 14:58:36 +00:00
parent b571180b89
commit 0fb9be9dee
2 changed files with 3 additions and 3 deletions

View File

@@ -59,8 +59,8 @@ export function validateYonexusServerConfig(raw: unknown): YonexusServerConfig {
.filter((value) => value.length > 0) .filter((value) => value.length > 0)
: []; : [];
if (!Array.isArray(rawIdentifiers) || followerIdentifiers.length === 0) { if (!Array.isArray(rawIdentifiers)) {
issues.push("followerIdentifiers must contain at least one non-empty identifier"); issues.push("followerIdentifiers must be an array");
} }
if (new Set(followerIdentifiers).size !== followerIdentifiers.length) { if (new Set(followerIdentifiers).size !== followerIdentifiers.length) {

View File

@@ -19,6 +19,6 @@
"listenPort": { "type": "number" }, "listenPort": { "type": "number" },
"publicWsUrl": { "type": "string" } "publicWsUrl": { "type": "string" }
}, },
"required": ["followerIdentifiers", "notifyBotToken", "adminUserId", "listenPort"] "required": ["notifyBotToken", "adminUserId", "listenPort"]
} }
} }