Running under Windows the paths are produced with\ separators and the json generated does not escape these correctly, so claude fails to read the settings file.
Example:
{
"hooks": {
"PreToolUse": [
{
"matcher": "Bash",
"hooks": [
{
"type": "command",
"command": "C:\Users\SqzUser\.cargo\bin\sqz.exe hook claude"
}
]
}
],
"SessionStart": [
{
"matcher": "compact",
"hooks": [
{
"type": "command",
"command": "C:\Users\SqzUser\.cargo\bin\sqz.exe resume"
}
]
}
]
}
}
Running under Windows the paths are produced with
\separators and the json generated does not escape these correctly, so claude fails to read the settings file.Example:
{ "hooks": { "PreToolUse": [ { "matcher": "Bash", "hooks": [ { "type": "command", "command": "C:\Users\SqzUser\.cargo\bin\sqz.exe hook claude" } ] } ], "SessionStart": [ { "matcher": "compact", "hooks": [ { "type": "command", "command": "C:\Users\SqzUser\.cargo\bin\sqz.exe resume" } ] } ] } }