fix(cli): keep --slides value from eating input and validate it - #488
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 6:23 AM ET / 10:23 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch preserves URLs and video filenames after bare --slides, validates slide options, returns HTTP 400 for invalid daemon requests, and updates help, documentation, and regression tests. Merge readiness✅ Ready for maintainer review This remains a useful fix: current main and v0.23.0 still consume an input after bare --slides and ignore unsupported slide booleans. The earlier saved-configuration concern is resolved, and no actionable defect remains in the reviewed patch. Priority: P2 Review scores
Verification
How this fits togetherSummarize turns CLI arguments or daemon requests into slide-extraction settings before processing a video. CLI runs also combine those arguments with saved settings; daemon callers receive validation errors over HTTP. flowchart TD
A[CLI arguments] --> B[Preserve video input]
C[Saved settings] --> D[Resolve slide options]
B --> D
E[Daemon request] --> D
D --> F[Video processing]
D --> G[CLI error or HTTP 400]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Land the focused parsing and validation fix while keeping saved-setting tolerance and the daemon's confined slide output directory. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main offers --slides an optional value without normalizing a following URL, and its slide boolean parser ignores unsupported strings. This read-only review did not execute the CLI. Is this the best way to solve the issue? Yes. The patch extends an established argument-normalization pattern and validates per-run settings while the saved-config filter preserves existing tolerance. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d7090d43841a. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
a54d181 to
45bafb5
Compare
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
45bafb5 to
eb9b913
Compare
Bare
--slidescould consume the following URL or media filename as its optional value, leaving the CLI with no input. Invalid slide options could also be ignored or escape the daemon request parser instead of returning HTTP 400.This shares positional-input normalization with
--diarize, validates supplied slide options before deciding whether extraction is enabled, and maps invalid daemon options to HTTP 400. Validation also runs when OCR tooling is unavailable. Existing stored-config tolerance, explicit boolean words, negated flags, and the--separator are preserved.Validation: the built 0.23.0 CLI reproduced the missing-input failure; four daemon regressions failed before the original fix, and eight additional validation regressions failed before the completion changes. The corrected full Linux gate passed 3,609 tests with 92.07% statement coverage. Independent P0–P2 review passed after the findings were addressed.
Thanks @vincent-peng for the original fix and regression coverage.