fix(cli): sync fish completions and command docs with locale surface - #486
Conversation
The fish completion file and the commands reference fell behind the multilingual CLI landed in steipete#478-steipete#480: - --locale suggested only en/tr; it now offers auto + all 14 shipped UI locales and is completed on every subcommand, matching the global argv-based resolution - --language suggestions cover the shipped locales and English names - --format gains the txt alias - daemon install gains the documented --extension-id flag - refresh-free gains --debug, matching its --verbose alias handling - child-command suggestions no longer appear as option value candidates - docs/commands/summarize.md documents --locale and SUMMARIZE_LOCALE; index.md lists the flag in global behavior and adds summarize status The package-bin drift guard now pins --locale candidates to availableUiLocales in every subcommand context, --language and --cli to their contracts, asserts the daemon install flag modes, and syntax-checks the fish file when fish is installed. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
|
🦞👀 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:07 AM ET / 10:07 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch updates fish suggestions for existing CLI locales and flags, adds command documentation and a changelog entry, and adds completion regression checks. Merge readiness✅ Ready for maintainer review This remains a focused repair worth reviewing. Current main and v0.23.0 still have stale fish suggestions, while the prior review recorded direct completion output for the repair. No blocking defect was identified in the latest head. Priority: P3 Review scores
Verification
How this fits togetherSummarize’s fish completion file turns partially typed CLI commands into suggested flags and values. The CLI locale registry and command handlers define which suggestions are valid. flowchart LR
A[Typed fish command] --> B[Completion rules]
C[Registered locales] --> B
D[CLI flag contracts] --> B
B --> E[Suggested flags and values]
E --> F[CLI command]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep fish suggestions aligned with the registered locales and existing CLI options, with regression checks that catch future drift. Do we have a high-confidence way to reproduce the issue? Yes. Current main visibly omits registered locales from fish completions, and the prior completed review records before-and-after fish output; this review did not execute the CLI. Is this the best way to solve the issue? Yes. Updating the existing completion file and checking it against the locale registry is a narrow repair for the documented CLI behavior. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ed7d536fd079. 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
HistoryReview history (1 earlier review cycle)
|
Fish completions had fallen behind the multilingual CLI: locale choices were incomplete, and
summarize daemon --localeoffered daemon commands as locale values. This restores the shipped locale and existing flag choices across commands and documents interface-language selection.Validation: the old completion file reproduced the wrong candidates in fish; the updated completion file and alias now pass behavioral regression coverage.
pnpm install --frozen-lockfile && pnpm checkpassed on Linux (3,588 tests; 92.07% statement coverage), and the focused package test passed with fish installed. Independent P0–P2 review completed without actionable findings.Thanks @vincent-peng for the fix. No stored configuration or runtime contract changes.