From 447e074bf4af313adae1d2bf2fe5bc02d28aecdf Mon Sep 17 00:00:00 2001 From: futhgar Date: Mon, 23 Mar 2026 21:05:20 +0000 Subject: [PATCH] fix(plugins): use runtime version for plugin API compatibility check OPENCLAW_PLUGIN_API_VERSION was hardcoded to "1.2.0" while ClawHub-published plugins require >=2026.3.22, making all plugin installs via ClawHub fail with "requires plugin API >=2026.3.22, but this OpenClaw runtime exposes 1.2.0". Use resolveRuntimeServiceVersion() (already imported) to read the actual version from package.json at runtime. Fixes #53038 --- src/plugins/clawhub.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/clawhub.ts b/src/plugins/clawhub.ts index 7e0f89db7ab..ba928e59bf3 100644 --- a/src/plugins/clawhub.ts +++ b/src/plugins/clawhub.ts @@ -16,7 +16,7 @@ import { import { resolveRuntimeServiceVersion } from "../version.js"; import { installPluginFromArchive, type InstallPluginResult } from "./install.js"; -export const OPENCLAW_PLUGIN_API_VERSION = "1.2.0"; +export const OPENCLAW_PLUGIN_API_VERSION = resolveRuntimeServiceVersion(); export const CLAWHUB_INSTALL_ERROR_CODE = { INVALID_SPEC: "invalid_spec", PACKAGE_NOT_FOUND: "package_not_found",