Skip to content

Why v2.2.2 still has the "Hooks use a matcher + hooks array" error #172

@Onetaway

Description

@Onetaway

I have update to the v2.2.2

after run code-review-graph install command,the generate /.claude/settings.json is still

"hooks": {
"PostToolUse": [
{
"matcher": "Edit|Write|Bash",
"command": "code-review-graph update --skip-flows",
"timeout": 5000
}
],
"SessionStart": [
{
"command": "code-review-graph status",
"timeout": 3000
}
],
"PreCommit": [
{
"command": "code-review-graph detect-changes --brief",
"timeout": 10000
}
]
}

after that, run claude, still has this error

hooks
├ PostToolUse
│ └ 0
│ └ hooks: Expected array, but received undefined
├ PreCommit: Invalid key in record
└ SessionStart
└ 0
└ hooks: Expected array, but received undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions