Skip to content

[Bug] memory-lancedb-pro 加载正常但 doctor 报告 no active memory plugin #527

@Lrs-GreenBottle

Description

@Lrs-GreenBottle

🐛 Bug 描述

环境:

  • OpenClaw 版本:2026.4.2
  • memory-lancedb-pro 版本:1.1.0-beta.9
  • Node 版本:v22.22.2
  • 操作系统:macOS

问题现象:
memory-lancedb-pro 插件加载正常,功能(记忆工具、每日总结等)都工作正常,但运行 openclaw doctoropenclaw status 时报告"no active memory plugin"。

原因分析(来自 OpenClaw 官方):

built-in memory-core explicitly calls api.registerMemoryRuntime(memoryRuntime) in its register() function. The built-in memory-lancedb extension does NOT — its register() wires up tools and lifecycle hooks but never calls registerMemoryRuntime. Any third-party plugin built after the same pattern would have the same gap.

插件的 register() 函数中需要添加 api.registerMemoryRuntime(...) 调用。

修复方案:

在插件的 register() 函数中添加类似以下的代码:

api.registerMemoryRuntime(memoryRuntime);

影响:

  • 功能本身正常(记忆工具、检索等都在工作)
  • 仅影响 doctor/status 的检测报告
  • 建议同时添加启动警告:当 kind: "memory" 的插件加载时如果没有调用 registerMemoryRuntime,发出警告

感谢插件!🫙

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions