[BUG] --settings .claude/settings-another.json does not recognize hooks.

Resolved 💬 4 comments Opened Sep 27, 2025 by tettuan Closed Oct 1, 2025

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

in project root:
.claude/settings.json
.claude/settings-another.json

when launch:
$ claude --settings .claude/settings-another.json

happens:
No hooks are recognized.
MCP settings are recognized.

tried:
copy .claude/settings-another.json to .claude/settings.json and launch, hooks are recognized. settings format is correct.

What Should Happen?

Expected: when using --settings <file or json>, use whole settings, including hooks.

Error Messages/Logs

❯ 1. + Add new hook…  No hooks configured yet

Steps to Reproduce

  1. create .claude/settings-another.json from .claude/settings.json
  2. launch claude with - -settings
  3. see /mcp and /hooks
  4. only showing .claude/settings.json settings.

exit and try another launch.

  1. remove .claude/settings.json
  2. launch claude with --settings
  3. see /mcp and /hooks
  4. MCPs are loaded from --settings config. Hooks are not recognized.

Claude Model

Sonnet (default)

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

1.0.127 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

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