[BUG] EnabledPlugins in project settings causes schema validation crash when plugins not installed
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?
When .claude/settings.json contains enabledPlugins but the referenced plugins are not installed (e.g., in CI environments), Claude Code crashes with a cryptic Ajv JSON schema validation error instead of gracefully skipping or providing a clear error message.
What Should Happen?
Expected Behavior:
Skip missing plugins with a warning, OR
Fail with clear error: "Plugin 'context7@claude-plugins-official' not found. Install it or remove from enabledPlugins."
Error Messages/Logs
Crashes after 410ms with minified Ajv schema validation error:
SDK execution error: 14 | depsCount: ${Q},
15 | deps: ${$}}`};var Mj={keyword:"dependencies",type:"object",schemaType:"object"...
error: Claude Code process exited with code 1
Impact:
Steps to Reproduce
Create .claude/settings.json with:
{
"enabledPlugins": {
"context7@claude-plugins-official": true
}
}
Run Claude Code in an environment where plugins are NOT installed (fresh CI runner, new machine)
Claude Code crashes immediately
Forces choice between: (a) no project plugins, or (b) installing plugins in every CI step
Schema validation happens before plugin loading, making it impossible to gracefully degrade
Environment:
Claude Code version: 2.1.19
claude-code-action@v1
GitHub Actions runner (ubuntu-latest)
Claude Model
Not sure / Multiple models
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.19
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
5 Comments
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code
@tmchow Did you ever got to the bottom of it? I am facing similar issue using
anthropics/claude-code-actionwithcode-review@claude-code-pluginsI originally thought it was a bug but it was due to something else on my part. Doesn't mean there isn't a bug necessarily just not what I was experiencing which is why I closed it.
Thanks! I actually did - it happens when you reach the token limit of your session (for the OAuth token attached to the workflow). Unfortunately, the error is not very descriptive.
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.