Skip to content

bug: 小龙虾建议在本地未安装 openclaw 时显示错误的 REGISTRY_CORRUPT 诊断 #46

@dev01lay2

Description

@dev01lay2

问题描述

当用户本地没有安装 OpenClaw CLI 时,ClawPal 的「小龙虾建议」弹窗错误地显示:

The openclaw config file ~/.openclaw/openclaw.json contains a JSON5 syntax error at position 1:35, causing all openclaw commands to fail (REGISTRY_CORRUPT).

实际上应该提示用户「本机未安装 OpenClaw」。

复现步骤

  1. 在没有安装 openclaw 的机器上打开 ClawPal
  2. 等待首页自动刷新 agent 列表(listAgents
  3. 观察右下角弹出的「小龙虾建议」

预期行为

提示「本机未安装 OpenClaw CLI」,并建议安装或直接使用 SSH 连接远程实例。

实际行为

显示 REGISTRY_CORRUPT 错误,建议运行 openclaw doctor --fix(但 openclaw 都没装,无法运行)。

根因分析

explain_operation_error() 对 local transport 的 openclaw-missing 错误没有 fast path,直接送给 zeroclaw LLM 做诊断。但 zeroclaw 本身也依赖 openclaw 二进制,所以要么静默失败、要么产生错误的诊断结果。

截图

详见 Discord #clawpal 频道 (2026-03-03)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions