Honor explicit --format over output extension#22
Conversation
|
Codex review: needs real behavior proof before merge. Reviewed June 19, 2026, 3:59 AM ET / 07:59 UTC. Summary Reproducibility: yes. By source inspection, current main overwrites Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Proof guidance:
Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Land this narrow precedence fix with the regression test after contributor-supplied real behavior proof, then let the linked issue close from the merge. Do we have a high-confidence way to reproduce the issue? Yes. By source inspection, current main overwrites Is this the best way to solve the issue? Yes for the code path. Guarding extension inference with AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning high; reviewed against ad9b1d3013b4. Label changesLabel changes:
Label justifications:
Evidence reviewedWhat I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
|
|
@steipete tldr is anyone using eleven labs or any output should have ability per docs to set the format. currently users are paying for and should get the best audio format but sag is limiting them and ignoring ouput that works fine on API. |
Fixes #21.
Summary
When
sag speakgets both:--output out.mp3--format mp3_44100_192it currently re-infers the format from the output extension and silently resets the request back to the default
.mp3profile (mp3_44100_128). That makes the explicit--formatvalue ineffective for common save-to-file usage.This patch keeps the existing extension inference, but only when
--formatwas not explicitly provided.What changed
!cmd.Flags().Changed("format")--output out.mp3 --format mp3_44100_192Verification
go test ./...go build ./...