Thanks to visit codestin.com
Credit goes to github.com

Skip to content

sqz init doesn't escape \ in .claude/settings.local.json #2

Description

@jbuschdev

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"
          }
        ]
      }
    ]
  }
}

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