[BUG] User settings hooks not loading in /hooks command (v1.0.51, v1.0.52)

Resolved 💬 3 comments Opened Jul 15, 2025 by ChiroSan27 Closed Jul 27, 2025

Bug Description

User settings hooks configured in ~/.claude/settings.json are not being loaded/displayed when running the /hooks command in Claude Code versions 1.0.51 and 1.0.52.

Environment

  • Platform: WSL2 (Ubuntu)
  • Claude Code Version: 1.0.51 and 1.0.52
  • Working Version: 1.0.48 (hooks display correctly)

Steps to Reproduce

  1. Configure hooks in user settings using /hooks command
  2. Select option 3 "User settings - Saved in at ~/.claude/settings.json"
  3. Add a hook configuration (e.g., PreToolUse matcher for Write|Edit|MultiEdit)
  4. Save the configuration
  5. Run /hooks command again
  6. Bug: Shows "No hooks configured yet" despite hooks being saved in settings file

Expected Behavior

When running /hooks after configuring user settings hooks:

  • Should display configured hooks with "[User]" prefix
  • Example: [User] Write|Edit|MultiEdit 2 hooks

Actual Behavior

  • /hooks shows "No matchers configured yet"
  • The hooks ARE correctly saved in ~/.claude/settings.json file
  • Project settings (options 1 and 2) work correctly
  • Only user settings (option 3) fail to load

Verification

  • Confirmed hooks exist in ~/.claude/settings.json:
{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Write|Edit|MultiEdit",
        "hooks": [
          {
            "type": "command",
            "command": "..."
          }
        ]
      }
    ]
  }
}

Workaround

Downgrade to version 1.0.48:

npm install -g @anthropic-ai/claude-code@1.0.48
# or with bun:
bun install -g @anthropic-ai/claude-code@1.0.48

In version 1.0.48, user settings hooks are correctly loaded and displayed.

Additional Information

  • This appears to be a regression introduced between v1.0.48 and v1.0.51
  • Project-level hooks (options 1 and 2 in /hooks) continue to work correctly
  • Only user-level hooks (~/.claude/settings.json) fail to load

Impact

Users cannot use global hooks configuration, forcing them to configure hooks per-project or remain on older versions.

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗