openclaw - 💡(How to fix) Fix Bug: QMD memory initialization fails after update - missing 'chokidar' in plugin-runtime-deps [1 comments, 2 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#72970Fetched 2026-04-28 06:29:17
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Timeline (top)
closed ×1commented ×1

After updating to OpenClaw 2026.4.25 (openclaw-2026.4.25-babd02a671ff), QMD memory startup fails for all agents with the following warning on every gateway start:

qmd memory startup initialization failed for agent "<agent-name>": Cannot find package 'chokidar' imported from /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/dist/manager-C6O7HXGc.js
Did you mean to import "chokidar/index.js"?
qmd memory unavailable; falling back to builtin: Cannot find package 'chokidar' imported from /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/dist/qmd-manager-FuXCtSYP.js
Did you mean to import "chokidar/index.js"?

Error Message

  1. Observe WARN logs: qmd memory startup initialization failed for every configured agent

Root Cause

The plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/ directory contains a node_modules/ folder, but chokidar is not included in it. The QMD manager bundles (manager-C6O7HXGc.js, qmd-manager-FuXCtSYP.js) have an external import for chokidar that cannot be resolved at runtime.

This regression was not present before this update — previous versions resolved chokidar correctly.

Fix Action

Workaround

Manually install chokidar into the plugin-runtime-deps directory:

cd ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff
npm install chokidar
openclaw gateway restart

Code Example

qmd memory startup initialization failed for agent "<agent-name>": Cannot find package 'chokidar' imported from /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/dist/manager-C6O7HXGc.js
Did you mean to import "chokidar/index.js"?

---

qmd memory unavailable; falling back to builtin: Cannot find package 'chokidar' imported from /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/dist/qmd-manager-FuXCtSYP.js
Did you mean to import "chokidar/index.js"?

---

cd ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff
npm install chokidar
openclaw gateway restart
RAW_BUFFERClick to expand / collapse

Bug Report

Description

After updating to OpenClaw 2026.4.25 (openclaw-2026.4.25-babd02a671ff), QMD memory startup fails for all agents with the following warning on every gateway start:

qmd memory startup initialization failed for agent "<agent-name>": Cannot find package 'chokidar' imported from /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/dist/manager-C6O7HXGc.js
Did you mean to import "chokidar/index.js"?
qmd memory unavailable; falling back to builtin: Cannot find package 'chokidar' imported from /Users/<user>/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/dist/qmd-manager-FuXCtSYP.js
Did you mean to import "chokidar/index.js"?

Root Cause

The plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff/ directory contains a node_modules/ folder, but chokidar is not included in it. The QMD manager bundles (manager-C6O7HXGc.js, qmd-manager-FuXCtSYP.js) have an external import for chokidar that cannot be resolved at runtime.

This regression was not present before this update — previous versions resolved chokidar correctly.

Impact

  • All agents fail QMD memory initialization on startup
  • Falls back to built-in memory subsystem (reduced capability)
  • Affects all agents simultaneously (not agent-specific)

Steps to Reproduce

  1. Update OpenClaw to 2026.4.25
  2. Restart gateway
  3. Observe WARN logs: qmd memory startup initialization failed for every configured agent

Environment

  • OpenClaw version: 2026.4.25 (openclaw-2026.4.25-babd02a671ff)
  • Node.js: v22.22.0
  • OS: macOS Darwin 25.4.0 (arm64)

Workaround

Manually install chokidar into the plugin-runtime-deps directory:

cd ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff
npm install chokidar
openclaw gateway restart

Expected Behavior

chokidar should be bundled or listed as a dependency in the plugin-runtime-deps runtime directory so QMD memory initializes successfully without manual intervention.

Suggested Fix

Either:

  1. Bundle chokidar into the QMD manager bundle at build time, or
  2. Add chokidar to the package.json dependencies of the plugin-runtime-deps runtime directory and ensure it is installed during the update process

extent analysis

TL;DR

Manually installing chokidar in the plugin-runtime-deps directory may resolve the QMD memory startup failure.

Guidance

  • Verify the absence of chokidar in the node_modules folder within the plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff directory.
  • Apply the provided workaround by running npm install chokidar in the plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff directory and then restarting the OpenClaw gateway.
  • Consider reaching out to the OpenClaw developers to implement one of the suggested fixes: bundling chokidar into the QMD manager bundle or adding it as a dependency to the package.json of the plugin-runtime-deps runtime directory.
  • Ensure that the Node.js version (v22.22.0) and OS (macOS Darwin 25.4.0) are compatible with the updated OpenClaw version.

Example

The workaround can be applied using the following command sequence:

cd ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.25-babd02a671ff
npm install chokidar
openclaw gateway restart

Notes

This solution assumes that the issue is solely due to the missing chokidar package and that installing it manually will resolve the QMD memory startup failure. However, this is a temporary workaround, and a permanent fix should be implemented by the OpenClaw developers.

Recommendation

Apply the workaround by manually installing chokidar until a fixed version of OpenClaw is released, as this is a quicker solution to restore QMD memory functionality.

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 Bug: QMD memory initialization fails after update - missing 'chokidar' in plugin-runtime-deps [1 comments, 2 participants]