Skip to content

[Bug] memory_search tool fails to load missing dist/memory-cli-1jB6uC2k.js (2026.3.13) #51676

@liorsolomon

Description

@liorsolomon

Summary

Calling the memory_search tool (the mandatory recall step in agent sessions) now fails before it can run. The tool loader tries to import openclaw/dist/memory-cli-1jB6uC2k.js, which in turn imports openclaw/dist/manager-runtime-Cl-wnyqx.js. Neither file is present in the 2026.3.13 npm package, so every invocation crashes with ERR_MODULE_NOT_FOUND and the session cannot proceed.

Steps to reproduce

  1. npm install -g [email protected]
  2. Trigger memory_search (e.g., let the main agent run its automatic recall step, or programmatically call the memory_search tool via the agent runtime).
  3. Observe the tool result/error.

Actual result

{
  "results": [],
  "disabled": true,
  "unavailable": true,
  "error": "Cannot find module '/home/liorsolomon/.npm-global/lib/node_modules/openclaw/dist/manager-runtime-Cl-wnyqx.js' imported from /home/liorsolomon/.npm-global/lib/node_modules/openclaw/dist/memory-cli-1jB6uC2k.js",
  "warning": "Memory search is unavailable due to an embedding/provider error.",
  "action": "Check embedding provider configuration and retry memory_search."
}

Manual check confirms the referenced module does not exist:

$ node -p "require.resolve('openclaw/dist/memory-cli-1jB6uC2k.js')"
Error: Cannot find module 'openclaw/dist/memory-cli-1jB6uC2k.js'

ls openclaw/dist | grep "manager-runtime" only shows:

manager-runtime--C1kU2CF.js
manager-runtime-BYSZWcgO.js
manager-runtime-DmFH0DkG.js
manager-runtime-HIiFjkWE.js
manager-runtime-Kh81a2MN.js
manager-runtime-WL1a5_nT.js

— there is no manager-runtime-Cl-wnyqx.js (and no memory-cli-*.js files at all) in the published tarball.

Expected result

memory_search should load the bundled CLI chunks and return search results instead of crashing.

Notes

  • The CLI command openclaw memory search ... still works because it loads the code from dist/model-selection-46xMp11W.js. The failure only happens when the agent runtime binds its memory_search tool.
  • Reinstalling or downgrading (tested 2026.3.12, 2026.3.11, 2026.3.8, 2026.3.2, 2026.3.1) does not help—the tool seems hard-coded to those hashed filenames.
  • This regression blocks every main-session job that depends on the mandatory recall step, because the tool crashes before any user code runs.

Environment

  • OpenClaw 2026.3.13 (npm)
  • Node.js v22.22.0
  • OS: Linux 5.15.153.1-microsoft-standard-WSL2 x86_64 (Windows 11 host)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions