Repository navigation
fix(cli): reject missing repeatable inference inputs - #130608
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Land-ready proof for b29370a: The missing-input defect was reproduced before the change at the real Commander boundary and in four actual built-CLI invocations. The repair removes three redundant defaults at registration; the existing collector continues to own repeated values. Production +3/-3 (net zero), tests +37/-3, docs +1/-0. Validation passed:
The latest ClawSweeper comment is still a started-review placeholder with no findings or Rank-up moves to address. No live-provider outcome is claimed; absent input is rejected before that boundary. Documentation: https://docs.openclaw.ai/cli/infer |
|
Merged via squash.
|
Closes #130607
Additional instructions
Maintainer edits are enabled on this same-repository branch.
What Problem This Solves
Fixes an issue where operators omitting required repeatable inference inputs could receive successful empty output or reach a provider operation instead of a usage error. It affects
image edit,image describe-many, andembedding create, through bothinferandcapability.Why This Change Was Made
Remove three redundant empty-array option defaults so Commander can enforce the existing required-input contract. The canonical collector already initializes and preserves repeated values; no extra handler guard or parallel validation path is needed. Optional inputs, provider routing, authentication, and persistence are unchanged.
Production LOC: +3/-3 (net zero). Tests: +37/-3. Docs: +1/-0. AI-assisted.
User Impact
Omitted
--file/--textnow exits 1 with the exact missing flag and command-specific help. JSON callers receive the canonicalok:false/cli_errorenvelope. Valid one-input and repeated-input behavior is preserved. The inference CLI reference now states this requirement explicitly.Evidence
image describe-manyunder both aliases in text/JSON modes.cliStartupbuilds passed. The complete changed-file gate, Oxfmt, andgit diff --checkpassed.The first local changed gate found a missing UI importer dependency link, resolving root transitive pako 1.0.11 instead of UI's pinned 3.0.1. The link was repaired using the already-installed exact dependency donor, without package changes or validation waivers. The next pass caught a lint issue in the new test table; its direct projection was corrected, the targeted regressions passed again, and the final complete gate and refreshed whole-patch review passed. Independent and source-blind verification used the same final source bytes.