-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Bug Description
After following the standard installation procedure via ov-install, the OpenClaw Gateway fails to initialize the OpenViking plugin. The logs report a module resolution error: Error: Cannot find module './session-transcript-repair.js'. This issue appears to be caused by an incorrect import path in context-engine.ts, where a .js extension is used but cannot be resolved by the current runtime environment, causing the long-term memory feature to be unavailable.
Steps to Reproduce
apt update
apt install -y software-properties-common
add-apt-repository universe
apt update
apt install -y python3-venv
npm install -g openclaw-openviking-setup-helper
ov-install
Expected Behavior
The ov-install script should deploy a functional version of the OpenViking plugin that is fully compatible with the current OpenClaw runtime, ensuring all internal module references (like session-transcript-repair) are resolvable.
Actual Behavior
The installation completes without errors, but the OpenClaw Gateway fails to load the plugin during runtime. The log reports:
Error: Cannot find module './session-transcript-repair.js'
referencing /home/openclaw/.openclaw/extensions/openviking/context-engine.ts.
It seems the installer fetches the latest source from the main branch which currently contains import paths that cannot be resolved by the Node.js environment, possibly due to a mismatch between the .ts source and the expected .js resolution in the latest commits.
Minimal Reproducible Example
npm install -g openclaw-openviking-setup-helper
ov-install --openviking-version=0.2.10
source ~/.openclaw/openviking.env && openclaw gateway restartError Logs
{"0":"{\"subsystem\":\"plugins\"}","1":"[plugins] openviking failed to load from /home/openclaw/.openclaw/extensions/openviking/index.ts: Error: Cannot find module './session-transcript-repair.js'\nRequire stack:\n- /home/openclaw/.openclaw/extensions/openviking/context-engine.ts","_meta":{"runtime":"node","runtimeVersion":"22.22.0","hostname":"unknown","name":"{\"subsystem\":\"plugins\"}","parentNames":["openclaw"],"date":"2026-03-25T00:54:24.151Z","logLevelId":5,"logLevelName":"ERROR","path":{"fullFilePath":"file:///home/openclaw/.npm-global/lib/node_modules/openclaw/dist/subsystem-DISldKSB.js:454:14","fileName":"subsystem-DISldKSB.js","fileNameWithLine":"subsystem-DISldKSB.js:454","fileColumn":"14","fileLine":"454","filePath":".npm-global/lib/node_modules/openclaw/dist/subsystem-DISldKSB.js","filePathWithLine":".npm-global/lib/node_modules/openclaw/dist/subsystem-DISldKSB.js:454","method":"logToFile"}},"time":"2026-03-25T00:54:24.151+00:00"}OpenViking Version
0.2.10
Python Version
3.12.3
Operating System
Linux
Model Backend
None
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status