Affects: code-review-graph install --platform claude-code on Claude Code v1.x+
Description
After running code-review-graph install --platform claude-code, the generated .claude/settings.json uses an outdated hook schema that is incompatible with the current Claude Code hooks format. As a result, Claude Code throws a Settings Error on startup and skips the entire settings file.
Steps to reproduce
- brew install pipx
- pipx install code-review-graph
- code-review-graph install --platform claude-code
- code-review-graph build
- Run claude in any project terminal
Error
Settings Error — /path/to/project/.claude/settings.json
└ hooks
├ PostToolUse › 0 › hooks: Expected array, but received undefined
├ PreCommit: Invalid key in record
└ SessionStart › 0 › hooks: Expected array, but received undefined
Affects: code-review-graph install --platform claude-code on Claude Code v1.x+
Description
After running code-review-graph install --platform claude-code, the generated .claude/settings.json uses an outdated hook schema that is incompatible with the current Claude Code hooks format. As a result, Claude Code throws a Settings Error on startup and skips the entire settings file.
Steps to reproduce
Error
Settings Error — /path/to/project/.claude/settings.json
└ hooks
├ PostToolUse › 0 › hooks: Expected array, but received undefined
├ PreCommit: Invalid key in record
└ SessionStart › 0 › hooks: Expected array, but received undefined