openclaw - 💡(How to fix) Fix Plugin/core version drift after upgrade causes silent channel failure

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…

Upgrading OpenClaw core does not automatically realign installed plugin packages. If a plugin like @openclaw/discord remains on an older version than core, the channel can silently fall into a disabled/broken state with no clear incompatibility warning.

Error Message

When core upgrades, plugin compatibility should remain aligned or the operator should get a clear, actionable error saying the installed plugin version is incompatible.

  • Check plugin versions against core on startup and emit a warning/error when they drift.

Root Cause

This creates a confusing post-upgrade failure mode: the bot stops working, validation still passes, and the operator has to manually discover version drift inside ~/.openclaw/npm/node_modules.

Code Example

cd ~/.openclaw/npm
npm install @openclaw/discord@<old-version>
sudo npm install -g @openclaw/openclaw@latest
systemctl --user restart openclaw-gateway.service

---

openclaw channels list --all --plain
# Discord: installed, not configured, disabled

---

node -e "
const p = require('/home/adam/.openclaw/npm/node_modules/@openclaw/discord/package.json');
console.log('plugin:', p.version);
"
openclaw --version

---

cd ~/.openclaw/npm
npm install @openclaw/discord@latest
openclaw doctor --fix
systemctl --user restart openclaw-gateway.service
openclaw channels list --all --plain
# Discord default (...): installed, configured, enabled
RAW_BUFFERClick to expand / collapse

Summary

Upgrading OpenClaw core does not automatically realign installed plugin packages. If a plugin like @openclaw/discord remains on an older version than core, the channel can silently fall into a disabled/broken state with no clear incompatibility warning.

Environment

  • OpenClaw version observed: 2026.5.7
  • Host OS: Ubuntu 24.04
  • Install style: native install / upgrade flow

Reproduction

Pin a plugin to an older version, then upgrade core:

cd ~/.openclaw/npm
npm install @openclaw/discord@<old-version>
sudo npm install -g @openclaw/openclaw@latest
systemctl --user restart openclaw-gateway.service

Now inspect channel state:

openclaw channels list --all --plain
# Discord: installed, not configured, disabled

Check versions:

node -e "
const p = require('/home/adam/.openclaw/npm/node_modules/@openclaw/discord/package.json');
console.log('plugin:', p.version);
"
openclaw --version

Then repair:

cd ~/.openclaw/npm
npm install @openclaw/discord@latest
openclaw doctor --fix
systemctl --user restart openclaw-gateway.service
openclaw channels list --all --plain
# Discord default (...): installed, configured, enabled

Expected

When core upgrades, plugin compatibility should remain aligned or the operator should get a clear, actionable error saying the installed plugin version is incompatible.

Actual

Core/plugin drift causes silent failure. The channel appears disabled or non-functional even though config remains valid and unchanged. There is no clear warning such as "plugin version incompatible with core version".

Why this matters

This creates a confusing post-upgrade failure mode: the bot stops working, validation still passes, and the operator has to manually discover version drift inside ~/.openclaw/npm/node_modules.

Suggested fix

Any of these would help:

  • Auto-upgrade @openclaw/* plugins when core upgrades.
  • Check plugin versions against core on startup and emit a warning/error when they drift.
  • Refuse startup with an actionable message if a plugin is incompatible with the current core version.

Notes

In our environment, openclaw doctor --fix was also needed to repair the plugin dependency link after upgrading the package.

Primary source doc:

  • docs/upstream-bugs/plugin-core-version-drift-after-upgrade.md

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 Plugin/core version drift after upgrade causes silent channel failure