-
-
Notifications
You must be signed in to change notification settings - Fork 79.1k
Bug: npm updates drop node-llama-cpp, breaking local memory_search after every OpenClaw update #88705
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.clawsweeper:needs-maintainer-reviewClawSweeper marked this issue as needing maintainer review before automation.ClawSweeper marked this issue as needing maintainer review before automation.clawsweeper:needs-product-decisionClawSweeper marked this issue as needing a product or behavior decision.ClawSweeper marked this issue as needing a product or behavior decision.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.impact:session-stateSession, memory, transcript, context, or agent state can drift or corrupt.Session, memory, transcript, context, or agent state can drift or corrupt.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
After each recent npm-based OpenClaw update, local
memory_searchstops working because thenode-llama-cppoptional dependency is no longer present under the installed OpenClaw package directory.This has happened repeatedly on the same Linux host after OpenClaw updates. The workaround is always to manually reinstall
node-llama-cppinto the OpenClaw package prefix and then retestmemory_search.Environment
2026.5.272026.5.28 (e932160)/home/openclaw/.npm-global/lib/node_modules/openclawv24.15.011.12.1127.0.0.1:18789hf:ggml-org/embeddinggemma-300m-qat-q8_0-GGUF/embeddinggemma-300m-qat-Q8_0.ggufRepro / observed flow
2026.5.27to2026.5.28.memory_searchtool call.Actual result
memory_searchbecomes unavailable:npm ls -g --depth=0 node-llama-cpp openclawonly showedopenclaw@2026.5.28;node-llama-cppwas absent.A local post-update check also flagged the dependency as missing:
Expected result
After an OpenClaw npm update, local
memory_searchshould keep working without manually reinstallingnode-llama-cppinto the OpenClaw package directory.At minimum, the update flow or doctor should detect this condition and offer a direct repair step.
Workaround that fixes it
After this, the same
memory_searchcall succeeds again:The post-update check then passes:
Why this matters
For agents configured to rely on local/free memory search, every npm update silently removes or fails to preserve the native local embeddings dependency. The gateway can otherwise look healthy, so the breakage only appears when an agent tries to recall memory.
Related context
This seems adjacent to local memory/provider work such as #70596 and #70873, but the issue here is specifically the npm update/install result:
node-llama-cppdisappears from the installed OpenClaw package prefix and must be reinstalled manually after updates.