升级OpenClaw后修复tools.allow配置错误:从"group:messaging"到"message"的迁移
【最近实战】
发现问题:Agent启动失败
今天上午,我在通过Wisdom SSH连接服务器后,准备使用OpenClaw的AI助手功能,却发现Agent无法正常响应。它直接返回了一条错误信息:
Agent failed before reply: No callable tools remain after resolving explicit tool allowlist (tools.allow: group:messaging); no registered tools matched. Fix the allowlist or enable the plugin that registers the requested tool.
同时还提示我可以用 openclaw logs --follow 查看详细日志。
定位问题根源
我意识到这很可能跟最近的一次升级有关——就在昨天(6月30日),我通过Wisdom SSH执行了 npm install -g openclaw@latest 将OpenClaw从2026.6.10升级到了2026.6.11,并重启了服务。新版本可能对工具注册机制做了调整。
我向AI助手描述了这个问题,它立刻开始分析。它先查看了当前配置中的tools设置和插件列表:
"tools": {}
插件列表中有minimax、openclaw-weixin、memory-core、active-memory、ollama等,但没有看到任何注册了"messaging"工具组的插件。
搜索配置中的引用
AI助手进一步搜索了配置文件中所有涉及"messaging"和"tools.allow"的位置,发现关键线索:
/root/.openclaw/openclaw.json:98: "group:messaging"
它定位到 agents.main.tools.allow 中配置了 "group:messaging",但新版OpenClaw中这个工具组已经不再被任何插件注册了。
运行诊断确认
AI助手建议我运行 openclaw doctor 来获取官方诊断。通过Wisdom SSH执行后,诊断结果清晰地指出了问题:
Agent "main" is routed from channel "openclaw-weixin", but the message tool is unavailable for that agent; explicit channel actions such as sendAttachment, upload-file, thread-reply, or reply can fail. Add "message" to the agent tool allowlist, add "group:messaging", or switch the agent to a profile that includes messaging tools.
诊断明确告诉我:新版中应该使用单个工具名 "message" 而不是旧的组名 "group:messaging"。
修复配置
AI助手直接修改了配置文件,将:
"allow": [
"group:messaging"
]
改为:
"allow": [
"message"
]
并创建了备份文件。
问题原因分析
这个问题的本质是OpenClaw 2026.6.11版本对工具注册机制做了重构。旧版本中,消息相关工具通过 group:messaging 这个组名统一注册;新版本改为每个工具单独注册,"message" 成为独立的工具名。升级后配置文件中的旧组名无法匹配任何已注册的工具,导致Agent启动时发现allowlist中指定的工具全部不可用,直接拒绝执行。
后续
修改完成后,AI助手提示我需要重启服务才能生效。我准备在Wisdom SSH中执行 systemctl --user restart openclaw-gateway.service 来完成最后的生效步骤。
这次修复过程让我深刻体会到:升级开源项目后,不仅要关注版本号的变化,更要留意配置项可能发生的breaking changes。而借助Wisdom SSH的AI辅助功能,从发现问题、定位原因到执行修复,整个流程一气呵成,大大缩短了故障排查时间。