[BUG] EnabledPlugins in project settings causes schema validation crash when plugins not installed

Status Fixed / completed
Reported on v2.1.19
Maintainer reply None cached
Activity 5 comments · opened Jan 25, 2026 · closed Jan 25, 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?

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_

View original on GitHub ↗

5 Comments

github-actions[bot] · 8 months ago

Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/19313
  2. https://github.com/anthropics/claude-code/issues/17789
  3. https://github.com/anthropics/claude-code/issues/20699

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

igor-topolski · 8 months ago

@tmchow Did you ever got to the bottom of it? I am facing similar issue using anthropics/claude-code-action with code-review@claude-code-plugins

tmchow · 8 months ago
@tmchow Did you ever got to the bottom of it? I am facing similar issue using anthropics/claude-code-action with code-review@claude-code-plugins

I 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.

igor-topolski · 8 months ago
> @tmchow Did you ever got to the bottom of it? I am facing similar issue using anthropics/claude-code-action with code-review@claude-code-plugins I 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.

github-actions[bot] · 8 months ago

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.