openclaw - ✅(Solved) Fix [Bug]: 2026.4.27 builtin memory can fail because plugin-runtime-deps snapshot misses sqlite-vec [1 pull requests, 5 comments, 6 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#74692Fetched 2026-04-30 06:21:13
View on GitHub
Comments
5
Participants
6
Timeline
10
Reactions
3
Author
Timeline (top)
commented ×5cross-referenced ×2closed ×1referenced ×1

After upgrading to OpenClaw 2026.4.27, builtin memory/vector search can fail because the plugin runtime dependency snapshot under ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-*/node_modules does not contain sqlite-vec, even though the main global OpenClaw install does.

This breaks memory startup/search with:

[memory] sqlite-vec unavailable: Cannot find package 'sqlite-vec' imported from /Users/.../.openclaw/plugin-runtime-deps/openclaw-2026.4.27-.../dist/engine-storage-....js
Did you mean to import "sqlite-vec/index.cjs"?

Error Message

  1. Observe runtime error above

Root Cause

Summary

After upgrading to OpenClaw 2026.4.27, builtin memory/vector search can fail because the plugin runtime dependency snapshot under ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-*/node_modules does not contain sqlite-vec, even though the main global OpenClaw install does.

Fix Action

Fix / Workaround

Repro

  1. Upgrade to 2026.4.27
  2. Use builtin memory with vector search enabled
  3. Run memory startup/status/search
  4. Observe runtime error above
  5. Check runtime deps dir and note that sqlite-vec is missing there, while present in the main install

Local workaround

I restored memory by manually linking the missing packages into the plugin runtime deps snapshot:

PR fix notes

PR #74711: fix(memory): mirror sqlite-vec into plugin runtime deps snapshot

Description (problem / solution / changelog)

Add sqlite-vec to openclaw.bundle.mirroredRootRuntimeDependencies. Without it, the plugin-runtime-deps snapshot ships without sqlite-vec, breaking builtin memory:

[memory] sqlite-vec unavailable: Cannot find package 'sqlite-vec' imported from .../engine-storage-*.js

memory-host-sdk imports sqlite-vec in the bundled engine-storage chunk; the root mirror is the only place that covers it. Platform binary (sqlite-vec-darwin-arm64) rides along as an optionalDependency.

Fixes #74692

Changed files

  • package.json (modified, +1/-0)

Code Example

[memory] sqlite-vec unavailable: Cannot find package 'sqlite-vec' imported from /Users/.../.openclaw/plugin-runtime-deps/openclaw-2026.4.27-.../dist/engine-storage-....js
Did you mean to import "sqlite-vec/index.cjs"?

---

BASE="$HOME/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-da6bdffc3d96/node_modules"
mkdir -p "$BASE"
ln -s /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec "$BASE/sqlite-vec"
ln -s /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec-darwin-arm64 "$BASE/sqlite-vec-darwin-arm64"

---

Vector: ready
Vector dims: 2560
Vector path: /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec-darwin-arm64/vec0.dylib
RAW_BUFFERClick to expand / collapse

Summary

After upgrading to OpenClaw 2026.4.27, builtin memory/vector search can fail because the plugin runtime dependency snapshot under ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-*/node_modules does not contain sqlite-vec, even though the main global OpenClaw install does.

This breaks memory startup/search with:

[memory] sqlite-vec unavailable: Cannot find package 'sqlite-vec' imported from /Users/.../.openclaw/plugin-runtime-deps/openclaw-2026.4.27-.../dist/engine-storage-....js
Did you mean to import "sqlite-vec/index.cjs"?

Environment

  • OpenClaw: 2026.4.27
  • Host: macOS arm64
  • Install path: /opt/homebrew/lib/node_modules/openclaw
  • Runtime deps path: ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-*/
  • Memory backend: builtin

What I observed

The main OpenClaw install contains:

  • /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec
  • /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec-darwin-arm64

But the generated plugin runtime deps snapshot for 2026.4.27 did not contain those packages under:

  • ~/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-*/node_modules

That caused builtin memory/vector search to fail until the missing packages were manually linked into the runtime-deps snapshot.

Repro

  1. Upgrade to 2026.4.27
  2. Use builtin memory with vector search enabled
  3. Run memory startup/status/search
  4. Observe runtime error above
  5. Check runtime deps dir and note that sqlite-vec is missing there, while present in the main install

Expected

sqlite-vec should resolve correctly from the plugin runtime used by builtin memory on macOS arm64.

Actual

The runtime snapshot used by memory cannot import sqlite-vec and vector memory initialization/search fails.

Local workaround

I restored memory by manually linking the missing packages into the plugin runtime deps snapshot:

BASE="$HOME/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-da6bdffc3d96/node_modules"
mkdir -p "$BASE"
ln -s /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec "$BASE/sqlite-vec"
ln -s /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec-darwin-arm64 "$BASE/sqlite-vec-darwin-arm64"

After that, openclaw memory status reported vector search as ready again:

Vector: ready
Vector dims: 2560
Vector path: /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec-darwin-arm64/vec0.dylib

Extra note

In my case I also hit a separate local config/model-name mismatch at the same time (memorySearch.model still pointed at an old embedding model id while my embeddings server only exposed a new served model name), but that was independent of this sqlite-vec runtime packaging/resolution failure.

extent analysis

TL;DR

Manually linking the missing sqlite-vec packages into the plugin runtime deps snapshot may resolve the vector search failure.

Guidance

  • Verify that sqlite-vec is present in the main OpenClaw install but missing from the plugin runtime deps snapshot.
  • Check the runtime deps directory for the presence of sqlite-vec and sqlite-vec-darwin-arm64 packages.
  • Manually link the missing packages into the plugin runtime deps snapshot using the provided local workaround as a guide.
  • After applying the workaround, verify that openclaw memory status reports vector search as ready.

Example

The local workaround provided in the issue can be used as a template:

BASE="$HOME/.openclaw/plugin-runtime-deps/openclaw-2026.4.27-*/node_modules"
mkdir -p "$BASE"
ln -s /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec "$BASE/sqlite-vec"
ln -s /opt/homebrew/lib/node_modules/openclaw/node_modules/sqlite-vec-darwin-arm64 "$BASE/sqlite-vec-darwin-arm64"

Notes

This workaround may not be necessary if the issue is resolved in a future version of OpenClaw. Additionally, the separate local config/model-name mismatch issue mentioned in the extra note should be addressed independently of this sqlite-vec runtime packaging/resolution failure.

Recommendation

Apply the workaround by manually linking the missing sqlite-vec packages into the plugin runtime deps snapshot, as this is a direct solution to the reported issue.

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 - ✅(Solved) Fix [Bug]: 2026.4.27 builtin memory can fail because plugin-runtime-deps snapshot misses sqlite-vec [1 pull requests, 5 comments, 6 participants]