openclaw - 💡(How to fix) Fix Sidecar plugin config inheritance: warnWhenAllowlistIsOpen fires before config normalization completes, causing ~106s delay on every restart [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openclaw/openclaw#69804Fetched 2026-04-22 07:48:07
View on GitHub
Comments
0
Participants
1
Timeline
0
Reactions
0
Author
Participants

On every Gateway restart, the sidecar subprocess re-scans plugins but reads an incomplete config context. This causes:

  1. warnWhenAllowlistIsOpen() fires with \plugins.allow\ appearing empty (false-positive)
  2. \memory-lancedb-pro\ fails schema validation: \embedding: must have required property 'embedding'\ (false-positive)
  3. Gateway retries plugin loading multiple times (up to 3 attempts)

  4. ode.list\ gets blocked for 75+ seconds during the retry cascade

  5. etriever.test()\ times out after 8000ms

Total wasted time per restart: ~106 seconds (from sidecar plugin reload to successful 3rd registration).

Error Message

  • Observability: Misleading error logs that suggest configuration problems when none exist

Root Cause

In \server.impl-BbJvXoPb.js, the sidecar channel startup path calls \warnWhenAllowlistIsOpen()\ before the full config normalization is complete. The sidecar receives a raw config object where \plugins.allow\ has not yet been resolved from the normalized config.

This is related to the same split-context bug fixed for \openclaw status\ (PR #62106), but the gateway startup/sidecar loader path was not covered by that fix.

RAW_BUFFERClick to expand / collapse

Summary

On every Gateway restart, the sidecar subprocess re-scans plugins but reads an incomplete config context. This causes:

  1. warnWhenAllowlistIsOpen() fires with \plugins.allow\ appearing empty (false-positive)
  2. \memory-lancedb-pro\ fails schema validation: \embedding: must have required property 'embedding'\ (false-positive)
  3. Gateway retries plugin loading multiple times (up to 3 attempts)

  4. ode.list\ gets blocked for 75+ seconds during the retry cascade

  5. etriever.test()\ times out after 8000ms

Total wasted time per restart: ~106 seconds (from sidecar plugin reload to successful 3rd registration).

Environment

  • OpenClaw version: latest (npm global install, 2026-04-22)
  • OS: Windows Server 2019 (x64), Node.js v24.13.0
  • Plugin affected: \[email protected]\
  • \plugins.allow\ is explicitly configured in \openclaw.json\ — this is not a missing config issue

Reproduction

  1. Configure \plugins.allow\ with explicit plugin IDs in \openclaw.json\
  2. Restart Gateway (\openclaw gateway stop && openclaw gateway start)
  3. Observe logs during sidecar startup phase

Log Evidence (timestamps from 2026-04-22 00:29 CST)

\\

First successful load (main process) — works fine

[email protected]: plugin registered (model: qwen3-embedding:8b, smartExtraction: ON) node.list 4666ms ← normal

Sidecar starts — config inheritance breaks

[plugins] plugins.allow is empty; discovered non-bundled plugins may auto-load: memory-lancedb-pro, openclaw-weixin [plugins] memory-lancedb-pro invalid config: embedding: must have required property 'embedding'

Cascading failures

node.list 75125ms ← blocked for 75 seconds! retriever.test() timed out after 8000ms node.list 29581ms ← still slow

3rd attempt finally succeeds

[email protected]: plugin registered (model: qwen3-embedding:8b, smartExtraction: ON) node.list 53ms ← back to normal

Pattern repeats ~2 hours later with same cascade (95925ms node.list block)

\\

Root Cause Analysis

In \server.impl-BbJvXoPb.js, the sidecar channel startup path calls \warnWhenAllowlistIsOpen()\ before the full config normalization is complete. The sidecar receives a raw config object where \plugins.allow\ has not yet been resolved from the normalized config.

This is related to the same split-context bug fixed for \openclaw status\ (PR #62106), but the gateway startup/sidecar loader path was not covered by that fix.

Suggested Fix

  1. Ensure \warnWhenAllowlistIsOpen()\ is called only after config normalization completes in the sidecar path (same fix as PR #62106, extended to gateway loader)
  2. Alternatively, pass the raw \plugins.allow\ array directly to the validation function as a fallback
  3. The \embedding\ schema validation should also be deferred until config normalization is complete

Impact

  • Functional: None — plugins eventually load and work correctly
  • Performance: ~106s added to every Gateway restart
  • Observability: Misleading error logs that suggest configuration problems when none exist

extent analysis

TL;DR

The most likely fix is to ensure warnWhenAllowlistIsOpen() is called after config normalization completes in the sidecar path.

Guidance

  • Review the server.impl-BbJvXoPb.js file to understand the sidecar channel startup path and how warnWhenAllowlistIsOpen() is currently being called.
  • Consider applying the same fix as PR #62106 to the gateway loader path to ensure config normalization is complete before calling warnWhenAllowlistIsOpen().
  • As a fallback, passing the raw plugins.allow array directly to the validation function could resolve the issue.
  • Verify that deferring the embedding schema validation until config normalization is complete resolves the false-positive errors.

Example

No code snippet is provided as the issue does not contain sufficient information to create a minimal example.

Notes

The suggested fix is based on the analysis provided in the issue, which suggests that the problem is related to the same split-context bug fixed in PR #62106. However, the gateway startup/sidecar loader path was not covered by that fix.

Recommendation

Apply the workaround by ensuring warnWhenAllowlistIsOpen() is called only after config normalization completes in the sidecar path, as this is the most direct solution to the problem described.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix Sidecar plugin config inheritance: warnWhenAllowlistIsOpen fires before config normalization completes, causing ~106s delay on every restart [1 participants]