Recover from missing/stale claude-plugins-official on aitools install#6054
Closed
dustinvannoy-db wants to merge 4 commits into
Closed
Conversation
dustinvannoy-db
marked this pull request as ready for review
July 24, 2026 05:36
Contributor
Waiting for approvalBased on git history, these people are best suited to review:
Eligible reviewers: Suggestions based on git history. See OWNERS for ownership rules. |
Installing the databricks plugin for Claude Code installs from Claude's built-in claude-plugins-official marketplace. When a user has removed that marketplace or their local copy is out of date, the install fails with "Plugin not found in marketplace" and no guidance (issue databricks#212). Add a recovery path for built-in marketplaces: on that failure, in an interactive session prompt to re-add and refresh the marketplace and retry the install once; in a non-interactive session (or when the user declines or the retry still fails) return a BlockedError whose detail includes the agent's own stderr plus the exact repair commands. A built-in marketplace stays shared infrastructure we never record as ours, so uninstall never de-registers it. Co-authored-by: Isaac
Split the built-in-marketplace recovery output onto separate lines: the error, the repair commands (add + update, each indented), and a short prompt. Mirrors the non-interactive builtinMarketplaceError formatting. Co-authored-by: Isaac
Extract repairCommands() so the interactive recovery prompt and the non-interactive BlockedError render the two re-add/refresh commands from one place, and fold marketplaceAddSourceArgs into marketplaceAddArgs. No behavior or output change. Co-authored-by: Isaac
Co-authored-by: Isaac
dustinvannoy-db
force-pushed
the
dustinvannoy-db/fix-aitools-claude-marketplace-recovery
branch
from
July 24, 2026 19:58
a777e54 to
32c5cfc
Compare
Contributor
|
An authorized user can trigger integration tests manually by following the instructions below: Trigger: Inputs:
Checks will be approved automatically on success. |
Author
|
I had an old main when creating this PR, will submit a new one once a cleaner set of changes is ready. |
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 databricks aitools install installs the databricks plugin for Claude Code, the install can fail if the built-in claude-plugins-official marketplace is missing (the user removed it) or its local copy is out of date — surfacing as Plugin "databricks" not found in marketplace "claude-plugins-official".
This PR:
Why
Users hitting a stale or removed official marketplace previously got an opaque install failure with no guided path forward. This makes the common case self-healing and the fallback actionable.
Testing