fix: ReferenceError "filteredCaptured is not defined" in memos-local capture pipeline
Summary
In @memtensor/memos-local-openclaw-plugin v1.0.2, the capture pipeline appears to reference an undefined variable:
telemetry.trackMemoryIngested(filteredCaptured.length);
At this point in the code, captured is defined, but filteredCaptured is not.
Observed behavior
This throws:
memos-local: capture failed: ReferenceError: filteredCaptured is not defined
In our case, old memory recall still worked, but new conversation capture / memory ingest did not reliably complete.
Suspected location
apps/memos-local-openclaw/index.ts
The surrounding logic looks like:
const captured = captureMessages(...);
if (captured.length > 0) {
worker.enqueue(captured);
telemetry.trackMemoryIngested(filteredCaptured.length);
}
Proposed fix
Replace:
telemetry.trackMemoryIngested(filteredCaptured.length);
with:
telemetry.trackMemoryIngested(captured.length);
Local verification
We patched this locally to use captured.length, restarted the gateway, and the repeated filteredCaptured is not defined errors stopped reproducing in subsequent chat activity.
Notes
I could not find an existing public issue for this exact error, so opening this in case it helps others who may not have traced it back to source yet.
Thanks for the report. This issue has been fixed in the latest version.
We have confirmed that filteredCaptured is now properly defined before use, and ReferenceError: filteredCaptured is not defined is no longer reproducible. Please upgrade to the latest version and restart the OpenClaw gateway to verify.
If the issue persists after upgrading, please share the latest logs and we will continue to investigate.
感谢反馈。该问题已在最新版本中修复。
我们已确认 filteredCaptured 在使用前已正确声明,ReferenceError: filteredCaptured is not defined 不再复现。请升级到最新版本并重启 OpenClaw gateway 后验证。
若升级后仍有问题,请附上最新日志,我们会继续跟进。