Repository navigation
Description
Bug type
Behavior bug (incorrect output/state without crash)
Beta release blocker
No
Summary
The inference CLI accepts omitted required repeatable inputs, allowing image describe-many to report successful empty output instead of a usage error.
Steps to reproduce
- Use main at
b8d2ac735a87a6745685b91381dc4b5db41c474ewith a configured agent. No provider credentials are needed. - Run
openclaw infer image describe-many --jsonwithout--file. - Observe exit status and stdout. Repeat without
--json, or replaceinferwithcapability.
Expected behavior
The required --file option should be rejected before inference, with a nonzero exit and command-specific help. This matches singleton image describe and the declared required-option contract.
Actual behavior
All four actual built-process cases (both command names, text/JSON) exited 0. JSON output was:
{"ok":true,"capability":"image.describe-many","transport":"local","attempts":[],"outputs":[]}Text output was image.describe-many via local followed by outputs: 0.
OpenClaw version
Main b8d2ac735a87a6745685b91381dc4b5db41c474e, exact source-built CLI.
Operating system
macOS, Node 24.19.0.
Install method
Source checkout, repository cliStartup build, actual openclaw.mjs launcher.
Model
None; the empty description path does not perform inference.
Provider / routing chain
Local CLI, isolated test HOME/state/config/workspace, no Gateway or provider credentials.
Logs
$ openclaw infer image describe-many
image.describe-many via local
outputs: 0
# exit 0
Screenshots, recordings, and evidence
The actual CLI reproduction above was repeated under infer and capability, with and without --json. Real Commander registration regressions also confirmed all three affected commands: image edit without --file, image describe-many without --file, and embedding create without --text.
Impact and severity
Automation can mistake omitted inputs for completed work. The same registration defect lets image editing reach generation without a source image and embedding creation reach provider initialization without text. This report does not claim a live paid-provider request was made during proof.
Additional information
All three registrations specify an empty-array default for a mandatory repeatable option. Commander treats a defined default as satisfying the requirement. The existing option collector already initializes its own array, so the defaults are redundant. The declarations are present in stable v2026.4.7 and current main; the first-class inference CLI commit is 97c031a8db489ae91378a3c9a6cd5b848e9033e6.
Metadata
Metadata
Assignees
Labels
Type
Fields
Priority
Activity
clawsweeper commentedon Aug 27, 2026
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 26, 2026, 10:37 PM ET / August 27, 2026, 02:37 UTC.
Summary
Keep this issue open: current main still has the defective registrations, and the formally linked open PR is the focused repair path. The protected
maintainerlabel also requires explicit maintainer handling rather than automated closure or duplicate repair dispatch.Reproducibility: yes. —current main directly shows defined empty-array defaults on each required repeatable option, while the issue supplies a concrete built-CLI reproduction of the resulting false success.
Next step
The explicitly linked open PR already owns this narrow repair, and the
maintainerlabel prevents duplicate automated repair routing.Review details
Best possible solution:
Review and land the linked parser-registration repair with its missing-input and repeated-input regressions, preserving the existing collector as the sole array initializer.
Do we have a high-confidence way to reproduce the issue?
Yes—current main directly shows defined empty-array defaults on each required repeatable option, while the issue supplies a concrete built-CLI reproduction of the resulting false success.
Is this the best way to solve the issue?
Yes—the linked PR removes only the redundant defaults at the command-registration boundary and relies on the existing collector, avoiding downstream validation or provider-specific workarounds.
AGENTS.md: found and applied where relevant.
Codex review notes: model internal, reasoning high; reviewed against c35b18309329.
Label changes
Label changes:
P1: A missing required input can report false successful inference output and mislead CLI automation or operators.impact:other: The concrete impact is a false-success command result, which does not fit a more specific owned impact class.maturity:stable: The broken boundary is the documented required-option contract of the M4 Stable CLI surface.issue-rating: 🦞 diamond lobster: Current issue advisory state selects this label.clawsweeper:source-repro: Current issue advisory state selects this label.clawsweeper:linked-pr-open: Current issue advisory state selects this label.clawsweeper:no-new-fix-pr: Current issue advisory state selects this label.Label justifications:
P1: A missing required input can report false successful inference output and mislead CLI automation or operators.impact:other: The concrete impact is a false-success command result, which does not fit a more specific owned impact class.maturity:stable: The broken boundary is the documented required-option contract of the M4 Stable CLI surface.Evidence reviewed
What I checked:
describe-manymapping an empty list to anok: trueenvelope. (src/cli/capability-cli/image.ts:369, c35b18309329)src/cli/program/helpers.ts:6, c35b18309329)inferis registered withcapabilityas its alias, and the top-level lazy router sends both names through the same capability registrar; one registration repair covers both reported spellings. (src/cli/capability-cli.ts:102, c35b18309329)--fileinputs for multi-image description and--textfor embedding creation, establishing these as input-bearing commands rather than valid empty operations. Public docs:docs/cli/infer.md. (docs/cli/infer.md:98, c35b18309329)97c031a8db489ae91378a3c9a6cd5b848e9033e6and is contained by stable tagv2026.4.7; the current registrations were most recently carried forward by the August refactor. (src/cli/capability-cli/image.ts:413, 97c031a8db48)Likely related people:
src/cli/capability-cli.ts)src/cli/capability-cli/image.ts,src/cli/capability-cli/embedding.ts)How this review workflow works
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only.@clawsweeper reviewto request a fresh review only.@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review.@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.steipete commentedon Aug 27, 2026
Fixed on
mainby PR #130608, merged as d3d43eb6cfcda69c9ad0e4bcaf975f4ecbd084f4.The three redundant option defaults were removed, so missing
--file/--textnow produces the existing usage error before inference work. Repeated valid inputs still use the same collector. Proof includes 198 focused tests independently repeated, 38 independent actual CLI checks, seven source-blind clauses across 54 actual invocations, the full local changed-file gate, and green exact-head CI. Positive CLI controls prove parsing, not live-provider inference.Post-merge fetch verified the full merge commit is an ancestor of
main; its stable patch ID exactly matches the reviewed source commit. The issue is closed as fixed.