Repository navigation
Studio: restore the CLI help text the comment passes had trimmed - #10622
Conversation
|
You have reached your Codex usage limits for security reviews. Please try again later. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Follow-up to #10604. Two commits in that PR were meant to be comment-only passes, but in
unsloth_cli/commands/studio.pythey also rewrote docstrings of Typer-decorated functions. Typer renders those docstrings as--help, so the trimming was a user-visible loss.What was lost
unsloth studio run --help, before:after:
Users lost the concrete list of rejected flag families, the
--chat-template-fileexample, the--seedexample, the "Example:" label, and the sentence saying pass-through knobs last-wins-override the auto-set value.A second effect: collapsing a docstring to one paragraph makes Click's short help swallow the whole paragraph, so
unsloth studio --helplistedstop,verify-installandreset-passwordwith three wrapped lines each instead of one summary line.What is restored
Docstrings restored verbatim from the tree before the first pass (
aa83fc5f2^), code untouched:run(unsloth studio run)stop(unsloth studio stop)verify_install(unsloth studio verify-install)reset_password(unsloth studio reset-password)studio_default(the@studio_app.callback(), whose docstring had been deleted outright)Docstrings of plain internal helpers are left as main has them.
Verification
unsloth studio --helpplus--helpfor all eight subcommands (run,stop,setup,update,verify-install,reset-password,desktop-capabilities,provision-desktop-auth, enumerated from the app so hidden ones are included) from this branch and fromaa83fc5f2^. The diff is empty.help=string on anytyper.Option/typer.Argumentwas changed by the two passes, so none needed restoring.pytest unsloth_cli/tests -q -k "not inference_chat": 1276 passed, 9 skipped.python scripts/run_ruff_format.py unsloth_cli/commands/studio.pyclean.