Echo the launched command name in the Ready panel - #536
Open
ankit-db wants to merge 1 commit into
Open
Conversation
The "Ready" panel printed after `configure` hardcoded `ucode <tool>` as the next-step hint, even though `ug` is now the primary command. Show whichever entry point the user actually launched (`ug` or `ucode`, both are console scripts), falling back to `ug` when argv[0] isn't a recognized name. Co-authored-by: Isaac <no-reply@databricks.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The "Ready" panel printed at the end of
configurehardcodeducode <tool>as the next-step hint (run with ucode claude), even thoughugis now the primary command anducodeis only a backward-compat alias.This makes the hint echo whichever entry point the user actually launched — both
uganducodeare console-script entry points (see pyproject[project.scripts]) — so someone who ranug configureseesrun with ug claude, and someone who ranucode configureseesrun with ucode claude. Falls back to the primaryugwhenargv[0]isn't a recognized name (python -m ucode.cli, a wrapper, tests).Scope
Intentionally limited to this one panel — the "what do I type next" prompt is where the mismatch is most visible. Other hardcoded
ug ...hint strings and the embedded router-hook commands (which must resolve to a stable on-PATH binary) are left untouched.Tests
ugentry point echoesugucodeentry point echoesucodeargv[0]falls back tougThis pull request and its description were written by Isaac.