Skip to content

fix(cli): show directory failure remedies alongside JSON - #199616

Merged
obviyus merged 2 commits into
openclaw:mainfrom
Leon-SK668:leon/fix-directory-json-remedies-20261115
Nov 15, 2026
Merged

obviyus merged 2 commits into
openclaw:mainfrom
Leon-SK668:leon/fix-directory-json-remedies-20261115

Conversation

@Leon-SK668

@Leon-SK668 Leon-SK668 commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer validation on 2a2066dc0914ca62392bc8678a5d2d231864eef0: before/after receipts. All four guards reproduced through the real CLI; stdout, text-mode diagnostics and exit codes stayed unchanged. Focused tests: baseline 5 intended failures, candidate 21 passed; test typecheck, full build and offline packed-entry smoke passed. Consolidated tests are net 0 lines (+26/-26); production remains +5/-4. Original contributor commit retained.


What Problem This Solves

Fixes: directory --json hides the actionable reason on stderr for a blank group ID or an unavailable lookup operation, even though JSON stdout already contains that reason.

User Impact

Operators keeping stdout for a JSON consumer also receive the existing error message on stderr. The error JSON, exit codes, human-mode messages and successful lookup output stay the same. No configuration, default, protocol or channel capability changes.

Why This Change Was Made

The directory command produced ordinary errors for its own validation and unsupported-operation guards. The root JSON error handler deliberately hides ordinary failures. Use the existing expected-error helper at these four guards, covering self, peers, groups and members at their shared owner. Unexpected errors thrown by plugins retain their original classification.

Evidence

  • Scenario: owner-produced directory failure reasons remain readable on stderr in JSON mode; JSON messages, exit codes, human errors and successful lookups retain their behavior
  • Entry: node openclaw.mjs directory groups members --group-id " " --json; node openclaw.mjs directory groups members --channel irc --group-id "#proof" --json; disputed owner ran unmocked: src/cli/directory-cli.ts -> ExpectedCliError -> existing root failure-output owner; no mocked directory implementation in native proof
  • Same command on base c0166c3 and head 48b9240: node community-directory-native-proof-20261115.mjs CHECKOUT PHASE; PHASE changes assertions only, all six native CLI inputs and fixture bytes identical
    • Before (base): RED c0166c3 at 2026-11-15T12:53:56.305Z; both JSON errors exit1 with correct stdout messages but generic stderr
    • After (head): GREEN 48b9240 at 2026-11-15T13:01:56.173Z; both JSON errors exit1 with the original actionable message on stderr and unchanged JSON
  • Readback (subprocess,config-file): process exit status and captured stdout/stderr, independently parsed JSON, before/after isolated config bytes
  • Proof harness: SHA256 03ecaf662f8345169836ffaa3fe5d8a93368c3cad4dd3503ce979bbd319b4846; complete synthetic driver embedded below
  • Control: human errors retain messages; peers list returns alice and groups list returns #proof with exit0 and empty stderr; isolated config bytes identical
  • Other callers checked: all four owner guards covered; self, peers, groups and members share existing dispatch; arbitrary plugin error identity retained; root renderer and channel/plugin implementations unchanged
  • Tests: node scripts/run-vitest.mjs src/cli/directory-cli.test.ts --maxWorkers=1 --reporter=dot: 23 passed,exit0; targeted tsgo and typed oxlint,oxfmt,diff check exit0; native sourcePerformance build exit0 (measured cost: src/cli/directory-cli.test.ts 173.20s single worker Vitest duration, cold wrapper transform 94 percent; native build 231.8s; no broad suite claimed)
  • Not tested: real IRC connection, WhatsApp or other live channels, network lookups, installed upgrades, macOS/Windows, full release/package build and upstream CI

Native runtime build: node --import ./scripts/tsx.mjs scripts/build-all.mts sourcePerformance passed on the committed head in 231.8s. This is the native CLI runtime build, not full release/package validation. The focused suite passed 23/23; its 173.20s cold run was dominated by the repository's compiler preparation. Upstream CI will be read after PR creation.

Actual native before/after stream readback (synthetic, isolated IRC configuration)

Base: c0166c395cf81095f431808c9496cb6022ad4387, captured 2026-11-15T12:53:56.305Z.
Head/build commit: 48b92409887ac4e7b8c67883918a3fee2d9250c9, captured 2026-11-15T13:01:56.173Z.
Node: v24.22.1; Linux. The same driver, fixture and six native commands ran on both builds. Only the driver's expected red/green assertions differ.

[
  {
    "args": "directory groups members --group-id  ",
    "base": {
      "exit": 1,
      "stdout": "",
      "stderr": "Missing --group-id"
    },
    "head": {
      "exit": 1,
      "stdout": "",
      "stderr": "Missing --group-id"
    }
  },
  {
    "args": "directory groups members --group-id   --json",
    "base": {
      "exit": 1,
      "stdout": "{\n  \"ok\": false,\n  \"error\": {\n    \"type\": \"cli_error\",\n    \"message\": \"Missing --group-id\"\n  }\n}",
      "stderr": "[openclaw] The CLI command failed.\n[openclaw] For help, run `openclaw doctor`."
    },
    "head": {
      "exit": 1,
      "stdout": "{\n  \"ok\": false,\n  \"error\": {\n    \"type\": \"cli_error\",\n    \"message\": \"Missing --group-id\"\n  }\n}",
      "stderr": "Missing --group-id"
    }
  },
  {
    "args": "directory groups members --group-id #proof --channel irc",
    "base": {
      "exit": 1,
      "stdout": "",
      "stderr": "Channel irc does not support group members listing"
    },
    "head": {
      "exit": 1,
      "stdout": "",
      "stderr": "Channel irc does not support group members listing"
    }
  },
  {
    "args": "directory groups members --group-id #proof --channel irc --json",
    "base": {
      "exit": 1,
      "stdout": "{\n  \"ok\": false,\n  \"error\": {\n    \"type\": \"cli_error\",\n    \"message\": \"Channel irc does not support group members listing\"\n  }\n}",
      "stderr": "[openclaw] The CLI command failed.\n[openclaw] For help, run `openclaw doctor`."
    },
    "head": {
      "exit": 1,
      "stdout": "{\n  \"ok\": false,\n  \"error\": {\n    \"type\": \"cli_error\",\n    \"message\": \"Channel irc does not support group members listing\"\n  }\n}",
      "stderr": "Channel irc does not support group members listing"
    }
  },
  {
    "args": "directory peers list --channel irc --json",
    "base": {
      "exit": 0,
      "stdout": "[\n  {\n    \"kind\": \"user\",\n    \"id\": \"alice\"\n  }\n]",
      "stderr": ""
    },
    "head": {
      "exit": 0,
      "stdout": "[\n  {\n    \"kind\": \"user\",\n    \"id\": \"alice\"\n  }\n]",
      "stderr": ""
    }
  },
  {
    "args": "directory groups list --channel irc --json",
    "base": {
      "exit": 0,
      "stdout": "[\n  {\n    \"kind\": \"group\",\n    \"id\": \"#proof\",\n    \"name\": \"#proof\"\n  }\n]",
      "stderr": ""
    },
    "head": {
      "exit": 0,
      "stdout": "[\n  {\n    \"kind\": \"group\",\n    \"id\": \"#proof\",\n    \"name\": \"#proof\"\n  }\n]",
      "stderr": ""
    }
  }
]

The peer and group controls use IRC's existing configuration-backed directory implementation, without a live IRC connection. Both runs compared config bytes before/after. No live channel support or external-provider behavior is claimed.

Complete reproducible native driver

Save as community-directory-native-proof-20261115.mjs, then run with Node 24.22.1 against a successfully built checkout: node community-directory-native-proof-20261115.mjs CHECKOUT red on the base, and the same command with green on the head. SHA256: 03ecaf662f8345169836ffaa3fe5d8a93368c3cad4dd3503ce979bbd319b4846. It launches the built CLI; the directory owner, plugin loader and root formatter are not replaced.

import assert from "node:assert/strict";
import fs from "node:fs";
import os from "node:os";
import path from "node:path";
import { createHash } from "node:crypto";
import { execFileSync, spawnSync } from "node:child_process";
import { fileURLToPath } from "node:url";

const [repoArg, phase] = process.argv.slice(2);
assert.ok(["red", "green"].includes(phase));
const repo = path.resolve(repoArg);
const head = execFileSync("git", ["rev-parse", "HEAD"], { cwd: repo, encoding: "utf8" }).trim();
const build = JSON.parse(fs.readFileSync(path.join(repo, "dist/build-info.json"), "utf8"));
assert.equal(build.commit, head);
const root = fs.mkdtempSync(path.join(os.tmpdir(), "leon-directory-remedy-"));
fs.chmodSync(root, 0o700);
const workspace = path.join(root, "workspace");
fs.mkdirSync(workspace);
const env = {
  PATH: process.env.PATH,
  LANG: "C.UTF-8",
  NO_COLOR: "1",
  OPENCLAW_HOME: root,
  OPENCLAW_STATE_DIR: path.join(root, "state"),
  OPENCLAW_CONFIG_PATH: path.join(root, "openclaw.json"),
  OPENCLAW_NO_RESPAWN: "1",
  OPENCLAW_SKIP_STARTUP_MODEL_PREWARM: "1",
  XDG_CONFIG_HOME: path.join(root, "xdg-config"),
  XDG_CACHE_HOME: path.join(root, "xdg-cache"),
};
const config = JSON.stringify({
  meta: { migrations: { skillWorkshopPlugin: true } },
  gateway: { mode: "local" },
  agents: {
    ownership: "explicit",
    entries: { main: { workspace } },
    defaults: { systemAgent: { agentId: "main" } },
  },
  plugins: { allow: ["irc"], slots: { memory: "none" }, entries: { irc: { enabled: true } } },
  channels: { irc: { enabled: true, host: "irc.example.invalid", nick: "proof-reader", allowFrom: ["alice"], channels: ["#proof"] } },
  logging: { consoleLevel: "error" },
});
fs.writeFileSync(env.OPENCLAW_CONFIG_PATH, config, { mode: 0o600 });
const observations = [];
function cli(args) {
  const r = spawnSync(process.execPath, [path.join(repo, "openclaw.mjs"), ...args], {
    cwd: repo, env, encoding: "utf8", timeout: 60000,
  });
  const clean = (s) => String(s ?? "").replaceAll(root, "<isolated-state>").replaceAll(repo, "<checkout>");
  const o = { args, status: r.status, signal: r.signal, stdout: clean(r.stdout), stderr: clean(r.stderr) };
  observations.push(o);
  assert.equal(r.error, undefined, JSON.stringify(o));
  assert.equal(r.signal, null, JSON.stringify(o));
  return o;
}
for (const [args, message] of [
  [["directory", "groups", "members", "--group-id", " "], "Missing --group-id"],
  [["directory", "groups", "members", "--group-id", "#proof", "--channel", "irc"], "Channel irc does not support group members listing"],
]) {
  const human = cli(args);
  assert.equal(human.status, 1, JSON.stringify(human));
  assert.ok(human.stderr.includes(message), JSON.stringify(human));
  const json = cli([...args, "--json"]);
  assert.equal(json.status, 1, JSON.stringify(json));
  assert.deepEqual(JSON.parse(json.stdout), { ok: false, error: { type: "cli_error", message } });
  if (phase === "red") {
    assert.ok(!json.stderr.includes(message), JSON.stringify(json));
    assert.ok(json.stderr.includes("The CLI command failed."), JSON.stringify(json));
  } else {
    assert.ok(json.stderr.includes(message), JSON.stringify(json));
    assert.ok(!json.stderr.includes("The CLI command failed."), JSON.stringify(json));
  }
}
for (const [kind, id] of [["peers", "alice"], ["groups", "#proof"]]) {
  const result = cli(["directory", kind, "list", "--channel", "irc", "--json"]);
  assert.equal(result.status, 0, JSON.stringify(result));
  const entries = JSON.parse(result.stdout);
  assert.ok(Array.isArray(entries) && entries.some((entry) => entry.id === id), JSON.stringify(result));
}
assert.equal(fs.readFileSync(env.OPENCLAW_CONFIG_PATH, "utf8"), config);
console.log(JSON.stringify({
  status: "PASS", phase, head, buildCommit: build.commit, node: process.version,
  capturedAt: new Date().toISOString(),
  driverSha256: createHash("sha256").update(fs.readFileSync(fileURLToPath(import.meta.url))).digest("hex"),
  entry: "built CLI -> Directory command -> root JSON/error renderer -> captured stdout/stderr; real IRC config-backed lookup controls",
  configUnchanged: true,
  limitations: "No live IRC connection, group membership support, or external provider behavior is claimed.",
  observations,
}, null, 2));

AI-assisted: implemented with Codex; the commands and native stream readbacks above were executed locally.

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes size: XS labels Nov 15, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR makes directory-owned validation and unsupported-operation errors readable on stderr when JSON output is enabled.

Example: Run openclaw directory groups members --group-id ' ' --json.

  • Before: Stdout contains the correct JSON error, but stderr reports a generic command failure and suggests Doctor.
  • After: Stderr reports Missing --group-id; stdout JSON and exit status 1 remain unchanged.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A minimal owner-level repair with production-entry proof, meaningful baseline regressions, successful exact-head gates, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Exact-head collaborator receipts exercise all four changed guards through the real CLI with isolated synthetic configuration, unchanged stdout and exit codes, successful lookup controls, and a packed-entry blank-ID check.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Operators sending stdout to a JSON consumer receive a generic stderr failure instead of the directory command's specific explanation.
Reason: The narrow change follows the established expected-error contract and has collaborator validation of its direction and behavior.

Merge readiness

✅ Ready for maintainer review

This PR is ready for landing: the focused fix preserves the existing JSON contract, supplied CLI proof covers the changed paths, and exact-head CI is green.

Priority: P2
Reviewed head: 2a2066dc0914ca62392bc8678a5d2d231864eef0

Before merge

None.

Findings

None.

Agent review details

How this fits together

The directory CLI resolves channel capabilities and performs lookups; its failures reach the shared CLI boundary, which owns JSON stdout, stderr diagnostics, and failure exit status.

flowchart TD
  A[Directory CLI invocation] --> B[Directory validation and capability guards]
  B --> C[Expected CLI error]
  B --> D[Plugin lookup]
  D --> E[Successful directory output]
  C --> F[Shared root failure renderer]
  F --> G[JSON stdout and readable stderr]
Loading

Technical review

Best possible solution:

Land the existing four-guard classification repair while retaining the shared renderer and unchanged plugin-error handling.

Do we have a high-confidence way to reproduce the issue?

Current-main source shows the failure path, and supplied before/after CLI receipts reproduce it on a baseline whose directory files match fetched main; this read-only review ran no target code.

Is this the best way to solve the issue?

This is the smallest complete fix: classify directory-owned failures with the existing helper, preserve root rendering ownership, and leave unexpected plugin failures untouched.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against d32ac41084fc.

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit fe493b8 adds src/cli/directory-cli.ts:213 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: fe493b83337a; files: src/cli/directory-cli.ts)
  • Jerome: Raw commit bc097bf adds src/cli/expected-cli-error.ts:28 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: bc097bf6404f; files: src/cli/expected-cli-error.ts)

PR surface

Source +1, Tests 0. Total +1 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 5 4 +1
Tests 1 26 26 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 31 30 +1

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove status: ⏳ waiting on maintainer: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P2: The repair improves diagnostics for advanced JSON CLI workflows without changing successful operations or machine-readable failures.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (1 earlier review cycle)
  • reviewed 2026-11-15T13:34:28.139Z sha 48b9240 :: blocked before merge. :: none

Reviewed November 15, 2026, 10:36 AM ET / 15:36 UTC (Revision 2).

@obviyus

obviyus commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

Validated head 2a2066dc0914ca62392bc8678a5d2d231864eef0 with Leon-SK668's original commit retained.

All final checks ran on the host through ocx. Host-execution check: the merge-base diff touches only src/cli/directory-cli.ts and src/cli/directory-cli.test.ts; no package manifest, lockfile, workspace, npmrc, scripts, patches or hooks changed. Runtime proof used an isolated HOME and named profile, synthetic IRC/Signal configuration, no credentials, no Gateway and no external requests.

Before / after

Baseline: c0166c395cf81095f431808c9496cb6022ad4387; its directory files matched sampled main 7d7d86bb79ca24bfaf9343290cb22f80d705ab20.

vitest-source: the same consolidated directory-cli.test.ts produced 5 intended classification failures / 16 passes on baseline, then 21/21 passes on the candidate. Existing messages matched on baseline; ExpectedCliError classification was missing. Cold wrapper/preparation wall times were 471s and 795s respectively.

source: ocx src -- --profile p199616proof directory ..., pinned Bun fork, 14 cases on each side. For each JSON guard below, baseline stderr was:

[openclaw] The CLI command failed.
[openclaw] For help, run `openclaw --profile p199616proof doctor`.

Candidate stderr, with the existing text unchanged:

Command after directory Candidate stderr Exit, both sides
groups members --channel irc --group-id ' ' --json Missing --group-id 1
self --channel signal --json Channel signal does not support directory self 1
self --channel unavailable --json Unsupported channel: undefined 1
groups members --channel irc --group-id '#proof' --json Channel irc does not support group members listing 1

JSON stdout was byte-identical on both sides for every case. Example:

{"ok":false,"error":{"type":"cli_error","message":"Missing --group-id"}}

Controls passed:

  • All four commands in text mode: identical stdout, stderr and exit 1.
  • Omitted --group-id, text and JSON: unchanged Commander required-option diagnostic and exit 1. A whitespace ID is necessary to reach the changed guard.
  • IRC config-backed peers and groups, text and JSON: identical output and exit 0; JSON peers returned [{"kind":"user","id":"alice"}], groups returned [{"kind":"group","id":"#proof","name":"#proof"}]; stderr empty.
  • Both configuration files remained byte-identical.

The four failing paths stop before directory lookup. Successful controls use IRC's configuration-backed directory, not an IRC connection. No live-channel behavior is claimed.

Packaging and scope

full: ocx build --dts passed. An offline packed-entry/layout smoke passed version, help and the JSON blank-group guard through the extracted openclaw.mjs. It reused the ocx-installed dependency closure; this is not a fresh dependency-install claim. Version: OpenClaw 2026.11.3 (2a2066d). Tarball SHA-256: 8796ff8c26833fed769a0a3bdeeb4a7f2f55b35c82a8e367252211f79150828a.

The matching test typecheck leaf (test/tsconfig/tsconfig.core.test.config-cli.json) and focused format check passed. An earlier focused lint attempt stopped during boundary-DTS preparation at its 300s timeout, before linting; hosted CI supplies that gate.

Simplification combined unsupported-capability text/JSON coverage and removed a duplicate shared list-guard case, retaining blank-ID-before-write, missing-plugin and unexpected-plugin-error coverage. Whole-PR deltas: production +5/-4, tests +26/-26 (net 0); no allocation file. No new message text. No host hooks ran: Worktrunk used --no-hooks, the repair commit disabled Git hooks, and packing skipped lifecycle scripts.

This is reversible error classification only: no lookup, configuration, persistence or plugin capability changes.

@obviyus

obviyus commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@obviyus

obviyus commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

@clawsweeper re-review

The prior request was superseded before review admission. Head 2a2066d, PR description and proof are now final; exact-head CI and openclaw/ci-gate are green. Please review this current tuple.

@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: ⏳ waiting on maintainer Only explicit maintainer approvals or decisions remain; merge is still blocked. labels Nov 15, 2026
@obviyus
obviyus merged commit 285a326 into openclaw:main Nov 15, 2026
124 of 126 checks passed
@obviyus

obviyus commented Nov 15, 2026

Copy link
Copy Markdown
Collaborator

Landed in 285a326. Thanks @Leon-SK668.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…9616)

fix(cli): report directory input errors through the expected-error path

`openclaw directory ... --json` threw plain errors for four input checks ("Unsupported channel: X", "Missing --group-id", "Channel X does not support ..." and "... does not support directory self"), so `--json` stderr showed the generic failure plus the Doctor hint instead of the existing message. The four checks now use the expected-error path with the same messages. All four run before any directory lookup; no new text.

Evidence: host, isolated state and fake config, no network or credentials. Source CLI, 14 cases with `--json` and in text mode (including a blank `--group-id ' '`; omitting the option entirely stops at Commander's required-option check on both, unchanged): base prints the generic failure and Doctor hint, this change prints the existing message; text mode, JSON stdout and exit codes are identical. Vitest-source: 5 cases fail on base, 21 pass here. Typecheck, full build and packed-entry smoke pass. Receipts: openclaw#199616 (comment).

Thanks @Leon-SK668.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants