Skip to content

active-memory: Bundled plugin dirName must be a single directory (QQ c2c) #77396

@zhao932

Description

@zhao932

Bug 描述active-memory 插件在处理 QQ 私信(c2c)消息时崩溃。复现步骤:1. 启用 active-memory 插件2. 通过 QQ 机器人发送私信给飞牛3. active-memory 子代理启动时立即报错错误日志:Error: Bundled plugin dirName must be a single directory: c2c:10D4F7C20EF54550C2845B47A3C95803lane task error: lane=main durationMs=4741active-memory: agent=main session=agent:main:main failed error=Bundled plugin dirName must be a single directory环境:- OpenClaw 版本:2026.5.2- 插件版本:active-memory (bundled in openclaw-2026.4.26)- 通道:QQ Bot (c2c 私信)**分析:**问题出在 active-memory 插件的 toSafeTranscriptAgentDirName(agentId) 函数中——QQ c2c 会话的 agentId 格式为 c2c:10D4F7C20EF54550C2845B47A3C95803,包含冒号,但 OpenClaw 的 normalizeBundledPluginDirName 强制要求 dirName 为单层目录名(不能包含 / \ :),导致解析失败。**建议修复:**在 toSafeTranscriptAgentDirName 中对包含冒号的 agentId 进行编码(如 URL encode 或 base64),避免 dirName 包含冒号。

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