Repository navigation
fix(cli): print inference results alongside input paths - #128523
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 1:40 AM ET / 05:40 UTC. ClawSweeper reviewWhat this changesThe PR changes human-readable media inference output to print both the input path and generated transcript or description. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessNo blocking findings: current main’s shared formatter suppresses generated text whenever an output also has a path, and this PR repairs that owner boundary. Keep this maintainer-authored, maintainer-labeled PR open for normal exact-head CI and merge handling. Priority: P1 Review scores
Verification
Live VerificationCommand: Result: PASS (completed) Assertions:
How this fits togetherMedia CLI commands create output envelopes from audio, image, and video inference. The shared text formatter renders those envelopes for terminal users while JSON output bypasses it. flowchart LR
A[CLI media command] --> B[Media inference]
B --> C[Output envelope]
C --> D[Shared text formatter]
D --> E[Terminal output]
Before merge
Agent review detailsSecurityNone. PR surfaceSource -2, Tests +16. Total +14 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Merge the shared formatter repair after exact-head checks complete, retaining JSON behavior and the command-level regressions. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main prioritizes a path over text, while audio, image, and video inference outputs intentionally provide both fields. Is this the best way to solve the issue? Yes; the shared formatter is the canonical owner used by all affected commands, making this a narrower and more maintainable repair than per-command handling. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1ece62a4d807. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
What Problem This Solves
Makes ordinary inference commands actually print their requested results: audio transcripts, image descriptions, multiple-image descriptions, and video descriptions.
Root Cause and Repair
The shared human-readable capability envelope formatter treated an input path and generated result text as mutually exclusive. Every media-understanding producer intentionally supplies both, so the default CLI printed the filename and silently discarded the transcript or description. Preserve both meaningful fields at their shared formatting owner while retaining path-only, text-only, JSON, and unknown-output behavior.
Evidence
audio transcribe,image describe,image describe-many, andvideo describe: each output contained its source path but omitted the requested text.node scripts/run-vitest.mjs src/cli/capability-cli.test.ts: all 186 capability CLI tests pass, including all four real-parser regressions.git diff --checkpassed.