extraKnownMarketplaces: absolute paths silently fail for directory source type
Status Fixed / completed
Maintainer reply None cached
Workaround ✓ Mentioned in description ↑
Activity 4 comments · opened Feb 19, 2026 · closed Feb 19, 2026
Bug Description
When using extraKnownMarketplaces with "source": "directory" and an absolute path, the marketplace is not discovered. Switching to a relative path (resolved from the project root) makes it work. There is no error message — it silently fails.
Steps to Reproduce
- Create a local marketplace directory at
~/.claude/marketplace/with a valid.claude-plugin/marketplace.json - Add to
.claude/settings.json(project level):
{
"extraKnownMarketplaces": {
"my-marketplace": {
"source": {
"source": "directory",
"path": "/home/user/.claude/marketplace"
}
}
}
}
- Restart Claude Code
- The marketplace is not discovered — no trust dialog, no plugin available
Expected Behavior
The marketplace should be discovered using the absolute path, as documented in the Settings documentation:
{ "source": "directory", "path": "/usr/local/share/claude/acme-plugins" }
Workaround
Use a relative path from the project root instead. If the marketplace files live outside the project, create a symlink:
ln -s ~/.claude/marketplace .claude/marketplace
Then use:
{
"extraKnownMarketplaces": {
"my-marketplace": {
"source": {
"source": "directory",
"path": "./.claude/marketplace"
}
}
}
}
This works correctly.
Additional Context
- Tested on Claude Code running on Linux (Ubuntu)
- The same marketplace files work when referenced via relative path
- Possibly related to #11278 (path resolution bug with marketplace.json file paths)
- Also noted that
extraKnownMarketplacesin user settings (~/.claude/settings.json) does not trigger marketplace discovery at all, despite the docs listing User scope as supported. The trust dialog only fires for project-level entries. This is tracked in #16870 for managed settings but also applies to user settings.
4 Comments
Closing — the underlying issues are likely already tracked in #11278 (path resolution bug) and #16870 (extraKnownMarketplaces scope limitations).
Closing as duplicate — already tracked in #11278 and #16870.
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
This issue has been automatically locked since it was closed and has not had any activity for 7 days. If you're experiencing a similar issue, please file a new issue and reference this one if it's relevant.