Skip to content

feat(claude-code-settings): add autoUpdate to extraKnownMarketplaces#5528

Closed
TiranSpierer wants to merge 2 commits intoSchemaStore:masterfrom
TiranSpierer:feat/claude-code-autoUpdate
Closed

feat(claude-code-settings): add autoUpdate to extraKnownMarketplaces#5528
TiranSpierer wants to merge 2 commits intoSchemaStore:masterfrom
TiranSpierer:feat/claude-code-autoUpdate

Conversation

@TiranSpierer
Copy link
Copy Markdown

Summary

  • Add missing autoUpdate boolean property to extraKnownMarketplaces entries
  • Add positive test file for marketplace auto-update configuration

Context

The autoUpdate property is defined in Claude Code's source (ExtraKnownMarketplaceSchema in src/utils/settings/types.ts) and documented in the official docs, but was missing from the SchemaStore schema.

autoUpdate: z
  .boolean()
  .optional()
  .describe(
    'Whether to automatically update this marketplace and its installed plugins on startup',
  ),

Because additionalProperties: false is set on the marketplace entry object, this causes false validation errors for users who configure autoUpdate in their settings.json.

Test plan

  • Added positive test: src/test/claude-code-settings/marketplace-auto-update.json
  • node ./cli.js check --schema-name=claude-code-settings.json passes

The `autoUpdate` boolean property is defined in Claude Code's source
(`ExtraKnownMarketplaceSchema` in `src/utils/settings/types.ts`) but
was missing from the SchemaStore schema. This caused false validation
errors when configuring marketplace auto-updates in settings.json.
Copilot AI review requested due to automatic review settings April 4, 2026 11:09
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 4, 2026

Thanks for the PR!

This section of the codebase is owned by @domdomegg, @bogini, and @ant-kurt - if they write a comment saying "LGTM" then it will be merged.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the claude-code-settings JSON Schema to accept the autoUpdate boolean in extraKnownMarketplaces entries, aligning SchemaStore validation with Claude Code’s documented/settings behavior and preventing false validation errors caused by additionalProperties: false.

Changes:

  • Added optional autoUpdate: boolean to extraKnownMarketplaces marketplace entry objects in the schema.
  • Added a new positive test fixture covering autoUpdate: true and autoUpdate: false for different marketplace sources.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/schemas/json/claude-code-settings.json Allows autoUpdate on extraKnownMarketplaces entries so valid user configs don’t fail validation.
src/test/claude-code-settings/marketplace-auto-update.json Adds a positive test case exercising autoUpdate with github and git marketplace sources.

@TiranSpierer TiranSpierer deleted the feat/claude-code-autoUpdate branch April 4, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants