fix(install): suggest a valid claude plugin scope when plugin verification fails - #591
Open
mpkrass7 wants to merge 2 commits into
Open
fix(install): suggest a valid claude plugin scope when plugin verification fails#591mpkrass7 wants to merge 2 commits into
mpkrass7 wants to merge 2 commits into
Conversation
…uidance
verify_claude_plugin() printed a copy-paste command using the installer's
own SCOPE value ("global"), but the `claude` CLI only accepts user|project|local.
So a global install that failed verification handed the user an invalid
`claude plugin install ... --scope global` command.
Translate the scope the same way remove_claude_plugin() already does
(global → user, project → project) so the suggested command actually runs.
Co-authored-by: Isaac
mpkrass7
commented
Aug 3, 2026
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
When
verify_claude_plugin()can't find thedatabricks@claude-plugins-officialplugin afterdatabricks aitools install, it aborts and prints a copy-paste command for the user to run manually. That command interpolated the installer's own$SCOPEvalue:But the
claudeCLI only acceptsuser,project, orlocalas scopes —globalis invalid, so the suggested command fails for anyone who did a global install.Fix
Translate the installer's scope to a valid
claudescope before building the message, matching whatremove_claude_plugin()already does elsewhere in this script:global→userproject→projectNotes
claude plugin install --scope globalinvocation that some users hit is emitted internally bydatabricks aitools install --scope global(a separate binary), so that passthrough would need a fix in the Databricks CLI itself — out of scope for this repo.bash -n install.shpasses.This pull request and its description were written by Isaac but it was lovingly and carefully reviewed by me (because it's a 4 line change)