Skip to content

Comments

feat(claude-code-settings): sync to Claude Code v2.1.50#5397

Merged
github-actions[bot] merged 1 commit intoSchemaStore:masterfrom
miteshashar:claude-code-schema-2.1.50
Feb 23, 2026
Merged

feat(claude-code-settings): sync to Claude Code v2.1.50#5397
github-actions[bot] merged 1 commit intoSchemaStore:masterfrom
miteshashar:claude-code-schema-2.1.50

Conversation

@miteshashar
Copy link
Contributor

Schema

  • Add ConfigChange hook event — fires when settings/skill files change during a session, with matcher support (user_settings, project_settings, local_settings, policy_settings, skills) and decision control via exit code 2, as per hooks documentation (v2.1.49)
  • Add WorktreeCreate hook event — fires on --worktree or isolation: "worktree", hook prints absolute path to stdout, as per hooks documentation (v2.1.50)
  • Add WorktreeRemove hook event — cleanup counterpart to WorktreeCreate, as per hooks documentation (v2.1.50)
  • Update env description with CLAUDE_CODE_DISABLE_1M_CONTEXT and link to model-config docs (v2.1.50)
  • Enhance fastMode description with research preview status and 2.5x speed per fast-mode docs
  • Document availableModels merge/deduplicate behavior across settings levels per model-config docs
  • Add managed settings hierarchy context to disableAllHooks per hooks docs (v2.1.49)
  • Add descriptions to blockedMarketplaces source fields for coverage compliance
  • Add additionalProperties: false to blockedMarketplaces anyOf variants, consistent with extraKnownMarketplaces and strictKnownMarketplaces

Tests

  • Add ConfigChange, WorktreeCreate, WorktreeRemove hook examples to hooks-complete.json
  • Add all three new hook events to modern-complete-config.json
  • Add git source with .git URL to managed-settings.json blockedMarketplaces for pattern coverage

Negative tests

  • Add invalid-blocked-marketplace-git-url.json for git URL pattern violation (missing .git suffix)
  • Split invalid-managed-settings.json to isolate wrong_type violations only
  • Split invalid-marketplace-host-pattern.json to isolate pattern_mismatch only
  • Move strictKnownMarketplaces wrong_type test to wrong-property-types.json

Infrastructure

  • Enable test coverage analysis for claude-code-settings.json with strict: true in CI

Skipped

  • Per-event handler type restrictions (command-only events) — would require major schema refactoring for validation that runtime already enforces
  • startupTimeout for LSP servers — not a settings.json property
  • isolation: worktree for agents — Task tool parameter, not settings.json
  • Plugin settings.json shipping — plugin manifest concern, not settings.json schema

🤖 Generated with Claude Code

Schema:
- Add ConfigChange hook event (v2.1.49) with matcher support and decision control
- Add WorktreeCreate hook event (v2.1.50) for custom worktree creation
- Add WorktreeRemove hook event (v2.1.50) for worktree cleanup
- Update env description with CLAUDE_CODE_DISABLE_1M_CONTEXT and doc link
- Enhance fastMode description with research preview status and 2.5x speed
- Document availableModels merge/deduplicate behavior across settings levels
- Add managed settings hierarchy context to disableAllHooks description
- Add descriptions to blockedMarketplaces source fields
- Add additionalProperties: false to blockedMarketplaces anyOf variants

Tests:
- Add ConfigChange, WorktreeCreate, WorktreeRemove hooks to hooks-complete.json
- Add all three new hook events to modern-complete-config.json
- Add git source with .git URL to managed-settings.json blockedMarketplaces

Negative tests:
- Add invalid-blocked-marketplace-git-url.json for git URL pattern violation
- Split invalid-managed-settings.json to isolate wrong_type violations
- Split invalid-marketplace-host-pattern.json to isolate pattern_mismatch
- Move strictKnownMarketplaces wrong_type test to wrong-property-types.json

Infrastructure:
- Enable test coverage analysis for claude-code-settings.json with strict mode

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

Thanks for the PR!

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

@domdomegg
Copy link
Contributor

LGTM

@github-actions github-actions bot merged commit 6a12029 into SchemaStore:master Feb 23, 2026
6 checks passed
@github-actions
Copy link
Contributor

Merging because @domdomegg is a code-owner of all the changes - thanks!

@miteshashar miteshashar deleted the claude-code-schema-2.1.50 branch February 24, 2026 03:46
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