OpenViking icon indicating copy to clipboard operation
OpenViking copied to clipboard

[Bug]: openclaw-plugin 2026.8.7 configSchema missing runtimeQueryConfigPath property

Open lisheguo opened this issue 3 months ago • 0 comments

Bug Description

In version 2026.8.7 of the OpenClaw plugin (@openviking/openclaw-plugin), the openclaw.plugin.json manifest is missing the runtimeQueryConfigPath property in configSchema.properties. The runtime code still fully supports this field, but because the schema sets additionalProperties: false, any deployment that configures runtimeQueryConfigPath in openclaw.json fails config validation and the plugin cannot load.

Reproduction

  1. Install plugin v2026.8.7
  2. Set in openclaw.json:
    "plugins": {
      "entries": {
        "openviking": {
          "config": {
            "runtimeQueryConfigPath": "/home/user/.openclaw/openviking/runtime-query-config.json"
          }
        }
      }
    }
    
  3. Run openclaw config validate

Expected

Config validates successfully (field was present in v2026.7.15 schema).

Actual

plugins.entries.openviking.config: invalid config: must not have additional properties: "runtimeQueryConfigPath"

The plugin then fails to load:

[plugins] openviking failed to load ... Error: config validation failed

Root Cause

In openclaw.plugin.json v2026.8.7, configSchema.properties does not include runtimeQueryConfigPath. However:

  1. dist/config.js — the field is in the allowed-keys list and parsed into the resolved config:
    assertAllowedKeys(cfg, [
      ...,
      "runtimeQueryConfigPath",
      ...
    ], "openviking config");
    // ...
    runtimeQueryConfigPath: typeof cfg.runtimeQueryConfigPath === "string" && cfg.runtimeQueryConfigPath.trim()
        ? expandHomeDir(cfg.runtimeQueryConfigPath.trim())
        : "",
    
  2. dist/plugin/openviking-runtime-state.js — uses it to load the runtime query config:
    const queryConfigStore = new RuntimeQueryConfigStore({
        staticConfig: cfg,
        path: cfg.runtimeQueryConfigPath || undefined,
    });
    
  3. dist/config.js also exports the UI schema entry for it:
    runtimeQueryConfigPath: {
        label: "Runtime Query Config Path",
        placeholder: "~/.openclaw/openviking/runtime-query-config.json",
        help: "Optional JSON file for /ov-query-config runtime overrides.",
        advanced: true,
    },
    

So the code is consistent — only the JSON schema properties declaration was dropped in the v2026.8.7 release, likely an oversight in a schema refactor (possibly related to the SecretRef changes in #3618 / #3849 / #3832).

Workaround

Manually add the property back to openclaw.plugin.json:

"runtimeQueryConfigPath": {
  "type": "string",
  "description": "Optional JSON file path for runtime query config overrides. Empty means in-memory only."
}

Environment

  • Plugin version: 2026.8.7 (npm latest)
  • OpenClaw: v2026.6.11
  • Node.js: v24.15.0
  • OpenViking server: v0.4.13
  • OS: Linux

Comparison

v2026.7.15 configSchema.properties includes runtimeQueryConfigPath ✅ v2026.8.7 configSchema.properties missing it ❌ (but code still supports it)

lisheguo avatar Aug 09 '26 14:08 lisheguo