Skip to content

fix(claude): restore .claude/settings.json $schema URL#55

Merged
williaby merged 1 commit into
mainfrom
fix/claude-settings-schema-url
May 26, 2026
Merged

fix(claude): restore .claude/settings.json $schema URL#55
williaby merged 1 commit into
mainfrom
fix/claude-settings-schema-url

Conversation

@williaby
Copy link
Copy Markdown
Contributor

Problem

Claude Code refuses to load .claude/settings.json and prints:

Settings file failed to parse: /home/byron/dev/rag_processor/.claude/settings.json — Invalid value. Expected one of: "https://json.schemastore.org/claude-code-settings.json\". Permission rules and other settings from this file are not in effect.

The file's \$schema pointed at claude-code-config.json instead of the required claude-code-settings.json. Claude Code does not fail closed on this mismatch; it just shows the banner and ignores every permission rule in the file.

Fix

One-line change: claude-code-config.jsonclaude-code-settings.json.

-  \"\$schema\": \"https://json.schemastore.org/claude-code-config.json\",
+  \"\$schema\": \"https://json.schemastore.org/claude-code-settings.json\",

History

This is the same defect that PR #51 fixed previously. PR #48's compliance-alignment sweep reintroduced the wrong slug, likely because an upstream audit template still ships the bad URL.

Verification

  • python3 -c \"import json; json.load(open('.claude/settings.json'))\" — valid JSON
  • pre-commit run --files .claude/settings.json — all hooks pass
  • No em-dashes
  • Banner disappears on next Claude Code session restart

Refs: project memory feedback_claude_settings_schema_url.md.

🤖 Generated with Claude Code

The $schema value pointed at claude-code-config.json (an invalid URL
in the json.schemastore.org registry). Claude Code rejects any value
other than claude-code-settings.json, prints a banner, and silently
ignores every permission rule in the file.

This is the same regression PR #51 fixed once before; PR #48's
compliance-alignment sweep reintroduced the wrong slug, likely from
an upstream audit template that has not been updated yet.

Refs: project memory entry feedback_claude_settings_schema_url.md.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 26, 2026 03:37
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 26, 2026

Warning

Review limit reached

@williaby, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 40 minutes and 3 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 03f75942-b3a0-483a-99c4-8d9ffbbf1e7f

📥 Commits

Reviewing files that changed from the base of the PR and between cd2cb22 and 9b0954f.

📒 Files selected for processing (1)
  • .claude/settings.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/claude-settings-schema-url

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

⚠️ Deprecation Warning: The deny-licenses option is deprecated for possible removal in the next major release. For more information, see issue 997.

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

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

Restores the correct $schema URL in .claude/settings.json so Claude Code recognizes and loads the settings file (ensuring permission rules in the file are applied rather than silently ignored).

Changes:

  • Update .claude/settings.json $schema from claude-code-config.json to claude-code-settings.json to match Claude Code’s strict allowlist.

@sonarqubecloud
Copy link
Copy Markdown

@williaby williaby merged commit 1bb81a7 into main May 26, 2026
36 checks passed
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