From 0fb9be9deeff4c2b1f1a05d860caa526e158576e Mon Sep 17 00:00:00 2001 From: operator Date: Thu, 16 Apr 2026 14:58:36 +0000 Subject: [PATCH] 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. --- plugin/core/config.ts | 4 ++-- plugin/openclaw.plugin.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/core/config.ts b/plugin/core/config.ts index eee4bc8..98c4748 100644 --- a/plugin/core/config.ts +++ b/plugin/core/config.ts @@ -59,8 +59,8 @@ export function validateYonexusServerConfig(raw: unknown): YonexusServerConfig { .filter((value) => value.length > 0) : []; - if (!Array.isArray(rawIdentifiers) || followerIdentifiers.length === 0) { - issues.push("followerIdentifiers must contain at least one non-empty identifier"); + if (!Array.isArray(rawIdentifiers)) { + issues.push("followerIdentifiers must be an array"); } if (new Set(followerIdentifiers).size !== followerIdentifiers.length) { diff --git a/plugin/openclaw.plugin.json b/plugin/openclaw.plugin.json index 3cef357..bd7afeb 100644 --- a/plugin/openclaw.plugin.json +++ b/plugin/openclaw.plugin.json @@ -19,6 +19,6 @@ "listenPort": { "type": "number" }, "publicWsUrl": { "type": "string" } }, - "required": ["followerIdentifiers", "notifyBotToken", "adminUserId", "listenPort"] + "required": ["notifyBotToken", "adminUserId", "listenPort"] } }