[BUG]
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?
Title:
[Bug] PreToolUse hook error appearing when no PreToolUse hooks are configured
Body:
## Description
Recurring "PreToolUse hook error" messages appear during tool execution, even though no PreToolUse hooks are configured in settings.
## Error Message
⎿ PreToolUse:mcp__linear-server__create_comment hook error
⎿ PreToolUse:Read hook error
## Environment
- OS: Linux (WSL2) -
Linux 5.15.167.4-microsoft-standard-WSL2 - Claude Code Version: Latest (as of 2025-12-19)
- Model: claude-opus-4-5-20251101
## Behavior
- Error appears on multiple unrelated tools (Read, Linear MCP, etc.)
- Non-blocking: Tools still execute successfully after the error
- No
PreToolUsehooks are configured - onlySessionStartandPostToolUse
## Steps to Reproduce
- Configure
settings.local.jsonwith onlySessionStartandPostToolUsehooks - Enable the
feature-dev@claude-code-pluginsplugin - Use various tools (Read, MCP tools)
- Observe "PreToolUse hook error" messages before tool execution
## Expected Behavior
No "PreToolUse hook error" should appear when no PreToolUse hooks are configured.
## Workaround
None needed - error is non-blocking.
What Should Happen?
see above
Error Messages/Logs
Steps to Reproduce
see above
Claude Model
Opus
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
latest
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
WSL (Windows Subsystem for Linux)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗