[BUG] CLI hangs silently on startup when known_marketplaces.json contains an invalid or missing local marketplace
Resolved 💬 2 comments Opened Feb 14, 2026 by tzengyuxio Closed Feb 14, 2026
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude Code CLI hangs indefinitely on startup with no output, no error message, and no way to recover (Ctrl+C unresponsive). Even claude --verbose produces zero output.
Root Cause
The file ~/.claude/plugins/known_marketplaces.json contained a registered local marketplace entry:
{
"local-skills": {
"source": {
"source": "local"
},
"installLocation": "/Users//.claude/plugins/marketplaces/local-skills"
}
}
The directory at installLocation was either missing or had incomplete/invalid contents. When the CLI attempted to load this marketplace during initialization, it hung indefinitely instead of failing gracefully.
Steps to Reproduce
- Register a local marketplace in
~/.claude/plugins/known_marketplaces.jsonwith"source": "local" - Ensure the
installLocationpath is missing or contains invalid plugin structure - Run
claude - CLI hangs silently — no output, no error, unresponsive to Ctrl+C
Expected Behavior
- CLI should timeout or show an error message like:
Failed to load marketplace "local-skills": directory not found - CLI should still start, skipping the broken marketplace
claude --verboseshould at minimum show which step the initialization is on
Suggested Fix
- Add timeout and error handling when loading marketplaces during CLI initialization
- Log meaningful errors when a marketplace path is missing or invalid
- Don't block the entire CLI startup on a single marketplace failure
What Should Happen?
- CLI should timeout or show an error message like:
Failed to load marketplace "local-skills": directory not found - CLI should still start, skipping the broken marketplace
claude --verboseshould at minimum show which step the initialization is on
Error Messages/Logs
- CLI hangs indefinitely with zero output
- `claude --verbose` also hangs with zero output
- `claude --version` works fine (no plugin loading)
- No log files are written
- Only fix is to remove the `local-skills` entry from `known_marketplaces.json` or delete the entire `~/.claude/plugins` directory
Steps to Reproduce
- Verified network connectivity (
curl -I https://api.anthropic.comreturned HTTP/2 response) - Confirmed authentication is valid
- Removed all
enabledPluginsfromsettings.json— still hung - Removed
statusLineconfig — still hung - Renamed
~/.claudeentirely — CLI started successfully - Used binary search to isolate: restoring
~/.claude/pluginscaused the hang - Further narrowed down to
known_marketplaces.jsoncontaining thelocal-skillsentry - Removing the
local-skillsentry fromknown_marketplaces.jsonresolved the issue
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.41
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗