Skip to content

[Bug] Bug Report:doctor 误报 "memory slot plugin not found" #119

@woxinsj

Description

@woxinsj

OpenClaw Version | OpenClaw 版本

2026.04.29

Plugin Version | 插件版本

memory-tencentdb v0.3.6

Operating System | 操作系统

win11

System Specification | 系统配置

intel 7 32G

Describe the bug | 问题描述

问题描述

doctor 工具执行时报告:memory slot plugin not found

该警告为 false positive(假阳性)。memory-tencentdb 插件已完整实现四层记忆系统(向量检索记忆、结构化记忆、短时记忆、长时记忆),但未调用 registerMemorySlot() API 进行 slot 宣告。doctor 的检测逻辑将 registerMemorySlot() 是否被调用作为判定插件是否存在的唯一标准,导致误判。

To Reproduce | 复现步骤

启用 memory-tencentdb 插件(已正确配置并运行)
运行 openclaw doctor 或 claw doctor 健康检查
观察输出:报告 memory slot plugin not found 警告
确认 memory-tencentdb 的四层记忆功能实际正常工作(可通过对话测试验证)

Expected behavior | 预期行为

doctor 工具应识别出 memory-tencentdb 已实现记忆插件,不应报告此警告。

Error Logs / Screenshots | 报错日志/截图

No response

Additional context | 补充信息

修改 doctor 检测逻辑,支持两种 memory plugin 识别方式:

原有方式:检查 registerMemorySlot() API 调用(适用于使用该 API 宣告的插件)
新增方式:检测插件是否实现了 Memory 接口的核心方法(如 search() / store() / retrieve() 等),即使未使用 registerMemorySlot() 宣告
这样可以兼容 memory-tencentdb 等自建记忆系统的插件,避免 false positive。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    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